mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Improve system calls
- Wrap clock_getres() - Wrap sched_setscheduler() - Make sleep() api conformant - Polyfill sleep() using select() - Improve clock_gettime() polyfill - Make nanosleep() POSIX conformant - Slightly improve some DNS functions - Further strengthen pledge() sandboxing - Improve rounding of timeval / timespec - Allow layering of pledge() calls on Linux - Polyfill sched_yield() using select() on XNU - Delete more system constants we probably don't need
This commit is contained in:
parent
5df3e4e7a8
commit
853b6c3864
330 changed files with 1971 additions and 1223 deletions
|
@ -1,26 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_TCPOPT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_TCPOPT_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define TCPOPT_EOL SYMBOLIC(TCPOPT_EOL)
|
||||
#define TCPOPT_MAXSEG SYMBOLIC(TCPOPT_MAXSEG)
|
||||
#define TCPOPT_NOP SYMBOLIC(TCPOPT_NOP)
|
||||
#define TCPOPT_SACK SYMBOLIC(TCPOPT_SACK)
|
||||
#define TCPOPT_SACK_PERMITTED SYMBOLIC(TCPOPT_SACK_PERMITTED)
|
||||
#define TCPOPT_TIMESTAMP SYMBOLIC(TCPOPT_TIMESTAMP)
|
||||
#define TCPOPT_WINDOW SYMBOLIC(TCPOPT_WINDOW)
|
||||
#define TCPOPT_EOL 0
|
||||
#define TCPOPT_NOP 1
|
||||
#define TCPOPT_MAXSEG 2
|
||||
#define TCPOPT_WINDOW 3
|
||||
#define TCPOPT_SACK_PERMITTED 4
|
||||
#define TCPOPT_SACK 5
|
||||
#define TCPOPT_TIMESTAMP 8
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
#define TCPOLEN_SACK_PERMITTED 2
|
||||
#define TCPOLEN_WINDOW 3
|
||||
#define TCPOLEN_MAXSEG 4
|
||||
#define TCPOLEN_TIMESTAMP 10
|
||||
|
||||
extern const long TCPOPT_EOL;
|
||||
extern const long TCPOPT_MAXSEG;
|
||||
extern const long TCPOPT_NOP;
|
||||
extern const long TCPOPT_SACK;
|
||||
extern const long TCPOPT_SACK_PERMITTED;
|
||||
extern const long TCPOPT_TIMESTAMP;
|
||||
extern const long TCPOPT_WINDOW;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_TCPOPT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue