mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 13:30:29 +00:00
Add epoll and do more release readiness changes
This change also pays off some of the remaining technical debt with stdio, file descriptors, and memory managemnt polyfills.
This commit is contained in:
parent
a9ea949df8
commit
3e4fd4b0ad
271 changed files with 5706 additions and 1365 deletions
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLERR 8 0 0 0 0
|
||||
.syscon epoll EPOLLERR 8 8 8 8 8
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLET 0x80000000 0 0 0 0
|
||||
.syscon epoll EPOLLET 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLEXCLUSIVE 0x10000000 0 0 0 0
|
||||
.syscon epoll EPOLLEXCLUSIVE 0x10000000 0x10000000 0x10000000 0x10000000 0x10000000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLHUP 0x10 0 0 0 0
|
||||
.syscon epoll EPOLLHUP 0x10 0x10 0x10 0x10 0x10
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLIN 1 0 0 0 0
|
||||
.syscon epoll EPOLLIN 1 1 1 1 1
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLMSG 0x0400 0 0 0 0
|
||||
.syscon epoll EPOLLMSG 0x0400 0x0400 0x0400 0x0400 0x0400
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLONESHOT 0x40000000 0 0 0 0
|
||||
.syscon epoll EPOLLONESHOT 0x40000000 0x40000000 0x40000000 0x40000000 0x40000000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLOUT 4 0 0 0 0
|
||||
.syscon epoll EPOLLOUT 4 4 4 4 4
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLPRI 2 0 0 0 0
|
||||
.syscon epoll EPOLLPRI 2 2 2 2 2
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLRDBAND 0x80 0 0 0 0
|
||||
.syscon epoll EPOLLRDBAND 0x80 0x80 0x80 0x80 0x80
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLRDHUP 0x2000 0 0 0 0
|
||||
.syscon epoll EPOLLRDHUP 0x2000 0x2000 0x2000 0x2000 0x2000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLRDNORM 0x40 0 0 0 0
|
||||
.syscon epoll EPOLLRDNORM 0x40 0x40 0x40 0x40 0x40
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLWAKEUP 0x20000000 0 0 0 0
|
||||
.syscon epoll EPOLLWAKEUP 0x20000000 0x20000000 0x20000000 0x20000000 0x20000000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLWRBAND 0x0200 0 0 0 0
|
||||
.syscon epoll EPOLLWRBAND 0x0200 0x0200 0x0200 0x0200 0x0200
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLLWRNORM 0x0100 0 0 0 0
|
||||
.syscon epoll EPOLLWRNORM 0x0100 0x0100 0x0100 0x0100 0x0100
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLL_CLOEXEC 0x080000 0 0 0 0
|
||||
.syscon epoll EPOLL_CLOEXEC 0x080000 0x01000000 0x100000 0x010000 0x80000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLL_CTL_ADD 1 0 0 0 0
|
||||
.syscon epoll EPOLL_CTL_ADD 1 1 1 1 1
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLL_CTL_DEL 2 0 0 0 0
|
||||
.syscon epoll EPOLL_CTL_DEL 2 2 2 2 2
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon epoll EPOLL_CTL_MOD 3 0 0 0 0
|
||||
.syscon epoll EPOLL_CTL_MOD 3 3 3 3 3
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon errno EXDEV 18 18 18 18 -1
|
||||
.syscon errno EXDEV 18 18 18 18 17
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon open O_NONBLOCK 0x0800 4 4 4 0
|
||||
.syscon open O_NONBLOCK 0x0800 4 4 4 0x00000800
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon sock SOCK_CLOEXEC 0x080000 0x080000 0x10000000 0x8000 0x80
|
||||
.syscon sock SOCK_CLOEXEC 0x080000 0x080000 0x10000000 0x8000 0x00080000
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
.include "libc/sysv/consts/syscon.inc"
|
||||
.syscon sock SOCK_NONBLOCK 0x0800 0x0800 0x20000000 0x4000 0x0800
|
||||
.syscon sock SOCK_NONBLOCK 0x0800 0x0800 0x20000000 0x4000 0x00000800
|
||||
|
|
|
@ -1,87 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define _POSIX_ADVISORY_INFO SYMBOLIC(_POSIX_ADVISORY_INFO)
|
||||
#define _POSIX_AIO_LISTIO_MAX SYMBOLIC(_POSIX_AIO_LISTIO_MAX)
|
||||
#define _POSIX_AIO_MAX SYMBOLIC(_POSIX_AIO_MAX)
|
||||
#define _POSIX_ARG_MAX SYMBOLIC(_POSIX_ARG_MAX)
|
||||
#define _POSIX_ASYNCHRONOUS_IO SYMBOLIC(_POSIX_ASYNCHRONOUS_IO)
|
||||
#define _POSIX_BARRIERS SYMBOLIC(_POSIX_BARRIERS)
|
||||
#define _POSIX_CHILD_MAX SYMBOLIC(_POSIX_CHILD_MAX)
|
||||
#define _POSIX_CHOWN_RESTRICTED SYMBOLIC(_POSIX_CHOWN_RESTRICTED)
|
||||
#define _POSIX_CLOCKRES_MIN SYMBOLIC(_POSIX_CLOCKRES_MIN)
|
||||
#define _POSIX_CLOCK_SELECTION SYMBOLIC(_POSIX_CLOCK_SELECTION)
|
||||
#define _POSIX_CPUTIME SYMBOLIC(_POSIX_CPUTIME)
|
||||
#define _POSIX_DELAYTIMER_MAX SYMBOLIC(_POSIX_DELAYTIMER_MAX)
|
||||
#define _POSIX_FSYNC SYMBOLIC(_POSIX_FSYNC)
|
||||
#define _POSIX_HOST_NAME_MAX SYMBOLIC(_POSIX_HOST_NAME_MAX)
|
||||
#define _POSIX_IPV6 SYMBOLIC(_POSIX_IPV6)
|
||||
#define _POSIX_JOB_CONTROL SYMBOLIC(_POSIX_JOB_CONTROL)
|
||||
#define _POSIX_LINK_MAX SYMBOLIC(_POSIX_LINK_MAX)
|
||||
#define _POSIX_LOGIN_NAME_MAX SYMBOLIC(_POSIX_LOGIN_NAME_MAX)
|
||||
#define _POSIX_MAPPED_FILES SYMBOLIC(_POSIX_MAPPED_FILES)
|
||||
#define _POSIX_MAX_CANON SYMBOLIC(_POSIX_MAX_CANON)
|
||||
#define _POSIX_MAX_INPUT SYMBOLIC(_POSIX_MAX_INPUT)
|
||||
#define _POSIX_MEMLOCK SYMBOLIC(_POSIX_MEMLOCK)
|
||||
#define _POSIX_MEMLOCK_RANGE SYMBOLIC(_POSIX_MEMLOCK_RANGE)
|
||||
#define _POSIX_MEMORY_PROTECTION SYMBOLIC(_POSIX_MEMORY_PROTECTION)
|
||||
#define _POSIX_MESSAGE_PASSING SYMBOLIC(_POSIX_MESSAGE_PASSING)
|
||||
#define _POSIX_MONOTONIC_CLOCK SYMBOLIC(_POSIX_MONOTONIC_CLOCK)
|
||||
#define _POSIX_MQ_OPEN_MAX SYMBOLIC(_POSIX_MQ_OPEN_MAX)
|
||||
#define _POSIX_MQ_PRIO_MAX SYMBOLIC(_POSIX_MQ_PRIO_MAX)
|
||||
#define _POSIX_NAME_MAX SYMBOLIC(_POSIX_NAME_MAX)
|
||||
#define _POSIX_NGROUPS_MAX SYMBOLIC(_POSIX_NGROUPS_MAX)
|
||||
#define _POSIX_NO_TRUNC SYMBOLIC(_POSIX_NO_TRUNC)
|
||||
#define _POSIX_OPEN_MAX SYMBOLIC(_POSIX_OPEN_MAX)
|
||||
#define _POSIX_PATH_MAX SYMBOLIC(_POSIX_PATH_MAX)
|
||||
#define _POSIX_PIPE_BUF SYMBOLIC(_POSIX_PIPE_BUF)
|
||||
#define _POSIX_RAW_SOCKETS SYMBOLIC(_POSIX_RAW_SOCKETS)
|
||||
#define _POSIX_READER_WRITER_LOCKS SYMBOLIC(_POSIX_READER_WRITER_LOCKS)
|
||||
#define _POSIX_REALTIME_SIGNALS SYMBOLIC(_POSIX_REALTIME_SIGNALS)
|
||||
#define _POSIX_REGEXP SYMBOLIC(_POSIX_REGEXP)
|
||||
#define _POSIX_RE_DUP_MAX SYMBOLIC(_POSIX_RE_DUP_MAX)
|
||||
#define _POSIX_RTSIG_MAX SYMBOLIC(_POSIX_RTSIG_MAX)
|
||||
#define _POSIX_SAVED_IDS SYMBOLIC(_POSIX_SAVED_IDS)
|
||||
#define _POSIX_SEMAPHORES SYMBOLIC(_POSIX_SEMAPHORES)
|
||||
#define _POSIX_SEM_NSEMS_MAX SYMBOLIC(_POSIX_SEM_NSEMS_MAX)
|
||||
#define _POSIX_SEM_VALUE_MAX SYMBOLIC(_POSIX_SEM_VALUE_MAX)
|
||||
#define _POSIX_SHARED_MEMORY_OBJECTS SYMBOLIC(_POSIX_SHARED_MEMORY_OBJECTS)
|
||||
#define _POSIX_SHELL SYMBOLIC(_POSIX_SHELL)
|
||||
#define _POSIX_SIGQUEUE_MAX SYMBOLIC(_POSIX_SIGQUEUE_MAX)
|
||||
#define _POSIX_SPAWN SYMBOLIC(_POSIX_SPAWN)
|
||||
#define _POSIX_SPIN_LOCKS SYMBOLIC(_POSIX_SPIN_LOCKS)
|
||||
#define _POSIX_SSIZE_MAX SYMBOLIC(_POSIX_SSIZE_MAX)
|
||||
#define _POSIX_SS_REPL_MAX SYMBOLIC(_POSIX_SS_REPL_MAX)
|
||||
#define _POSIX_STREAM_MAX SYMBOLIC(_POSIX_STREAM_MAX)
|
||||
#define _POSIX_SYMLINK_MAX SYMBOLIC(_POSIX_SYMLINK_MAX)
|
||||
#define _POSIX_SYMLOOP_MAX SYMBOLIC(_POSIX_SYMLOOP_MAX)
|
||||
#define _POSIX_THREADS SYMBOLIC(_POSIX_THREADS)
|
||||
#define _POSIX_THREAD_ATTR_STACKADDR SYMBOLIC(_POSIX_THREAD_ATTR_STACKADDR)
|
||||
#define _POSIX_THREAD_ATTR_STACKSIZE SYMBOLIC(_POSIX_THREAD_ATTR_STACKSIZE)
|
||||
#define _POSIX_THREAD_CPUTIME SYMBOLIC(_POSIX_THREAD_CPUTIME)
|
||||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS \
|
||||
SYMBOLIC(_POSIX_THREAD_DESTRUCTOR_ITERATIONS)
|
||||
#define _POSIX_THREAD_KEYS_MAX SYMBOLIC(_POSIX_THREAD_KEYS_MAX)
|
||||
#define _POSIX_THREAD_PRIORITY_SCHEDULING \
|
||||
SYMBOLIC(_POSIX_THREAD_PRIORITY_SCHEDULING)
|
||||
#define _POSIX_THREAD_PROCESS_SHARED SYMBOLIC(_POSIX_THREAD_PROCESS_SHARED)
|
||||
#define _POSIX_THREAD_SAFE_FUNCTIONS SYMBOLIC(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||
#define _POSIX_THREAD_THREADS_MAX SYMBOLIC(_POSIX_THREAD_THREADS_MAX)
|
||||
#define _POSIX_TIMEOUTS SYMBOLIC(_POSIX_TIMEOUTS)
|
||||
#define _POSIX_TIMERS SYMBOLIC(_POSIX_TIMERS)
|
||||
#define _POSIX_TIMER_MAX SYMBOLIC(_POSIX_TIMER_MAX)
|
||||
#define _POSIX_TRACE_EVENT_NAME_MAX SYMBOLIC(_POSIX_TRACE_EVENT_NAME_MAX)
|
||||
#define _POSIX_TRACE_NAME_MAX SYMBOLIC(_POSIX_TRACE_NAME_MAX)
|
||||
#define _POSIX_TRACE_SYS_MAX SYMBOLIC(_POSIX_TRACE_SYS_MAX)
|
||||
#define _POSIX_TRACE_USER_EVENT_MAX SYMBOLIC(_POSIX_TRACE_USER_EVENT_MAX)
|
||||
#define _POSIX_TTY_NAME_MAX SYMBOLIC(_POSIX_TTY_NAME_MAX)
|
||||
#define _POSIX_TZNAME_MAX SYMBOLIC(_POSIX_TZNAME_MAX)
|
||||
#define _POSIX_V6_LP64_OFF64 SYMBOLIC(_POSIX_V6_LP64_OFF64)
|
||||
#define _POSIX_V7_LP64_OFF64 SYMBOLIC(_POSIX_V7_LP64_OFF64)
|
||||
#define _POSIX_VDISABLE SYMBOLIC(_POSIX_VDISABLE)
|
||||
#define _POSIX_VERSION SYMBOLIC(_POSIX_VERSION)
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -165,4 +84,85 @@ hidden extern const long _POSIX_VERSION;
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define _POSIX_ADVISORY_INFO SYMBOLIC(_POSIX_ADVISORY_INFO)
|
||||
#define _POSIX_AIO_LISTIO_MAX SYMBOLIC(_POSIX_AIO_LISTIO_MAX)
|
||||
#define _POSIX_AIO_MAX SYMBOLIC(_POSIX_AIO_MAX)
|
||||
#define _POSIX_ARG_MAX SYMBOLIC(_POSIX_ARG_MAX)
|
||||
#define _POSIX_ASYNCHRONOUS_IO SYMBOLIC(_POSIX_ASYNCHRONOUS_IO)
|
||||
#define _POSIX_BARRIERS SYMBOLIC(_POSIX_BARRIERS)
|
||||
#define _POSIX_CHILD_MAX SYMBOLIC(_POSIX_CHILD_MAX)
|
||||
#define _POSIX_CHOWN_RESTRICTED SYMBOLIC(_POSIX_CHOWN_RESTRICTED)
|
||||
#define _POSIX_CLOCKRES_MIN SYMBOLIC(_POSIX_CLOCKRES_MIN)
|
||||
#define _POSIX_CLOCK_SELECTION SYMBOLIC(_POSIX_CLOCK_SELECTION)
|
||||
#define _POSIX_CPUTIME SYMBOLIC(_POSIX_CPUTIME)
|
||||
#define _POSIX_DELAYTIMER_MAX SYMBOLIC(_POSIX_DELAYTIMER_MAX)
|
||||
#define _POSIX_FSYNC SYMBOLIC(_POSIX_FSYNC)
|
||||
#define _POSIX_HOST_NAME_MAX SYMBOLIC(_POSIX_HOST_NAME_MAX)
|
||||
#define _POSIX_IPV6 SYMBOLIC(_POSIX_IPV6)
|
||||
#define _POSIX_JOB_CONTROL SYMBOLIC(_POSIX_JOB_CONTROL)
|
||||
#define _POSIX_LINK_MAX SYMBOLIC(_POSIX_LINK_MAX)
|
||||
#define _POSIX_LOGIN_NAME_MAX SYMBOLIC(_POSIX_LOGIN_NAME_MAX)
|
||||
#define _POSIX_MAPPED_FILES SYMBOLIC(_POSIX_MAPPED_FILES)
|
||||
#define _POSIX_MAX_CANON SYMBOLIC(_POSIX_MAX_CANON)
|
||||
#define _POSIX_MAX_INPUT SYMBOLIC(_POSIX_MAX_INPUT)
|
||||
#define _POSIX_MEMLOCK SYMBOLIC(_POSIX_MEMLOCK)
|
||||
#define _POSIX_MEMLOCK_RANGE SYMBOLIC(_POSIX_MEMLOCK_RANGE)
|
||||
#define _POSIX_MEMORY_PROTECTION SYMBOLIC(_POSIX_MEMORY_PROTECTION)
|
||||
#define _POSIX_MESSAGE_PASSING SYMBOLIC(_POSIX_MESSAGE_PASSING)
|
||||
#define _POSIX_MONOTONIC_CLOCK SYMBOLIC(_POSIX_MONOTONIC_CLOCK)
|
||||
#define _POSIX_MQ_OPEN_MAX SYMBOLIC(_POSIX_MQ_OPEN_MAX)
|
||||
#define _POSIX_MQ_PRIO_MAX SYMBOLIC(_POSIX_MQ_PRIO_MAX)
|
||||
#define _POSIX_NAME_MAX SYMBOLIC(_POSIX_NAME_MAX)
|
||||
#define _POSIX_NGROUPS_MAX SYMBOLIC(_POSIX_NGROUPS_MAX)
|
||||
#define _POSIX_NO_TRUNC SYMBOLIC(_POSIX_NO_TRUNC)
|
||||
#define _POSIX_OPEN_MAX SYMBOLIC(_POSIX_OPEN_MAX)
|
||||
#define _POSIX_PATH_MAX SYMBOLIC(_POSIX_PATH_MAX)
|
||||
#define _POSIX_PIPE_BUF SYMBOLIC(_POSIX_PIPE_BUF)
|
||||
#define _POSIX_RAW_SOCKETS SYMBOLIC(_POSIX_RAW_SOCKETS)
|
||||
#define _POSIX_READER_WRITER_LOCKS SYMBOLIC(_POSIX_READER_WRITER_LOCKS)
|
||||
#define _POSIX_REALTIME_SIGNALS SYMBOLIC(_POSIX_REALTIME_SIGNALS)
|
||||
#define _POSIX_REGEXP SYMBOLIC(_POSIX_REGEXP)
|
||||
#define _POSIX_RE_DUP_MAX SYMBOLIC(_POSIX_RE_DUP_MAX)
|
||||
#define _POSIX_RTSIG_MAX SYMBOLIC(_POSIX_RTSIG_MAX)
|
||||
#define _POSIX_SAVED_IDS SYMBOLIC(_POSIX_SAVED_IDS)
|
||||
#define _POSIX_SEMAPHORES SYMBOLIC(_POSIX_SEMAPHORES)
|
||||
#define _POSIX_SEM_NSEMS_MAX SYMBOLIC(_POSIX_SEM_NSEMS_MAX)
|
||||
#define _POSIX_SEM_VALUE_MAX SYMBOLIC(_POSIX_SEM_VALUE_MAX)
|
||||
#define _POSIX_SHARED_MEMORY_OBJECTS SYMBOLIC(_POSIX_SHARED_MEMORY_OBJECTS)
|
||||
#define _POSIX_SHELL SYMBOLIC(_POSIX_SHELL)
|
||||
#define _POSIX_SIGQUEUE_MAX SYMBOLIC(_POSIX_SIGQUEUE_MAX)
|
||||
#define _POSIX_SPAWN SYMBOLIC(_POSIX_SPAWN)
|
||||
#define _POSIX_SPIN_LOCKS SYMBOLIC(_POSIX_SPIN_LOCKS)
|
||||
#define _POSIX_SSIZE_MAX SYMBOLIC(_POSIX_SSIZE_MAX)
|
||||
#define _POSIX_SS_REPL_MAX SYMBOLIC(_POSIX_SS_REPL_MAX)
|
||||
#define _POSIX_STREAM_MAX SYMBOLIC(_POSIX_STREAM_MAX)
|
||||
#define _POSIX_SYMLINK_MAX SYMBOLIC(_POSIX_SYMLINK_MAX)
|
||||
#define _POSIX_SYMLOOP_MAX SYMBOLIC(_POSIX_SYMLOOP_MAX)
|
||||
#define _POSIX_THREADS SYMBOLIC(_POSIX_THREADS)
|
||||
#define _POSIX_THREAD_ATTR_STACKADDR SYMBOLIC(_POSIX_THREAD_ATTR_STACKADDR)
|
||||
#define _POSIX_THREAD_ATTR_STACKSIZE SYMBOLIC(_POSIX_THREAD_ATTR_STACKSIZE)
|
||||
#define _POSIX_THREAD_CPUTIME SYMBOLIC(_POSIX_THREAD_CPUTIME)
|
||||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS \
|
||||
SYMBOLIC(_POSIX_THREAD_DESTRUCTOR_ITERATIONS)
|
||||
#define _POSIX_THREAD_KEYS_MAX SYMBOLIC(_POSIX_THREAD_KEYS_MAX)
|
||||
#define _POSIX_THREAD_PRIORITY_SCHEDULING \
|
||||
SYMBOLIC(_POSIX_THREAD_PRIORITY_SCHEDULING)
|
||||
#define _POSIX_THREAD_PROCESS_SHARED SYMBOLIC(_POSIX_THREAD_PROCESS_SHARED)
|
||||
#define _POSIX_THREAD_SAFE_FUNCTIONS SYMBOLIC(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||
#define _POSIX_THREAD_THREADS_MAX SYMBOLIC(_POSIX_THREAD_THREADS_MAX)
|
||||
#define _POSIX_TIMEOUTS SYMBOLIC(_POSIX_TIMEOUTS)
|
||||
#define _POSIX_TIMERS SYMBOLIC(_POSIX_TIMERS)
|
||||
#define _POSIX_TIMER_MAX SYMBOLIC(_POSIX_TIMER_MAX)
|
||||
#define _POSIX_TRACE_EVENT_NAME_MAX SYMBOLIC(_POSIX_TRACE_EVENT_NAME_MAX)
|
||||
#define _POSIX_TRACE_NAME_MAX SYMBOLIC(_POSIX_TRACE_NAME_MAX)
|
||||
#define _POSIX_TRACE_SYS_MAX SYMBOLIC(_POSIX_TRACE_SYS_MAX)
|
||||
#define _POSIX_TRACE_USER_EVENT_MAX SYMBOLIC(_POSIX_TRACE_USER_EVENT_MAX)
|
||||
#define _POSIX_TTY_NAME_MAX SYMBOLIC(_POSIX_TTY_NAME_MAX)
|
||||
#define _POSIX_TZNAME_MAX SYMBOLIC(_POSIX_TZNAME_MAX)
|
||||
#define _POSIX_V6_LP64_OFF64 SYMBOLIC(_POSIX_V6_LP64_OFF64)
|
||||
#define _POSIX_V7_LP64_OFF64 SYMBOLIC(_POSIX_V7_LP64_OFF64)
|
||||
#define _POSIX_VDISABLE SYMBOLIC(_POSIX_VDISABLE)
|
||||
#define _POSIX_VERSION SYMBOLIC(_POSIX_VERSION)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_ */
|
||||
|
|
55
libc/sysv/consts/epoll.h
Normal file
55
libc/sysv/consts/epoll.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden extern const long EPOLL_CLOEXEC;
|
||||
|
||||
hidden extern const long EPOLL_CTL_ADD;
|
||||
hidden extern const long EPOLL_CTL_DEL;
|
||||
hidden extern const long EPOLL_CTL_MOD;
|
||||
|
||||
hidden extern const long EPOLLIN;
|
||||
hidden extern const long EPOLLPRI;
|
||||
hidden extern const long EPOLLOUT;
|
||||
hidden extern const long EPOLLERR;
|
||||
hidden extern const long EPOLLHUP;
|
||||
hidden extern const long EPOLLRDNORM;
|
||||
hidden extern const long EPOLLRDBAND;
|
||||
hidden extern const long EPOLLWRNORM;
|
||||
hidden extern const long EPOLLWRBAND;
|
||||
hidden extern const long EPOLLMSG;
|
||||
hidden extern const long EPOLLRDHUP;
|
||||
hidden extern const long EPOLLEXCLUSIVE;
|
||||
hidden extern const long EPOLLWAKEUP;
|
||||
hidden extern const long EPOLLONESHOT;
|
||||
hidden extern const long EPOLLET;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define EPOLL_CLOEXEC O_CLOEXEC
|
||||
|
||||
#define EPOLL_CTL_ADD LITERALLY(1)
|
||||
#define EPOLL_CTL_DEL LITERALLY(2)
|
||||
#define EPOLL_CTL_MOD LITERALLY(3)
|
||||
|
||||
#define EPOLLIN LITERALLY(1)
|
||||
#define EPOLLPRI LITERALLY(2)
|
||||
#define EPOLLOUT LITERALLY(4)
|
||||
#define EPOLLERR LITERALLY(8)
|
||||
#define EPOLLHUP LITERALLY(0x10)
|
||||
#define EPOLLRDNORM LITERALLY(0x40)
|
||||
#define EPOLLRDBAND LITERALLY(0x80)
|
||||
#define EPOLLWRNORM LITERALLY(0x0100)
|
||||
#define EPOLLWRBAND LITERALLY(0x0200)
|
||||
#define EPOLLMSG LITERALLY(0x0400)
|
||||
#define EPOLLRDHUP LITERALLY(0x2000)
|
||||
#define EPOLLEXCLUSIVE LITERALLY(0x10000000)
|
||||
#define EPOLLWAKEUP LITERALLY(0x20000000)
|
||||
#define EPOLLONESHOT LITERALLY(0x40000000)
|
||||
#define EPOLLET LITERALLY(0x80000000)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_EPOLL_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue