mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 21:40:30 +00:00
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:
parent
140a8a52e5
commit
18bb5888e1
311 changed files with 1239 additions and 2622 deletions
|
@ -1,32 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int EPOLL_CLOEXEC;
|
||||
|
||||
extern const int EPOLL_CTL_ADD;
|
||||
extern const int EPOLL_CTL_DEL;
|
||||
extern const int EPOLL_CTL_MOD;
|
||||
|
||||
extern const uint32_t EPOLLIN;
|
||||
extern const uint32_t EPOLLPRI;
|
||||
extern const uint32_t EPOLLOUT;
|
||||
extern const uint32_t EPOLLERR;
|
||||
extern const uint32_t EPOLLHUP;
|
||||
extern const uint32_t EPOLLRDNORM;
|
||||
extern const uint32_t EPOLLRDBAND;
|
||||
extern const uint32_t EPOLLWRNORM;
|
||||
extern const uint32_t EPOLLWRBAND;
|
||||
extern const uint32_t EPOLLMSG;
|
||||
extern const uint32_t EPOLLRDHUP;
|
||||
extern const uint32_t EPOLLEXCLUSIVE;
|
||||
extern const uint32_t EPOLLWAKEUP;
|
||||
extern const uint32_t EPOLLONESHOT;
|
||||
extern const uint32_t EPOLLET;
|
||||
|
||||
#define EPOLL_CLOEXEC O_CLOEXEC
|
||||
|
||||
#define EPOLL_CTL_ADD 1
|
||||
#define EPOLL_CTL_DEL 2
|
||||
|
@ -48,6 +22,12 @@ extern const uint32_t EPOLLET;
|
|||
#define EPOLLONESHOT 0x40000000
|
||||
#define EPOLLET 0x80000000
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int EPOLL_CLOEXEC;
|
||||
#define EPOLL_CLOEXEC O_CLOEXEC
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue