mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
c776a32f75
This change might cause ABI breakages for /opt/cosmos. It's needed to help us better conform to header declaration practices.
661 lines
32 KiB
C
661 lines
32 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
|
#ifdef _COSMO_SOURCE
|
|
|
|
#ifdef __x86_64__
|
|
|
|
#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_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_oldgetdents 0x004e
|
|
#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_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
|
|
#define __NR_linux_open_tree 0x01ac
|
|
#define __NR_linux_move_mount 0x01ad
|
|
#define __NR_linux_fsopen 0x01ae
|
|
#define __NR_linux_fsconfig 0x01af
|
|
#define __NR_linux_fsmount 0x01b0
|
|
#define __NR_linux_fspick 0x01b1
|
|
#define __NR_linux_pidfd_open 0x01b2
|
|
#define __NR_linux_clone3 0x01b3
|
|
#define __NR_linux_close_range 0x01b4
|
|
#define __NR_linux_openat2 0x01b5
|
|
#define __NR_linux_pidfd_getfd 0x01b6
|
|
#define __NR_linux_faccessat2 0x01b7
|
|
#define __NR_linux_process_madvise 0x01b8
|
|
#define __NR_linux_epoll_pwait2 0x01b9
|
|
#define __NR_linux_mount_setattr 0x01ba
|
|
#define __NR_linux_quotactl_fd 0x01bb
|
|
#define __NR_linux_landlock_create_ruleset 0x01bc
|
|
#define __NR_linux_landlock_add_rule 0x01bd
|
|
#define __NR_linux_landlock_restrict_self 0x01be
|
|
#define __NR_linux_memfd_secret 0x01bf
|
|
#define __NR_linux_process_mrelease 0x01c0
|
|
#define __NR_linux_futex_waitv 0x01c1
|
|
#define __NR_linux_set_mempolicy_home_node 0x01c2
|
|
|
|
#elif defined(__aarch64__)
|
|
|
|
#define __NR_linux_exit 0x005d
|
|
#define __NR_linux_exit_group 0x005e
|
|
#define __NR_linux_read 0x003f
|
|
#define __NR_linux_write 0x0040
|
|
#define __NR_linux_open 0x00b4
|
|
#define __NR_linux_close 0x0039
|
|
#define __NR_linux_stat 0x004f
|
|
#define __NR_linux_fstat 0x0050
|
|
#define __NR_linux_ppoll 0x0049
|
|
#define __NR_linux_brk 0x00d6
|
|
#define __NR_linux_sigreturn 0x008b
|
|
#define __NR_linux_lseek 0x003e
|
|
#define __NR_linux_mmap 0x00de
|
|
#define __NR_linux_msync 0x00e3
|
|
#define __NR_linux_mprotect 0x00e2
|
|
#define __NR_linux_munmap 0x00d7
|
|
#define __NR_linux_sigaction 0x0086
|
|
#define __NR_linux_sigprocmask 0x0087
|
|
#define __NR_linux_ioctl 0x001d
|
|
#define __NR_linux_pread 0x0043
|
|
#define __NR_linux_pwrite 0x0044
|
|
#define __NR_linux_readv 0x0041
|
|
#define __NR_linux_writev 0x0042
|
|
#define __NR_linux_pselect6 0x0048
|
|
#define __NR_linux_sched_yield 0x007c
|
|
#define __NR_linux_mremap 0x00d8
|
|
#define __NR_linux_mincore 0x00e8
|
|
#define __NR_linux_madvise 0x00e9
|
|
#define __NR_linux_shmget 0x00c2
|
|
#define __NR_linux_shmat 0x00c4
|
|
#define __NR_linux_shmctl 0x00c3
|
|
#define __NR_linux_dup 0x0017
|
|
#define __NR_linux_nanosleep 0x0065
|
|
#define __NR_linux_getitimer 0x0066
|
|
#define __NR_linux_setitimer 0x0067
|
|
#define __NR_linux_getpid 0x00ac
|
|
#define __NR_linux_sendfile 0x0047
|
|
#define __NR_linux_socket 0x00c6
|
|
#define __NR_linux_connect 0x00cb
|
|
#define __NR_linux_accept 0x00ca
|
|
#define __NR_linux_sendto 0x00ce
|
|
#define __NR_linux_recvfrom 0x00cf
|
|
#define __NR_linux_sendmsg 0x00d3
|
|
#define __NR_linux_recvmsg 0x00d4
|
|
#define __NR_linux_shutdown 0x00d2
|
|
#define __NR_linux_bind 0x00c8
|
|
#define __NR_linux_listen 0x00c9
|
|
#define __NR_linux_getsockname 0x00cc
|
|
#define __NR_linux_getpeername 0x00cd
|
|
#define __NR_linux_socketpair 0x00c7
|
|
#define __NR_linux_setsockopt 0x00d0
|
|
#define __NR_linux_getsockopt 0x00d1
|
|
#define __NR_linux_execve 0x00dd
|
|
#define __NR_linux_wait4 0x0104
|
|
#define __NR_linux_kill 0x0081
|
|
#define __NR_linux_clone 0x00dc
|
|
#define __NR_linux_tkill 0x0082
|
|
#define __NR_linux_futex 0x0062
|
|
#define __NR_linux_set_robust_list 0x0063
|
|
#define __NR_linux_get_robust_list 0x0064
|
|
#define __NR_linux_uname 0x00a0
|
|
#define __NR_linux_semget 0x00be
|
|
#define __NR_linux_semop 0x00c1
|
|
#define __NR_linux_semctl 0x00bf
|
|
#define __NR_linux_shmdt 0x00c5
|
|
#define __NR_linux_msgget 0x00ba
|
|
#define __NR_linux_msgsnd 0x00bd
|
|
#define __NR_linux_msgrcv 0x00bc
|
|
#define __NR_linux_msgctl 0x00bb
|
|
#define __NR_linux_fcntl 0x0019
|
|
#define __NR_linux_flock 0x0020
|
|
#define __NR_linux_fsync 0x0052
|
|
#define __NR_linux_fdatasync 0x0053
|
|
#define __NR_linux_truncate 0x002d
|
|
#define __NR_linux_ftruncate 0x002e
|
|
#define __NR_linux_getcwd 0x0011
|
|
#define __NR_linux_chdir 0x0031
|
|
#define __NR_linux_fchdir 0x0032
|
|
#define __NR_linux_unlink 0x00b5
|
|
#define __NR_linux_fchmod 0x0034
|
|
#define __NR_linux_fchown 0x0037
|
|
#define __NR_linux_umask 0x00a6
|
|
#define __NR_linux_gettimeofday 0x00a9
|
|
#define __NR_linux_getrlimit 0x00a3
|
|
#define __NR_linux_getrusage 0x00a5
|
|
#define __NR_linux_sysinfo 0x00b3
|
|
#define __NR_linux_times 0x0099
|
|
#define __NR_linux_ptrace 0x0075
|
|
#define __NR_linux_syslog 0x0074
|
|
#define __NR_linux_getuid 0x00ae
|
|
#define __NR_linux_getgid 0x00b0
|
|
#define __NR_linux_getppid 0x00ad
|
|
#define __NR_linux_setsid 0x009d
|
|
#define __NR_linux_getsid 0x009c
|
|
#define __NR_linux_getpgid 0x009b
|
|
#define __NR_linux_setpgid 0x009a
|
|
#define __NR_linux_geteuid 0x00af
|
|
#define __NR_linux_getegid 0x00b1
|
|
#define __NR_linux_getgroups 0x009e
|
|
#define __NR_linux_setgroups 0x009f
|
|
#define __NR_linux_setreuid 0x0091
|
|
#define __NR_linux_setregid 0x008f
|
|
#define __NR_linux_setuid 0x0092
|
|
#define __NR_linux_setgid 0x0090
|
|
#define __NR_linux_setresuid 0x0093
|
|
#define __NR_linux_setresgid 0x0095
|
|
#define __NR_linux_getresuid 0x0094
|
|
#define __NR_linux_getresgid 0x0096
|
|
#define __NR_linux_sigpending 0x0088
|
|
#define __NR_linux_sigsuspend 0x0085
|
|
#define __NR_linux_sigaltstack 0x0084
|
|
#define __NR_linux_mknodat 0x0021
|
|
#define __NR_linux_statfs 0x002b
|
|
#define __NR_linux_fstatfs 0x002c
|
|
#define __NR_linux_getpriority 0x008d
|
|
#define __NR_linux_setpriority 0x008c
|
|
#define __NR_linux_mlock 0x00e4
|
|
#define __NR_linux_munlock 0x00e5
|
|
#define __NR_linux_mlockall 0x00e6
|
|
#define __NR_linux_munlockall 0x00e7
|
|
#define __NR_linux_setrlimit 0x00a4
|
|
#define __NR_linux_chroot 0x0033
|
|
#define __NR_linux_sync 0x0051
|
|
#define __NR_linux_acct 0x0059
|
|
#define __NR_linux_settimeofday 0x00aa
|
|
#define __NR_linux_mount 0x0028
|
|
#define __NR_linux_reboot 0x008e
|
|
#define __NR_linux_quotactl 0x003c
|
|
#define __NR_linux_setfsuid 0x0097
|
|
#define __NR_linux_setfsgid 0x0098
|
|
#define __NR_linux_capget 0x005a
|
|
#define __NR_linux_capset 0x005b
|
|
#define __NR_linux_sigtimedwait 0x0089
|
|
#define __NR_linux_sigqueueinfo 0x008a
|
|
#define __NR_linux_personality 0x005c
|
|
#define __NR_linux_sched_setparam 0x0076
|
|
#define __NR_linux_sched_getparam 0x0079
|
|
#define __NR_linux_sched_setscheduler 0x0077
|
|
#define __NR_linux_sched_getscheduler 0x0078
|
|
#define __NR_linux_sched_get_priority_max 0x007d
|
|
#define __NR_linux_sched_get_priority_min 0x007e
|
|
#define __NR_linux_sched_rr_get_interval 0x007f
|
|
#define __NR_linux_vhangup 0x003a
|
|
#define __NR_linux_pivot_root 0x0029
|
|
#define __NR_linux_prctl 0x00a7
|
|
#define __NR_linux_adjtimex 0x00ab
|
|
#define __NR_linux_umount2 0x0027
|
|
#define __NR_linux_swapon 0x00e0
|
|
#define __NR_linux_swapoff 0x00e1
|
|
#define __NR_linux_sethostname 0x00a1
|
|
#define __NR_linux_setdomainname 0x00a2
|
|
#define __NR_linux_init_module 0x0069
|
|
#define __NR_linux_delete_module 0x006a
|
|
#define __NR_linux_gettid 0x00b2
|
|
#define __NR_linux_readahead 0x00d5
|
|
#define __NR_linux_setxattr 0x0005
|
|
#define __NR_linux_fsetxattr 0x0007
|
|
#define __NR_linux_getxattr 0x0008
|
|
#define __NR_linux_fgetxattr 0x000a
|
|
#define __NR_linux_listxattr 0x000b
|
|
#define __NR_linux_flistxattr 0x000d
|
|
#define __NR_linux_removexattr 0x000e
|
|
#define __NR_linux_fremovexattr 0x0010
|
|
#define __NR_linux_lsetxattr 0x0006
|
|
#define __NR_linux_lgetxattr 0x0009
|
|
#define __NR_linux_llistxattr 0x000c
|
|
#define __NR_linux_lremovexattr 0x000f
|
|
#define __NR_linux_sched_setaffinity 0x007a
|
|
#define __NR_linux_sched_getaffinity 0x007b
|
|
#define __NR_linux_io_setup 0x0000
|
|
#define __NR_linux_io_destroy 0x0001
|
|
#define __NR_linux_io_getevents 0x0004
|
|
#define __NR_linux_io_submit 0x0002
|
|
#define __NR_linux_io_cancel 0x0003
|
|
#define __NR_linux_lookup_dcookie 0x0012
|
|
#define __NR_linux_epoll_ctl 0x0015
|
|
#define __NR_linux_getdents 0x003d
|
|
#define __NR_linux_set_tid_address 0x0060
|
|
#define __NR_linux_restart_syscall 0x0080
|
|
#define __NR_linux_semtimedop 0x00c0
|
|
#define __NR_linux_fadvise 0x00df
|
|
#define __NR_linux_timer_create 0x006b
|
|
#define __NR_linux_timer_settime 0x006e
|
|
#define __NR_linux_timer_gettime 0x006c
|
|
#define __NR_linux_timer_getoverrun 0x006d
|
|
#define __NR_linux_timer_delete 0x006f
|
|
#define __NR_linux_clock_settime 0x0070
|
|
#define __NR_linux_clock_gettime 0x0071
|
|
#define __NR_linux_clock_getres 0x0072
|
|
#define __NR_linux_clock_nanosleep 0x0073
|
|
#define __NR_linux_tgkill 0x0083
|
|
#define __NR_linux_mbind 0x00eb
|
|
#define __NR_linux_set_mempolicy 0x00ed
|
|
#define __NR_linux_get_mempolicy 0x00ec
|
|
#define __NR_linux_mq_open 0x00b4
|
|
#define __NR_linux_mq_unlink 0x00b5
|
|
#define __NR_linux_mq_timedsend 0x00b6
|
|
#define __NR_linux_mq_timedreceive 0x00b7
|
|
#define __NR_linux_mq_notify 0x00b8
|
|
#define __NR_linux_mq_getsetattr 0x00b9
|
|
#define __NR_linux_kexec_load 0x0068
|
|
#define __NR_linux_waitid 0x005f
|
|
#define __NR_linux_add_key 0x00d9
|
|
#define __NR_linux_request_key 0x00da
|
|
#define __NR_linux_keyctl 0x00db
|
|
#define __NR_linux_ioprio_set 0x001e
|
|
#define __NR_linux_ioprio_get 0x001f
|
|
#define __NR_linux_openat 0x0038
|
|
#define __NR_linux_mkdirat 0x0022
|
|
#define __NR_linux_fchownat 0x0036
|
|
#define __NR_linux_utime 0x0062
|
|
#define __NR_linux_utimes 0x0058
|
|
#define __NR_linux_fstatat 0x004f
|
|
#define __NR_linux_unlinkat 0x0023
|
|
#define __NR_linux_renameat 0x0026
|
|
#define __NR_linux_linkat 0x0025
|
|
#define __NR_linux_symlinkat 0x0024
|
|
#define __NR_linux_readlinkat 0x004e
|
|
#define __NR_linux_fchmodat 0x0035
|
|
#define __NR_linux_faccessat 0x0030
|
|
#define __NR_linux_unshare 0x0061
|
|
#define __NR_linux_splice 0x004c
|
|
#define __NR_linux_tee 0x004d
|
|
#define __NR_linux_sync_file_range 0x0054
|
|
#define __NR_linux_vmsplice 0x004b
|
|
#define __NR_linux_migrate_pages 0x00ee
|
|
#define __NR_linux_move_pages 0x00ef
|
|
#define __NR_linux_preadv 0x0045
|
|
#define __NR_linux_pwritev 0x0046
|
|
#define __NR_linux_utimensat 0x0058
|
|
#define __NR_linux_fallocate 0x002f
|
|
#define __NR_linux_accept4 0x00f2
|
|
#define __NR_linux_dup3 0x0018
|
|
#define __NR_linux_pipe2 0x003b
|
|
#define __NR_linux_epoll_pwait 0x0016
|
|
#define __NR_linux_epoll_create1 0x0014
|
|
#define __NR_linux_perf_event_open 0x00f1
|
|
#define __NR_linux_inotify_init1 0x001a
|
|
#define __NR_linux_tgsigqueueinfo 0x00f0
|
|
#define __NR_linux_signalfd4 0x004a
|
|
#define __NR_linux_eventfd2 0x0013
|
|
#define __NR_linux_timerfd_create 0x0055
|
|
#define __NR_linux_timerfd_settime 0x0056
|
|
#define __NR_linux_timerfd_gettime 0x0057
|
|
#define __NR_linux_recvmmsg 0x00f3
|
|
#define __NR_linux_fanotify_init 0x0106
|
|
#define __NR_linux_fanotify_mark 0x0107
|
|
#define __NR_linux_prlimit 0x0105
|
|
#define __NR_linux_name_to_handle_at 0x0108
|
|
#define __NR_linux_open_by_handle_at 0x0109
|
|
#define __NR_linux_clock_adjtime 0x010a
|
|
#define __NR_linux_syncfs 0x010b
|
|
#define __NR_linux_sendmmsg 0x010d
|
|
#define __NR_linux_setns 0x010c
|
|
#define __NR_linux_getcpu 0x00a8
|
|
#define __NR_linux_process_vm_readv 0x010e
|
|
#define __NR_linux_process_vm_writev 0x010f
|
|
#define __NR_linux_kcmp 0x0110
|
|
#define __NR_linux_finit_module 0x0111
|
|
#define __NR_linux_sched_setattr 0x0112
|
|
#define __NR_linux_sched_getattr 0x0113
|
|
#define __NR_linux_renameat2 0x0114
|
|
#define __NR_linux_seccomp 0x0115
|
|
#define __NR_linux_getrandom 0x0116
|
|
#define __NR_linux_memfd_create 0x0117
|
|
#define __NR_linux_bpf 0x0118
|
|
#define __NR_linux_execveat 0x0119
|
|
#define __NR_linux_userfaultfd 0x011a
|
|
#define __NR_linux_membarrier 0x011b
|
|
#define __NR_linux_mlock2 0x011c
|
|
#define __NR_linux_copy_file_range 0x011d
|
|
#define __NR_linux_preadv2 0x011e
|
|
#define __NR_linux_pwritev2 0x011f
|
|
#define __NR_linux_pkey_mprotect 0x0120
|
|
#define __NR_linux_pkey_alloc 0x0121
|
|
#define __NR_linux_pkey_free 0x0122
|
|
#define __NR_linux_statx 0x0123
|
|
#define __NR_linux_io_pgetevents 0x0124
|
|
#define __NR_linux_rseq 0x0125
|
|
#define __NR_linux_kexec_file_load 0x0126
|
|
#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
|
|
#define __NR_linux_open_tree 0x01ac
|
|
#define __NR_linux_move_mount 0x01ad
|
|
#define __NR_linux_fsopen 0x01ae
|
|
#define __NR_linux_fsconfig 0x01af
|
|
#define __NR_linux_fsmount 0x01b0
|
|
#define __NR_linux_fspick 0x01b1
|
|
#define __NR_linux_pidfd_open 0x01b2
|
|
#define __NR_linux_clone3 0x01b3
|
|
#define __NR_linux_close_range 0x01b4
|
|
#define __NR_linux_openat2 0x01b5
|
|
#define __NR_linux_pidfd_getfd 0x01b6
|
|
#define __NR_linux_faccessat2 0x01b7
|
|
#define __NR_linux_process_madvise 0x01b8
|
|
#define __NR_linux_epoll_pwait2 0x01b9
|
|
#define __NR_linux_mount_setattr 0x01ba
|
|
#define __NR_linux_landlock_create_ruleset 0x01bc
|
|
#define __NR_linux_landlock_add_rule 0x01bd
|
|
#define __NR_linux_landlock_restrict_self 0x01be
|
|
|
|
#endif /* __x86_64__ */
|
|
|
|
#endif /* _COSMO_SOURCE */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_ */
|