mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
18bb5888e1
- 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
33 lines
886 B
C
33 lines
886 B
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
|
#include "libc/sysv/consts/o.h"
|
|
|
|
#define EPOLL_CTL_ADD 1
|
|
#define EPOLL_CTL_DEL 2
|
|
#define EPOLL_CTL_MOD 3
|
|
|
|
#define EPOLLIN 1
|
|
#define EPOLLPRI 2
|
|
#define EPOLLOUT 4
|
|
#define EPOLLERR 8
|
|
#define EPOLLHUP 0x10
|
|
#define EPOLLRDNORM 0x40
|
|
#define EPOLLRDBAND 0x80
|
|
#define EPOLLWRNORM 0x0100
|
|
#define EPOLLWRBAND 0x0200
|
|
#define EPOLLMSG 0x0400
|
|
#define EPOLLRDHUP 0x2000
|
|
#define EPOLLEXCLUSIVE 0x10000000
|
|
#define EPOLLWAKEUP 0x20000000
|
|
#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_ */
|