Make more fixes and improvements

- Remove PAGESIZE constant
- Fix realloc() documentation
- Fix ttyname_r() error reporting
- Make forking more reliable on Windows
- Make execvp() a few microseconds faster
- Make system() a few microseconds faster
- Tighten up the socket-related magic numbers
- Loosen restrictions on mmap() offset alignment
- Improve GetProgramExecutableName() with getenv("_")
- Use mkstemp() as basis for mktemp(), tmpfile(), tmpfd()
- Fix flakes in pthread_cancel_test, unix_test, fork_test
- Fix recently introduced futex stack overflow regression
- Let sockets be passed as stdio to subprocesses on Windows
- Improve security of bind() on Windows w/ SO_EXCLUSIVEADDRUSE
This commit is contained in:
Justine Tunney 2023-07-29 18:44:15 -07:00
parent 140a8a52e5
commit 18bb5888e1
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
311 changed files with 1239 additions and 2622 deletions

View file

@ -1,69 +1,20 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_
#define SOL_IP 0
#define SOL_ICMP 1
#define SOL_TCP 6
#define SOL_UDP 17
#define SOL_IPV6 41
#define SOL_ICMPV6 58
#define SOL_RAW 255
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const int SOL_AAL;
extern const int SOL_ALG;
extern const int SOL_ATM;
extern const int SOL_BLUETOOTH;
extern const int SOL_CAIF;
extern const int SOL_DCCP;
extern const int SOL_DECNET;
extern const int SOL_ICMPV6;
extern const int SOL_IP;
extern const int SOL_IPV6;
extern const int SOL_IRDA;
extern const int SOL_IUCV;
extern const int SOL_KCM;
extern const int SOL_LLC;
extern const int SOL_NETBEUI;
extern const int SOL_NETLINK;
extern const int SOL_NFC;
extern const int SOL_PACKET;
extern const int SOL_PNPIPE;
extern const int SOL_PPPOL2TP;
extern const int SOL_RAW;
extern const int SOL_RDS;
extern const int SOL_RXRPC;
extern const int SOL_SOCKET;
extern const int SOL_TCP;
extern const int SOL_TIPC;
extern const int SOL_UDP;
extern const int SOL_X25;
#define SOL_SOCKET SOL_SOCKET
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define SOL_IP 0
#define SOL_TCP 6
#define SOL_UDP 17
#define SOL_AAL SOL_AAL
#define SOL_ALG SOL_ALG
#define SOL_ATM SOL_ATM
#define SOL_BLUETOOTH SOL_BLUETOOTH
#define SOL_CAIF SOL_CAIF
#define SOL_DCCP SOL_DCCP
#define SOL_DECNET SOL_DECNET
#define SOL_ICMPV6 SOL_ICMPV6
#define SOL_IPV6 SOL_IPV6
#define SOL_IRDA SOL_IRDA
#define SOL_IUCV SOL_IUCV
#define SOL_KCM SOL_KCM
#define SOL_LLC SOL_LLC
#define SOL_NETBEUI SOL_NETBEUI
#define SOL_NETLINK SOL_NETLINK
#define SOL_NFC SOL_NFC
#define SOL_PACKET SOL_PACKET
#define SOL_PNPIPE SOL_PNPIPE
#define SOL_PPPOL2TP SOL_PPPOL2TP
#define SOL_RAW SOL_RAW
#define SOL_RDS SOL_RDS
#define SOL_RXRPC SOL_RXRPC
#define SOL_SOCKET SOL_SOCKET
#define SOL_TIPC SOL_TIPC
#define SOL_X25 SOL_X25
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SOL_H_ */