mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 21:40:30 +00:00
Make improvements
- Add rusage to redbean Lua API - Add more redbean documentation - Add pledge() to redbean Lua API - Polyfill OpenBSD pledge() for Linux - Increase PATH_MAX limit to 1024 characters - Untrack sibling processes after fork() on Windows
This commit is contained in:
parent
9a6bd304a5
commit
47b3274665
212 changed files with 2251 additions and 834 deletions
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon exit,EXIT_SUCCESS,0,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,PIPE_BUF,4096,512,512,512,512,4096
|
||||
.syscon limits,PIPE_BUF,4096,512,512,512,512,4096
|
||||
|
|
2
libc/sysv/consts/_ARG_MAX.S
Normal file
2
libc/sysv/consts/_ARG_MAX.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon limits,_ARG_MAX,128*1024,1024*1024,512*1024,512*1024,256*1024,32767*2
|
2
libc/sysv/consts/_NAME_MAX.S
Normal file
2
libc/sysv/consts/_NAME_MAX.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon limits,_NAME_MAX,255,255,255,255,511,255
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon exit,EXIT_FAILURE,1,1,1,1,1,1
|
||||
.syscon limits,_NSIG,64,32,128,32,64,32
|
2
libc/sysv/consts/_PATH_MAX.S
Normal file
2
libc/sysv/consts/_PATH_MAX.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon limits,_PATH_MAX,4096,1024,1024,1024,1024,512
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_BC_BASE_MAX,99,99,99,99,99,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_BC_DIM_MAX,0x0800,0x0800,0x0800,0x0800,0x0800,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_BC_SCALE_MAX,99,99,99,99,99,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_BC_STRING_MAX,0x03e8,0x03e8,0x03e8,0x03e8,0x03e8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_CHARCLASS_NAME_MAX,14,14,14,14,14,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_COLL_WEIGHTS_MAX,2,2,2,2,2,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_C_BIND,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_EXPR_NEST_MAX,0x20,0x20,0x20,0x20,0x20,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_LINE_MAX,0x0800,0x0800,0x0800,0x0800,0x0800,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_RE_DUP_MAX,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,_POSIX2_VERSION,0x031069,0x030db0,0x030a2c,0x031069,0x031069,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_ADVISORY_INFO,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_AIO_LISTIO_MAX,2,2,2,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_AIO_MAX,1,1,1,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_ARG_MAX,0x1000,0x1000,0x1000,0x1000,0x1000,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_ASYNCHRONOUS_IO,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_BARRIERS,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_CHILD_MAX,25,25,25,25,25,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_CHOWN_RESTRICTED,0,0x030db0,1,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_CLOCKRES_MIN,0x01312d00,0,0x01312d00,0x01312d00,0x01312d00,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_CLOCK_SELECTION,0x031069,-1,-1,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_CPUTIME,0,-1,0x030db0,0x031069,0x031069,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_DELAYTIMER_MAX,0x20,0x20,0x20,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_FSYNC,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_HOST_NAME_MAX,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_IPV6,0x031069,0x030db0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_JOB_CONTROL,1,0x030db0,1,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_LINK_MAX,8,8,8,8,8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_LOGIN_NAME_MAX,9,9,9,9,9,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MAPPED_FILES,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MAX_CANON,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MAX_INPUT,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MEMLOCK,0x031069,-1,-1,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MEMLOCK_RANGE,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MEMORY_PROTECTION,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MESSAGE_PASSING,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MONOTONIC_CLOCK,0,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MQ_OPEN_MAX,8,8,8,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_MQ_PRIO_MAX,0x20,0x20,0x20,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_NAME_MAX,14,14,14,14,14,14
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_NGROUPS_MAX,8,8,8,8,8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_NO_TRUNC,1,0x030db0,1,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_OPEN_MAX,20,20,20,20,20,20
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_PATH_MAX,255,255,255,255,255,255
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_PIPE_BUF,0x0200,0x0200,0x0200,0x0200,0x0200,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_RAW_SOCKETS,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_READER_WRITER_LOCKS,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_REALTIME_SIGNALS,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_REGEXP,1,0x030db0,1,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_RE_DUP_MAX,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_RTSIG_MAX,8,8,8,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SAVED_IDS,1,0x030db0,0,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SEMAPHORES,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SEM_NSEMS_MAX,0x0100,0x0100,0x0100,0x0100,0x0100,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SEM_VALUE_MAX,0x7fff,0x7fff,0x7fff,0x7fff,0x7fff,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SHARED_MEMORY_OBJECTS,0x031069,-1,0x030db0,0x031069,0x031069,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SHELL,1,0x030db0,1,1,1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SIGQUEUE_MAX,0x20,0x20,0x20,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SPAWN,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SPIN_LOCKS,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SSIZE_MAX,0x7fff,0x7fff,0x7fff,0x7fff,0x7fff,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SS_REPL_MAX,0,4,4,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_STREAM_MAX,8,8,8,8,8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SYMLINK_MAX,255,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_SYMLOOP_MAX,8,8,8,8,8,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREADS,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_ATTR_STACKADDR,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_ATTR_STACKSIZE,0x031069,0x030db0,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_CPUTIME,0,-1,0x030db0,0x031069,0x031069,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_DESTRUCTOR_ITERATIONS,4,4,4,4,4,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_KEYS_MAX,0x80,0x80,0x80,0x80,0x80,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_PRIORITY_SCHEDULING,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_PROCESS_SHARED,0x031069,0x030db0,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_SAFE_FUNCTIONS,0x031069,0x030db0,-1,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_THREAD_THREADS_MAX,0x40,0x40,0x40,4,4,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TIMEOUTS,0x031069,-1,0x030db0,0x030db0,0x030db0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TIMERS,0x031069,-1,0x030db0,-1,-1,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TIMER_MAX,0x20,0x20,0x20,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TRACE_EVENT_NAME_MAX,0,30,30,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TRACE_NAME_MAX,0,8,8,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TRACE_SYS_MAX,0,8,8,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TRACE_USER_EVENT_MAX,0,0x20,0x20,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TTY_NAME_MAX,9,9,9,9,9,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_TZNAME_MAX,6,6,6,6,6,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_V6_LP64_OFF64,1,1,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_V7_LP64_OFF64,1,1,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_VDISABLE,0,255,255,255,255,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon posix,_POSIX_VERSION,0x031069,0x030db0,0x030db0,0x031069,0x031069,0
|
|
@ -1,168 +1,59 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long _POSIX_ADVISORY_INFO;
|
||||
extern const long _POSIX_AIO_LISTIO_MAX;
|
||||
extern const long _POSIX_AIO_MAX;
|
||||
extern const long _POSIX_ARG_MAX;
|
||||
extern const long _POSIX_ASYNCHRONOUS_IO;
|
||||
extern const long _POSIX_BARRIERS;
|
||||
extern const long _POSIX_CHILD_MAX;
|
||||
extern const long _POSIX_CHOWN_RESTRICTED;
|
||||
extern const long _POSIX_CLOCKRES_MIN;
|
||||
extern const long _POSIX_CLOCK_SELECTION;
|
||||
extern const long _POSIX_CPUTIME;
|
||||
extern const long _POSIX_DELAYTIMER_MAX;
|
||||
extern const long _POSIX_FSYNC;
|
||||
extern const long _POSIX_HOST_NAME_MAX;
|
||||
extern const long _POSIX_IPV6;
|
||||
extern const long _POSIX_JOB_CONTROL;
|
||||
extern const long _POSIX_LINK_MAX;
|
||||
extern const long _POSIX_LOGIN_NAME_MAX;
|
||||
extern const long _POSIX_MAPPED_FILES;
|
||||
extern const long _POSIX_MAX_CANON;
|
||||
extern const long _POSIX_MAX_INPUT;
|
||||
extern const long _POSIX_MEMLOCK;
|
||||
extern const long _POSIX_MEMLOCK_RANGE;
|
||||
extern const long _POSIX_MEMORY_PROTECTION;
|
||||
extern const long _POSIX_MESSAGE_PASSING;
|
||||
extern const long _POSIX_MONOTONIC_CLOCK;
|
||||
extern const long _POSIX_MQ_OPEN_MAX;
|
||||
extern const long _POSIX_MQ_PRIO_MAX;
|
||||
extern const long _POSIX_NAME_MAX;
|
||||
extern const long _POSIX_NGROUPS_MAX;
|
||||
extern const long _POSIX_NO_TRUNC;
|
||||
extern const long _POSIX_OPEN_MAX;
|
||||
extern const long _POSIX_PATH_MAX;
|
||||
extern const long _POSIX_PIPE_BUF;
|
||||
extern const long _POSIX_RAW_SOCKETS;
|
||||
extern const long _POSIX_READER_WRITER_LOCKS;
|
||||
extern const long _POSIX_REALTIME_SIGNALS;
|
||||
extern const long _POSIX_REGEXP;
|
||||
extern const long _POSIX_RE_DUP_MAX;
|
||||
extern const long _POSIX_RTSIG_MAX;
|
||||
extern const long _POSIX_SAVED_IDS;
|
||||
extern const long _POSIX_SEMAPHORES;
|
||||
extern const long _POSIX_SEM_NSEMS_MAX;
|
||||
extern const long _POSIX_SEM_VALUE_MAX;
|
||||
extern const long _POSIX_SHARED_MEMORY_OBJECTS;
|
||||
extern const long _POSIX_SHELL;
|
||||
extern const long _POSIX_SIGQUEUE_MAX;
|
||||
extern const long _POSIX_SPAWN;
|
||||
extern const long _POSIX_SPIN_LOCKS;
|
||||
extern const long _POSIX_SSIZE_MAX;
|
||||
extern const long _POSIX_SS_REPL_MAX;
|
||||
extern const long _POSIX_STREAM_MAX;
|
||||
extern const long _POSIX_SYMLINK_MAX;
|
||||
extern const long _POSIX_SYMLOOP_MAX;
|
||||
extern const long _POSIX_THREADS;
|
||||
extern const long _POSIX_THREAD_ATTR_STACKADDR;
|
||||
extern const long _POSIX_THREAD_ATTR_STACKSIZE;
|
||||
extern const long _POSIX_THREAD_CPUTIME;
|
||||
extern const long _POSIX_THREAD_DESTRUCTOR_ITERATIONS;
|
||||
extern const long _POSIX_THREAD_KEYS_MAX;
|
||||
extern const long _POSIX_THREAD_PRIORITY_SCHEDULING;
|
||||
extern const long _POSIX_THREAD_PROCESS_SHARED;
|
||||
extern const long _POSIX_THREAD_SAFE_FUNCTIONS;
|
||||
extern const long _POSIX_THREAD_THREADS_MAX;
|
||||
extern const long _POSIX_TIMEOUTS;
|
||||
extern const long _POSIX_TIMERS;
|
||||
extern const long _POSIX_TIMER_MAX;
|
||||
extern const long _POSIX_TRACE_EVENT_NAME_MAX;
|
||||
extern const long _POSIX_TRACE_NAME_MAX;
|
||||
extern const long _POSIX_TRACE_SYS_MAX;
|
||||
extern const long _POSIX_TRACE_USER_EVENT_MAX;
|
||||
extern const long _POSIX_TTY_NAME_MAX;
|
||||
extern const long _POSIX_TZNAME_MAX;
|
||||
extern const long _POSIX_V6_LP64_OFF64;
|
||||
extern const long _POSIX_V7_LP64_OFF64;
|
||||
extern const long _POSIX_VDISABLE;
|
||||
extern const long _POSIX_VERSION;
|
||||
/* The Open Group Base Specifications Issue 7, 2018 edition */
|
||||
/* IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) */
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#define _POSIX_AIO_LISTIO_MAX 2
|
||||
#define _POSIX_AIO_MAX 1
|
||||
#define _POSIX_ARG_MAX 4096
|
||||
#define _POSIX_CHILD_MAX 25
|
||||
#define _POSIX_DELAYTIMER_MAX 32
|
||||
#define _POSIX_HOST_NAME_MAX 255
|
||||
#define _POSIX_LINK_MAX 8
|
||||
#define _POSIX_LOGIN_NAME_MAX 9
|
||||
#define _POSIX_MAX_CANON 255
|
||||
#define _POSIX_MAX_INPUT 255
|
||||
#define _POSIX_MQ_OPEN_MAX 8
|
||||
#define _POSIX_MQ_PRIO_MAX 32
|
||||
#define _POSIX_NAME_MAX 14
|
||||
#define _POSIX_NGROUPS_MAX 8
|
||||
#define _POSIX_OPEN_MAX 20
|
||||
#define _POSIX_PATH_MAX 256
|
||||
#define _POSIX_PIPE_BUF 512
|
||||
#define _POSIX_RE_DUP_MAX 255
|
||||
#define _POSIX_RTSIG_MAX 8
|
||||
#define _POSIX_SEM_NSEMS_MAX 256
|
||||
#define _POSIX_SEM_VALUE_MAX 32767
|
||||
#define _POSIX_SIGQUEUE_MAX 32
|
||||
#define _POSIX_SSIZE_MAX 32767
|
||||
#define _POSIX_SS_REPL_MAX 4
|
||||
#define _POSIX_STREAM_MAX 8
|
||||
#define _POSIX_SYMLINK_MAX 255
|
||||
#define _POSIX_SYMLOOP_MAX 8
|
||||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
|
||||
#define _POSIX_THREAD_KEYS_MAX 128
|
||||
#define _POSIX_THREAD_THREADS_MAX 64
|
||||
#define _POSIX_TIMER_MAX 32
|
||||
#define _POSIX_TRACE_EVENT_NAME_MAX 30
|
||||
#define _POSIX_TRACE_NAME_MAX 8
|
||||
#define _POSIX_TRACE_SYS_MAX 8
|
||||
#define _POSIX_TRACE_USER_EVENT_MAX 32
|
||||
#define _POSIX_TTY_NAME_MAX 9
|
||||
#define _POSIX_TZNAME_MAX 6
|
||||
|
||||
#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)
|
||||
#define _POSIX2_BC_BASE_MAX 99
|
||||
#define _POSIX2_BC_DIM_MAX 2048
|
||||
#define _POSIX2_BC_SCALE_MAX 99
|
||||
#define _POSIX2_BC_STRING_MAX 1000
|
||||
#define _POSIX2_CHARCLASS_NAME_MAX 14
|
||||
#define _POSIX2_COLL_WEIGHTS_MAX 2
|
||||
#define _POSIX2_EXPR_NEST_MAX 32
|
||||
#define _POSIX2_LINE_MAX 2048
|
||||
#define _POSIX2_RE_DUP_MAX 255
|
||||
|
||||
#define _XOPEN_IOV_MAX 16
|
||||
#define _XOPEN_NAME_MAX 255
|
||||
#define _XOPEN_PATH_MAX 1024
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_ */
|
||||
|
|
|
@ -4,11 +4,19 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long PIPE_BUF;
|
||||
extern const int PIPE_BUF;
|
||||
extern const int _ARG_MAX;
|
||||
extern const int _NAME_MAX;
|
||||
extern const int _PATH_MAX;
|
||||
extern const int _NSIG;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
|
||||
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
|
||||
#define _ARG_MAX SYMBOLIC(_ARG_MAX)
|
||||
#define _NAME_MAX SYMBOLIC(_NAME_MAX)
|
||||
#define _PATH_MAX SYMBOLIC(_PATH_MAX)
|
||||
#define _NSIG SYMBOLIC(_NSIG)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_LIMITS_H_ */
|
||||
|
|
330
libc/sysv/consts/nrlinux.h
Normal file
330
libc/sysv/consts/nrlinux.h
Normal file
|
@ -0,0 +1,330 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define __NR_linux_exit 0x003c
|
||||
#define __NR_linux_exit_group 0x00e7
|
||||
#define __NR_linux_read 0x0000
|
||||
#define __NR_linux_write 0x0001
|
||||
#define __NR_linux_open 0x0002
|
||||
#define __NR_linux_close 0x0003
|
||||
#define __NR_linux_stat 0x0004
|
||||
#define __NR_linux_fstat 0x0005
|
||||
#define __NR_linux_lstat 0x0006
|
||||
#define __NR_linux_poll 0x0007
|
||||
#define __NR_linux_ppoll 0x010f
|
||||
#define __NR_linux_brk 0x000c
|
||||
#define __NR_linux_sigreturn 0x000f
|
||||
#define __NR_linux_lseek 0x0008
|
||||
#define __NR_linux_mmap 0x0009
|
||||
#define __NR_linux_msync 0x001a
|
||||
#define __NR_linux_mprotect 0x000a
|
||||
#define __NR_linux_munmap 0x000b
|
||||
#define __NR_linux_sigaction 0x000d
|
||||
#define __NR_linux_sigprocmask 0x000e
|
||||
#define __NR_linux_ioctl 0x0010
|
||||
#define __NR_linux_pread 0x0011
|
||||
#define __NR_linux_pwrite 0x0012
|
||||
#define __NR_linux_readv 0x0013
|
||||
#define __NR_linux_writev 0x0014
|
||||
#define __NR_linux_access 0x0015
|
||||
#define __NR_linux_pipe 0x0016
|
||||
#define __NR_linux_select 0x0017
|
||||
#define __NR_linux_pselect6 0x010e
|
||||
#define __NR_linux_sched_yield 0x0018
|
||||
#define __NR_linux_mremap 0x0019
|
||||
#define __NR_linux_mincore 0x001b
|
||||
#define __NR_linux_madvise 0x001c
|
||||
#define __NR_linux_shmget 0x001d
|
||||
#define __NR_linux_shmat 0x001e
|
||||
#define __NR_linux_shmctl 0x001f
|
||||
#define __NR_linux_dup 0x0020
|
||||
#define __NR_linux_dup2 0x0021
|
||||
#define __NR_linux_pause 0x0022
|
||||
#define __NR_linux_nanosleep 0x0023
|
||||
#define __NR_linux_getitimer 0x0024
|
||||
#define __NR_linux_setitimer 0x0026
|
||||
#define __NR_linux_alarm 0x0025
|
||||
#define __NR_linux_getpid 0x0027
|
||||
#define __NR_linux_sendfile 0x0028
|
||||
#define __NR_linux_socket 0x0029
|
||||
#define __NR_linux_connect 0x002a
|
||||
#define __NR_linux_accept 0x002b
|
||||
#define __NR_linux_sendto 0x002c
|
||||
#define __NR_linux_recvfrom 0x002d
|
||||
#define __NR_linux_sendmsg 0x002e
|
||||
#define __NR_linux_recvmsg 0x002f
|
||||
#define __NR_linux_shutdown 0x0030
|
||||
#define __NR_linux_bind 0x0031
|
||||
#define __NR_linux_listen 0x0032
|
||||
#define __NR_linux_getsockname 0x0033
|
||||
#define __NR_linux_getpeername 0x0034
|
||||
#define __NR_linux_socketpair 0x0035
|
||||
#define __NR_linux_setsockopt 0x0036
|
||||
#define __NR_linux_getsockopt 0x0037
|
||||
#define __NR_linux_fork 0x0039
|
||||
#define __NR_linux_vfork 0x003a
|
||||
#define __NR_linux_execve 0x003b
|
||||
#define __NR_linux_wait4 0x003d
|
||||
#define __NR_linux_kill 0x003e
|
||||
#define __NR_linux_clone 0x0038
|
||||
#define __NR_linux_tkill 0x00c8
|
||||
#define __NR_linux_futex 0x00ca
|
||||
#define __NR_linux_set_robust_list 0x0111
|
||||
#define __NR_linux_get_robust_list 0x0112
|
||||
#define __NR_linux_uname 0x003f
|
||||
#define __NR_linux_semget 0x0040
|
||||
#define __NR_linux_semop 0x0041
|
||||
#define __NR_linux_semctl 0x0042
|
||||
#define __NR_linux_shmdt 0x0043
|
||||
#define __NR_linux_msgget 0x0044
|
||||
#define __NR_linux_msgsnd 0x0045
|
||||
#define __NR_linux_msgrcv 0x0046
|
||||
#define __NR_linux_msgctl 0x0047
|
||||
#define __NR_linux_fcntl 0x0048
|
||||
#define __NR_linux_flock 0x0049
|
||||
#define __NR_linux_fsync 0x004a
|
||||
#define __NR_linux_fdatasync 0x004b
|
||||
#define __NR_linux_truncate 0x004c
|
||||
#define __NR_linux_ftruncate 0x004d
|
||||
#define __NR_linux_getcwd 0x004f
|
||||
#define __NR_linux_chdir 0x0050
|
||||
#define __NR_linux_fchdir 0x0051
|
||||
#define __NR_linux_rename 0x0052
|
||||
#define __NR_linux_mkdir 0x0053
|
||||
#define __NR_linux_rmdir 0x0054
|
||||
#define __NR_linux_creat 0x0055
|
||||
#define __NR_linux_link 0x0056
|
||||
#define __NR_linux_unlink 0x0057
|
||||
#define __NR_linux_symlink 0x0058
|
||||
#define __NR_linux_readlink 0x0059
|
||||
#define __NR_linux_chmod 0x005a
|
||||
#define __NR_linux_fchmod 0x005b
|
||||
#define __NR_linux_chown 0x005c
|
||||
#define __NR_linux_fchown 0x005d
|
||||
#define __NR_linux_lchown 0x005e
|
||||
#define __NR_linux_umask 0x005f
|
||||
#define __NR_linux_gettimeofday 0x0060
|
||||
#define __NR_linux_getrlimit 0x0061
|
||||
#define __NR_linux_getrusage 0x0062
|
||||
#define __NR_linux_sysinfo 0x0063
|
||||
#define __NR_linux_times 0x0064
|
||||
#define __NR_linux_ptrace 0x0065
|
||||
#define __NR_linux_syslog 0x0067
|
||||
#define __NR_linux_getuid 0x0066
|
||||
#define __NR_linux_getgid 0x0068
|
||||
#define __NR_linux_getppid 0x006e
|
||||
#define __NR_linux_getpgrp 0x006f
|
||||
#define __NR_linux_setsid 0x0070
|
||||
#define __NR_linux_getsid 0x007c
|
||||
#define __NR_linux_getpgid 0x0079
|
||||
#define __NR_linux_setpgid 0x006d
|
||||
#define __NR_linux_geteuid 0x006b
|
||||
#define __NR_linux_getegid 0x006c
|
||||
#define __NR_linux_getgroups 0x0073
|
||||
#define __NR_linux_setgroups 0x0074
|
||||
#define __NR_linux_setreuid 0x0071
|
||||
#define __NR_linux_setregid 0x0072
|
||||
#define __NR_linux_setuid 0x0069
|
||||
#define __NR_linux_setgid 0x006a
|
||||
#define __NR_linux_setresuid 0x0075
|
||||
#define __NR_linux_setresgid 0x0077
|
||||
#define __NR_linux_getresuid 0x0076
|
||||
#define __NR_linux_getresgid 0x0078
|
||||
#define __NR_linux_sigpending 0x007f
|
||||
#define __NR_linux_sigsuspend 0x0082
|
||||
#define __NR_linux_sigaltstack 0x0083
|
||||
#define __NR_linux_mknod 0x0085
|
||||
#define __NR_linux_mknodat 0x0103
|
||||
#define __NR_linux_statfs 0x0089
|
||||
#define __NR_linux_fstatfs 0x008a
|
||||
#define __NR_linux_getpriority 0x008c
|
||||
#define __NR_linux_setpriority 0x008d
|
||||
#define __NR_linux_mlock 0x0095
|
||||
#define __NR_linux_munlock 0x0096
|
||||
#define __NR_linux_mlockall 0x0097
|
||||
#define __NR_linux_munlockall 0x0098
|
||||
#define __NR_linux_setrlimit 0x00a0
|
||||
#define __NR_linux_chroot 0x00a1
|
||||
#define __NR_linux_sync 0x00a2
|
||||
#define __NR_linux_acct 0x00a3
|
||||
#define __NR_linux_settimeofday 0x00a4
|
||||
#define __NR_linux_mount 0x00a5
|
||||
#define __NR_linux_reboot 0x00a9
|
||||
#define __NR_linux_quotactl 0x00b3
|
||||
#define __NR_linux_setfsuid 0x007a
|
||||
#define __NR_linux_setfsgid 0x007b
|
||||
#define __NR_linux_capget 0x007d
|
||||
#define __NR_linux_capset 0x007e
|
||||
#define __NR_linux_sigtimedwait 0x0080
|
||||
#define __NR_linux_rt_sigqueueinfo 0x0081
|
||||
#define __NR_linux_personality 0x0087
|
||||
#define __NR_linux_ustat 0x0088
|
||||
#define __NR_linux_sysfs 0x008b
|
||||
#define __NR_linux_sched_setparam 0x008e
|
||||
#define __NR_linux_sched_getparam 0x008f
|
||||
#define __NR_linux_sched_setscheduler 0x0090
|
||||
#define __NR_linux_sched_getscheduler 0x0091
|
||||
#define __NR_linux_sched_get_priority_max 0x0092
|
||||
#define __NR_linux_sched_get_priority_min 0x0093
|
||||
#define __NR_linux_sched_rr_get_interval 0x0094
|
||||
#define __NR_linux_vhangup 0x0099
|
||||
#define __NR_linux_modify_ldt 0x009a
|
||||
#define __NR_linux_pivot_root 0x009b
|
||||
#define __NR_linux__sysctl 0x009c
|
||||
#define __NR_linux_prctl 0x009d
|
||||
#define __NR_linux_arch_prctl 0x009e
|
||||
#define __NR_linux_adjtimex 0x009f
|
||||
#define __NR_linux_umount2 0x00a6
|
||||
#define __NR_linux_swapon 0x00a7
|
||||
#define __NR_linux_swapoff 0x00a8
|
||||
#define __NR_linux_sethostname 0x00aa
|
||||
#define __NR_linux_setdomainname 0x00ab
|
||||
#define __NR_linux_iopl 0x00ac
|
||||
#define __NR_linux_ioperm 0x00ad
|
||||
#define __NR_linux_init_module 0x00af
|
||||
#define __NR_linux_delete_module 0x00b0
|
||||
#define __NR_linux_gettid 0x00ba
|
||||
#define __NR_linux_readahead 0x00bb
|
||||
#define __NR_linux_setxattr 0x00bc
|
||||
#define __NR_linux_fsetxattr 0x00be
|
||||
#define __NR_linux_getxattr 0x00bf
|
||||
#define __NR_linux_fgetxattr 0x00c1
|
||||
#define __NR_linux_listxattr 0x00c2
|
||||
#define __NR_linux_flistxattr 0x00c4
|
||||
#define __NR_linux_removexattr 0x00c5
|
||||
#define __NR_linux_fremovexattr 0x00c7
|
||||
#define __NR_linux_lsetxattr 0x00bd
|
||||
#define __NR_linux_lgetxattr 0x00c0
|
||||
#define __NR_linux_llistxattr 0x00c3
|
||||
#define __NR_linux_lremovexattr 0x00c6
|
||||
#define __NR_linux_sched_setaffinity 0x00cb
|
||||
#define __NR_linux_sched_getaffinity 0x00cc
|
||||
#define __NR_linux_io_setup 0x00ce
|
||||
#define __NR_linux_io_destroy 0x00cf
|
||||
#define __NR_linux_io_getevents 0x00d0
|
||||
#define __NR_linux_io_submit 0x00d1
|
||||
#define __NR_linux_io_cancel 0x00d2
|
||||
#define __NR_linux_lookup_dcookie 0x00d4
|
||||
#define __NR_linux_epoll_create 0x00d5
|
||||
#define __NR_linux_epoll_wait 0x00e8
|
||||
#define __NR_linux_epoll_ctl 0x00e9
|
||||
#define __NR_linux_getdents 0x00d9
|
||||
#define __NR_linux_set_tid_address 0x00da
|
||||
#define __NR_linux_restart_syscall 0x00db
|
||||
#define __NR_linux_semtimedop 0x00dc
|
||||
#define __NR_linux_fadvise 0x00dd
|
||||
#define __NR_linux_timer_create 0x00de
|
||||
#define __NR_linux_timer_settime 0x00df
|
||||
#define __NR_linux_timer_gettime 0x00e0
|
||||
#define __NR_linux_timer_getoverrun 0x00e1
|
||||
#define __NR_linux_timer_delete 0x00e2
|
||||
#define __NR_linux_clock_settime 0x00e3
|
||||
#define __NR_linux_clock_gettime 0x00e4
|
||||
#define __NR_linux_clock_getres 0x00e5
|
||||
#define __NR_linux_clock_nanosleep 0x00e6
|
||||
#define __NR_linux_tgkill 0x00ea
|
||||
#define __NR_linux_mbind 0x00ed
|
||||
#define __NR_linux_set_mempolicy 0x00ee
|
||||
#define __NR_linux_get_mempolicy 0x00ef
|
||||
#define __NR_linux_mq_open 0x00f0
|
||||
#define __NR_linux_mq_unlink 0x00f1
|
||||
#define __NR_linux_mq_timedsend 0x00f2
|
||||
#define __NR_linux_mq_timedreceive 0x00f3
|
||||
#define __NR_linux_mq_notify 0x00f4
|
||||
#define __NR_linux_mq_getsetattr 0x00f5
|
||||
#define __NR_linux_kexec_load 0x00f6
|
||||
#define __NR_linux_waitid 0x00f7
|
||||
#define __NR_linux_add_key 0x00f8
|
||||
#define __NR_linux_request_key 0x00f9
|
||||
#define __NR_linux_keyctl 0x00fa
|
||||
#define __NR_linux_ioprio_set 0x00fb
|
||||
#define __NR_linux_ioprio_get 0x00fc
|
||||
#define __NR_linux_inotify_init 0x00fd
|
||||
#define __NR_linux_inotify_add_watch 0x00fe
|
||||
#define __NR_linux_inotify_rm_watch 0x00ff
|
||||
#define __NR_linux_openat 0x0101
|
||||
#define __NR_linux_mkdirat 0x0102
|
||||
#define __NR_linux_fchownat 0x0104
|
||||
#define __NR_linux_utime 0x0084
|
||||
#define __NR_linux_utimes 0x00eb
|
||||
#define __NR_linux_futimesat 0x0105
|
||||
#define __NR_linux_fstatat 0x0106
|
||||
#define __NR_linux_unlinkat 0x0107
|
||||
#define __NR_linux_renameat 0x0108
|
||||
#define __NR_linux_linkat 0x0109
|
||||
#define __NR_linux_symlinkat 0x010a
|
||||
#define __NR_linux_readlinkat 0x010b
|
||||
#define __NR_linux_fchmodat 0x010c
|
||||
#define __NR_linux_faccessat 0x010d
|
||||
#define __NR_linux_unshare 0x0110
|
||||
#define __NR_linux_splice 0x0113
|
||||
#define __NR_linux_tee 0x0114
|
||||
#define __NR_linux_sync_file_range 0x0115
|
||||
#define __NR_linux_vmsplice 0x0116
|
||||
#define __NR_linux_migrate_pages 0x0100
|
||||
#define __NR_linux_move_pages 0x0117
|
||||
#define __NR_linux_preadv 0x0127
|
||||
#define __NR_linux_pwritev 0x0128
|
||||
#define __NR_linux_utimensat 0x0118
|
||||
#define __NR_linux_fallocate 0x011d
|
||||
#define __NR_linux_accept4 0x0120
|
||||
#define __NR_linux_dup3 0x0124
|
||||
#define __NR_linux_pipe2 0x0125
|
||||
#define __NR_linux_epoll_pwait 0x0119
|
||||
#define __NR_linux_epoll_create1 0x0123
|
||||
#define __NR_linux_perf_event_open 0x012a
|
||||
#define __NR_linux_inotify_init1 0x0126
|
||||
#define __NR_linux_rt_tgsigqueueinfo 0x0129
|
||||
#define __NR_linux_signalfd 0x011a
|
||||
#define __NR_linux_signalfd4 0x0121
|
||||
#define __NR_linux_eventfd 0x011c
|
||||
#define __NR_linux_eventfd2 0x0122
|
||||
#define __NR_linux_timerfd_create 0x011b
|
||||
#define __NR_linux_timerfd_settime 0x011e
|
||||
#define __NR_linux_timerfd_gettime 0x011f
|
||||
#define __NR_linux_recvmmsg 0x012b
|
||||
#define __NR_linux_fanotify_init 0x012c
|
||||
#define __NR_linux_fanotify_mark 0x012d
|
||||
#define __NR_linux_prlimit 0x012e
|
||||
#define __NR_linux_name_to_handle_at 0x012f
|
||||
#define __NR_linux_open_by_handle_at 0x0130
|
||||
#define __NR_linux_clock_adjtime 0x0131
|
||||
#define __NR_linux_syncfs 0x0132
|
||||
#define __NR_linux_sendmmsg 0x0133
|
||||
#define __NR_linux_setns 0x0134
|
||||
#define __NR_linux_getcpu 0x0135
|
||||
#define __NR_linux_process_vm_readv 0x0136
|
||||
#define __NR_linux_process_vm_writev 0x0137
|
||||
#define __NR_linux_kcmp 0x0138
|
||||
#define __NR_linux_finit_module 0x0139
|
||||
#define __NR_linux_sched_setattr 0x013a
|
||||
#define __NR_linux_sched_getattr 0x013b
|
||||
#define __NR_linux_renameat2 0x013c
|
||||
#define __NR_linux_seccomp 0x013d
|
||||
#define __NR_linux_getrandom 0x013e
|
||||
#define __NR_linux_memfd_create 0x013f
|
||||
#define __NR_linux_kexec_file_load 0x0140
|
||||
#define __NR_linux_bpf 0x0141
|
||||
#define __NR_linux_execveat 0x0142
|
||||
#define __NR_linux_userfaultfd 0x0143
|
||||
#define __NR_linux_membarrier 0x0144
|
||||
#define __NR_linux_mlock2 0x0145
|
||||
#define __NR_linux_copy_file_range 0x0146
|
||||
#define __NR_linux_preadv2 0x0147
|
||||
#define __NR_linux_pwritev2 0x0148
|
||||
#define __NR_linux_pkey_mprotect 0x0149
|
||||
#define __NR_linux_pkey_alloc 0x014a
|
||||
#define __NR_linux_pkey_free 0x014b
|
||||
#define __NR_linux_statx 0x014c
|
||||
#define __NR_linux_io_pgetevents 0x014d
|
||||
#define __NR_linux_rseq 0x014e
|
||||
#define __NR_linux_pidfd_send_signal 0x01a8
|
||||
#define __NR_linux_io_uring_setup 0x01a9
|
||||
#define __NR_linux_io_uring_enter 0x01aa
|
||||
#define __NR_linux_io_uring_register 0x01ab
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue