Home | History | Annotate | Line # | Download | only in amd64
linux_syscall.h revision 1.81
      1 /* $NetBSD: linux_syscall.h,v 1.81 2023/08/19 17:50:24 christos Exp $ */
      2 
      3 /*
      4  * System call numbers.
      5  *
      6  * DO NOT EDIT-- this file is automatically generated.
      7  * created from	NetBSD: syscalls.master,v 1.72 2023/08/19 17:49:49 christos Exp
      8  */
      9 
     10 #ifndef _LINUX_SYS_SYSCALL_H_
     11 #define	_LINUX_SYS_SYSCALL_H_
     12 
     13 #define	LINUX_SYS_MAXSYSARGS	8
     14 
     15 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
     16 #define	LINUX_SYS_read	0
     17 
     18 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
     19 #define	LINUX_SYS_write	1
     20 
     21 /* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */
     22 #define	LINUX_SYS_open	2
     23 
     24 /* syscall: "close" ret: "int" args: "int" */
     25 #define	LINUX_SYS_close	3
     26 
     27 /* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
     28 #define	LINUX_SYS_stat64	4
     29 
     30 /* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
     31 #define	LINUX_SYS_fstat64	5
     32 
     33 /* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
     34 #define	LINUX_SYS_lstat64	6
     35 
     36 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
     37 #define	LINUX_SYS_poll	7
     38 
     39 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
     40 #define	LINUX_SYS_lseek	8
     41 
     42 /* syscall: "mmap" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
     43 #define	LINUX_SYS_mmap	9
     44 
     45 /* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
     46 #define	LINUX_SYS_mprotect	10
     47 
     48 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
     49 #define	LINUX_SYS_munmap	11
     50 
     51 /* syscall: "brk" ret: "int" args: "char *" */
     52 #define	LINUX_SYS_brk	12
     53 
     54 /* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
     55 #define	LINUX_SYS_rt_sigaction	13
     56 
     57 /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
     58 #define	LINUX_SYS_rt_sigprocmask	14
     59 
     60 /* syscall: "rt_sigreturn" ret: "int" args: */
     61 #define	LINUX_SYS_rt_sigreturn	15
     62 
     63 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
     64 #define	LINUX_SYS_ioctl	16
     65 
     66 /* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
     67 #define	LINUX_SYS_pread	17
     68 
     69 /* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
     70 #define	LINUX_SYS_pwrite	18
     71 
     72 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
     73 #define	LINUX_SYS_readv	19
     74 
     75 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
     76 #define	LINUX_SYS_writev	20
     77 
     78 /* syscall: "access" ret: "int" args: "const char *" "int" */
     79 #define	LINUX_SYS_access	21
     80 
     81 /* syscall: "pipe" ret: "int" args: "int *" */
     82 #define	LINUX_SYS_pipe	22
     83 
     84 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
     85 #define	LINUX_SYS_select	23
     86 
     87 /* syscall: "sched_yield" ret: "int" args: */
     88 #define	LINUX_SYS_sched_yield	24
     89 
     90 /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
     91 #define	LINUX_SYS_mremap	25
     92 
     93 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
     94 #define	LINUX_SYS___msync13	26
     95 
     96 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
     97 #define	LINUX_SYS_mincore	27
     98 
     99 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
    100 #define	LINUX_SYS_madvise	28
    101 
    102 #ifdef SYSVSHM
    103 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
    104 #define	LINUX_SYS_shmget	29
    105 
    106 /* syscall: "shmat" ret: "int" args: "int" "void *" "int" */
    107 #define	LINUX_SYS_shmat	30
    108 
    109 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
    110 #define	LINUX_SYS_shmctl	31
    111 
    112 #else
    113 #endif
    114 /* syscall: "dup" ret: "int" args: "int" */
    115 #define	LINUX_SYS_dup	32
    116 
    117 /* syscall: "dup2" ret: "int" args: "int" "int" */
    118 #define	LINUX_SYS_dup2	33
    119 
    120 /* syscall: "pause" ret: "int" args: */
    121 #define	LINUX_SYS_pause	34
    122 
    123 /* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */
    124 #define	LINUX_SYS_nanosleep	35
    125 
    126 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */
    127 #define	LINUX_SYS_getitimer	36
    128 
    129 /* syscall: "alarm" ret: "int" args: "unsigned int" */
    130 #define	LINUX_SYS_alarm	37
    131 
    132 /* syscall: "setitimer" ret: "int" args: "int" "struct itimerval50 *" "struct itimerval50 *" */
    133 #define	LINUX_SYS_setitimer	38
    134 
    135 /* syscall: "getpid" ret: "pid_t" args: */
    136 #define	LINUX_SYS_getpid	39
    137 
    138 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
    139 #define	LINUX_SYS_socket	41
    140 
    141 /* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
    142 #define	LINUX_SYS_connect	42
    143 
    144 /* syscall: "oaccept" ret: "int" args: "int" "struct osockaddr *" "int *" */
    145 #define	LINUX_SYS_oaccept	43
    146 
    147 /* syscall: "sendto" ret: "ssize_t" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */
    148 #define	LINUX_SYS_sendto	44
    149 
    150 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct osockaddr *" "unsigned int *" */
    151 #define	LINUX_SYS_recvfrom	45
    152 
    153 /* syscall: "sendmsg" ret: "int" args: "int" "const struct linux_msghdr *" "int" */
    154 #define	LINUX_SYS_sendmsg	46
    155 
    156 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */
    157 #define	LINUX_SYS_recvmsg	47
    158 
    159 /* syscall: "shutdown" ret: "int" args: "int" "int" */
    160 #define	LINUX_SYS_shutdown	48
    161 
    162 /* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
    163 #define	LINUX_SYS_bind	49
    164 
    165 /* syscall: "listen" ret: "int" args: "int" "int" */
    166 #define	LINUX_SYS_listen	50
    167 
    168 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
    169 #define	LINUX_SYS_getsockname	51
    170 
    171 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
    172 #define	LINUX_SYS_getpeername	52
    173 
    174 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
    175 #define	LINUX_SYS_socketpair	53
    176 
    177 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
    178 #define	LINUX_SYS_setsockopt	54
    179 
    180 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
    181 #define	LINUX_SYS_getsockopt	55
    182 
    183 /* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */
    184 #define	LINUX_SYS_clone	56
    185 
    186 /* syscall: "fork" ret: "int" args: */
    187 #define	LINUX_SYS_fork	57
    188 
    189 /* syscall: "__vfork14" ret: "int" args: */
    190 #define	LINUX_SYS___vfork14	58
    191 
    192 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
    193 #define	LINUX_SYS_execve	59
    194 
    195 /* syscall: "exit" ret: "int" args: "int" */
    196 #define	LINUX_SYS_exit	60
    197 
    198 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
    199 #define	LINUX_SYS_wait4	61
    200 
    201 /* syscall: "kill" ret: "int" args: "int" "int" */
    202 #define	LINUX_SYS_kill	62
    203 
    204 /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
    205 #define	LINUX_SYS_uname	63
    206 
    207 #ifdef SYSVSEM
    208 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
    209 #define	LINUX_SYS_semget	64
    210 
    211 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
    212 #define	LINUX_SYS_semop	65
    213 
    214 /* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
    215 #define	LINUX_SYS_semctl	66
    216 
    217 #else
    218 #endif
    219 #ifdef SYSVSHM
    220 /* syscall: "shmdt" ret: "int" args: "const void *" */
    221 #define	LINUX_SYS_shmdt	67
    222 
    223 #else
    224 #endif
    225 #ifdef SYSVMSG
    226 /* syscall: "msgget" ret: "int" args: "key_t" "int" */
    227 #define	LINUX_SYS_msgget	68
    228 
    229 /* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
    230 #define	LINUX_SYS_msgsnd	69
    231 
    232 /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
    233 #define	LINUX_SYS_msgrcv	70
    234 
    235 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
    236 #define	LINUX_SYS_msgctl	71
    237 
    238 #else
    239 #endif
    240 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
    241 #define	LINUX_SYS_fcntl	72
    242 
    243 /* syscall: "flock" ret: "int" args: "int" "int" */
    244 #define	LINUX_SYS_flock	73
    245 
    246 /* syscall: "fsync" ret: "int" args: "int" */
    247 #define	LINUX_SYS_fsync	74
    248 
    249 /* syscall: "fdatasync" ret: "int" args: "int" */
    250 #define	LINUX_SYS_fdatasync	75
    251 
    252 /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
    253 #define	LINUX_SYS_truncate64	76
    254 
    255 /* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */
    256 #define	LINUX_SYS_ftruncate64	77
    257 
    258 /* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
    259 #define	LINUX_SYS_getdents	78
    260 
    261 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
    262 #define	LINUX_SYS___getcwd	79
    263 
    264 /* syscall: "chdir" ret: "int" args: "const char *" */
    265 #define	LINUX_SYS_chdir	80
    266 
    267 /* syscall: "fchdir" ret: "int" args: "int" */
    268 #define	LINUX_SYS_fchdir	81
    269 
    270 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
    271 #define	LINUX_SYS___posix_rename	82
    272 
    273 /* syscall: "mkdir" ret: "int" args: "const char *" "linux_umode_t" */
    274 #define	LINUX_SYS_mkdir	83
    275 
    276 /* syscall: "rmdir" ret: "int" args: "const char *" */
    277 #define	LINUX_SYS_rmdir	84
    278 
    279 /* syscall: "creat" ret: "int" args: "const char *" "linux_umode_t" */
    280 #define	LINUX_SYS_creat	85
    281 
    282 /* syscall: "link" ret: "int" args: "const char *" "const char *" */
    283 #define	LINUX_SYS_link	86
    284 
    285 /* syscall: "unlink" ret: "int" args: "const char *" */
    286 #define	LINUX_SYS_unlink	87
    287 
    288 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
    289 #define	LINUX_SYS_symlink	88
    290 
    291 /* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */
    292 #define	LINUX_SYS_readlink	89
    293 
    294 /* syscall: "chmod" ret: "int" args: "const char *" "linux_umode_t" */
    295 #define	LINUX_SYS_chmod	90
    296 
    297 /* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */
    298 #define	LINUX_SYS_fchmod	91
    299 
    300 /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    301 #define	LINUX_SYS___posix_chown	92
    302 
    303 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
    304 #define	LINUX_SYS___posix_fchown	93
    305 
    306 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    307 #define	LINUX_SYS___posix_lchown	94
    308 
    309 /* syscall: "umask" ret: "int" args: "int" */
    310 #define	LINUX_SYS_umask	95
    311 
    312 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
    313 #define	LINUX_SYS_gettimeofday	96
    314 
    315 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
    316 #define	LINUX_SYS_getrlimit	97
    317 
    318 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
    319 #define	LINUX_SYS_getrusage	98
    320 
    321 /* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
    322 #define	LINUX_SYS_sysinfo	99
    323 
    324 /* syscall: "times" ret: "int" args: "struct times *" */
    325 #define	LINUX_SYS_times	100
    326 
    327 /* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */
    328 #define	LINUX_SYS_ptrace	101
    329 
    330 /* syscall: "getuid" ret: "uid_t" args: */
    331 #define	LINUX_SYS_getuid	102
    332 
    333 /* syscall: "getgid" ret: "gid_t" args: */
    334 #define	LINUX_SYS_getgid	104
    335 
    336 /* syscall: "setuid" ret: "int" args: "uid_t" */
    337 #define	LINUX_SYS_setuid	105
    338 
    339 /* syscall: "setgid" ret: "int" args: "gid_t" */
    340 #define	LINUX_SYS_setgid	106
    341 
    342 /* syscall: "geteuid" ret: "uid_t" args: */
    343 #define	LINUX_SYS_geteuid	107
    344 
    345 /* syscall: "getegid" ret: "gid_t" args: */
    346 #define	LINUX_SYS_getegid	108
    347 
    348 /* syscall: "setpgid" ret: "int" args: "int" "int" */
    349 #define	LINUX_SYS_setpgid	109
    350 
    351 /* syscall: "getppid" ret: "pid_t" args: */
    352 #define	LINUX_SYS_getppid	110
    353 
    354 /* syscall: "getpgrp" ret: "int" args: */
    355 #define	LINUX_SYS_getpgrp	111
    356 
    357 /* syscall: "setsid" ret: "int" args: */
    358 #define	LINUX_SYS_setsid	112
    359 
    360 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
    361 #define	LINUX_SYS_setreuid	113
    362 
    363 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
    364 #define	LINUX_SYS_setregid	114
    365 
    366 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
    367 #define	LINUX_SYS_getgroups	115
    368 
    369 /* syscall: "setgroups" ret: "int" args: "int" "gid_t *" */
    370 #define	LINUX_SYS_setgroups	116
    371 
    372 /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
    373 #define	LINUX_SYS_setresuid	117
    374 
    375 /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
    376 #define	LINUX_SYS_getresuid	118
    377 
    378 /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
    379 #define	LINUX_SYS_setresgid	119
    380 
    381 /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
    382 #define	LINUX_SYS_getresgid	120
    383 
    384 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
    385 #define	LINUX_SYS_getpgid	121
    386 
    387 /* syscall: "setfsuid" ret: "int" args: "uid_t" */
    388 #define	LINUX_SYS_setfsuid	122
    389 
    390 /* syscall: "setfsgid" ret: "int" args: "gid_t" */
    391 #define	LINUX_SYS_setfsgid	123
    392 
    393 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
    394 #define	LINUX_SYS_getsid	124
    395 
    396 /* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
    397 #define	LINUX_SYS_rt_sigpending	127
    398 
    399 /* syscall: "rt_sigtimedwait" ret: "int" args: "const linux_sigset_t *" "linux_siginfo_t *" "const struct linux_timespec *" */
    400 #define	LINUX_SYS_rt_sigtimedwait	128
    401 
    402 /* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "linux_siginfo_t *" */
    403 #define	LINUX_SYS_rt_queueinfo	129
    404 
    405 /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
    406 #define	LINUX_SYS_rt_sigsuspend	130
    407 
    408 /* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
    409 #define	LINUX_SYS_sigaltstack	131
    410 
    411 /* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
    412 #define	LINUX_SYS_utime	132
    413 
    414 /* syscall: "mknod" ret: "int" args: "const char *" "linux_umode_t" "unsigned" */
    415 #define	LINUX_SYS_mknod	133
    416 
    417 #ifdef EXEC_AOUT
    418 /* syscall: "uselib" ret: "int" args: "const char *" */
    419 #define	LINUX_SYS_uselib	134
    420 
    421 #else
    422 #endif
    423 /* syscall: "personality" ret: "int" args: "unsigned long" */
    424 #define	LINUX_SYS_personality	135
    425 
    426 /* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
    427 #define	LINUX_SYS_statfs	137
    428 
    429 /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
    430 #define	LINUX_SYS_fstatfs	138
    431 
    432 /* syscall: "getpriority" ret: "int" args: "int" "int" */
    433 #define	LINUX_SYS_getpriority	140
    434 
    435 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
    436 #define	LINUX_SYS_setpriority	141
    437 
    438 /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
    439 #define	LINUX_SYS_sched_setparam	142
    440 
    441 /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
    442 #define	LINUX_SYS_sched_getparam	143
    443 
    444 /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
    445 #define	LINUX_SYS_sched_setscheduler	144
    446 
    447 /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
    448 #define	LINUX_SYS_sched_getscheduler	145
    449 
    450 /* syscall: "sched_get_priority_max" ret: "int" args: "int" */
    451 #define	LINUX_SYS_sched_get_priority_max	146
    452 
    453 /* syscall: "sched_get_priority_min" ret: "int" args: "int" */
    454 #define	LINUX_SYS_sched_get_priority_min	147
    455 
    456 /* syscall: "mlock" ret: "int" args: "void *" "size_t" */
    457 #define	LINUX_SYS_mlock	149
    458 
    459 /* syscall: "munlock" ret: "int" args: "void *" "size_t" */
    460 #define	LINUX_SYS_munlock	150
    461 
    462 /* syscall: "mlockall" ret: "int" args: "int" */
    463 #define	LINUX_SYS_mlockall	151
    464 
    465 /* syscall: "munlockall" ret: "int" args: */
    466 #define	LINUX_SYS_munlockall	152
    467 
    468 /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */
    469 #define	LINUX_SYS_modify_ldt	154
    470 
    471 /* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
    472 #define	LINUX_SYS___sysctl	156
    473 
    474 /* syscall: "arch_prctl" ret: "int" args: "int" "unsigned long" */
    475 #define	LINUX_SYS_arch_prctl	158
    476 
    477 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */
    478 #define	LINUX_SYS_setrlimit	160
    479 
    480 /* syscall: "chroot" ret: "int" args: "char *" */
    481 #define	LINUX_SYS_chroot	161
    482 
    483 /* syscall: "sync" ret: "int" args: */
    484 #define	LINUX_SYS_sync	162
    485 
    486 /* syscall: "acct" ret: "int" args: "char *" */
    487 #define	LINUX_SYS_acct	163
    488 
    489 /* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
    490 #define	LINUX_SYS_settimeofday	164
    491 
    492 /* syscall: "swapon" ret: "int" args: "char *" */
    493 #define	LINUX_SYS_swapon	167
    494 
    495 /* syscall: "swapoff" ret: "int" args: "const char *" */
    496 #define	LINUX_SYS_swapoff	168
    497 
    498 /* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
    499 #define	LINUX_SYS_reboot	169
    500 
    501 /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
    502 #define	LINUX_SYS_sethostname	170
    503 
    504 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
    505 #define	LINUX_SYS_setdomainname	171
    506 
    507 /* syscall: "iopl" ret: "int" args: "int" */
    508 #define	LINUX_SYS_iopl	172
    509 
    510 /* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
    511 #define	LINUX_SYS_ioperm	173
    512 
    513 /* syscall: "gettid" ret: "pid_t" args: */
    514 #define	LINUX_SYS_gettid	186
    515 
    516 /* syscall: "readahead" ret: "ssize_t" args: "int" "off_t" "size_t" */
    517 #define	LINUX_SYS_readahead	187
    518 
    519 /* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
    520 #define	LINUX_SYS_setxattr	188
    521 
    522 /* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
    523 #define	LINUX_SYS_lsetxattr	189
    524 
    525 /* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
    526 #define	LINUX_SYS_fsetxattr	190
    527 
    528 /* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
    529 #define	LINUX_SYS_getxattr	191
    530 
    531 /* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
    532 #define	LINUX_SYS_lgetxattr	192
    533 
    534 /* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
    535 #define	LINUX_SYS_fgetxattr	193
    536 
    537 /* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
    538 #define	LINUX_SYS_listxattr	194
    539 
    540 /* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
    541 #define	LINUX_SYS_llistxattr	195
    542 
    543 /* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
    544 #define	LINUX_SYS_flistxattr	196
    545 
    546 /* syscall: "removexattr" ret: "int" args: "char *" "char *" */
    547 #define	LINUX_SYS_removexattr	197
    548 
    549 /* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
    550 #define	LINUX_SYS_lremovexattr	198
    551 
    552 /* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
    553 #define	LINUX_SYS_fremovexattr	199
    554 
    555 /* syscall: "tkill" ret: "int" args: "int" "int" */
    556 #define	LINUX_SYS_tkill	200
    557 
    558 /* syscall: "time" ret: "int" args: "linux_time_t *" */
    559 #define	LINUX_SYS_time	201
    560 
    561 /* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */
    562 #define	LINUX_SYS_futex	202
    563 
    564 /* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
    565 #define	LINUX_SYS_sched_setaffinity	203
    566 
    567 /* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
    568 #define	LINUX_SYS_sched_getaffinity	204
    569 
    570 /* syscall: "epoll_create" ret: "int" args: "int" */
    571 #define	LINUX_SYS_epoll_create	213
    572 
    573 /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
    574 #define	LINUX_SYS_getdents64	217
    575 
    576 /* syscall: "set_tid_address" ret: "int" args: "int *" */
    577 #define	LINUX_SYS_set_tid_address	218
    578 
    579 /* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */
    580 #define	LINUX_SYS_fadvise64	221
    581 
    582 /* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux_sigevent *" "timer_t *" */
    583 #define	LINUX_SYS_timer_create	222
    584 
    585 /* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
    586 #define	LINUX_SYS_timer_settime	223
    587 
    588 /* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux_itimerspec *" */
    589 #define	LINUX_SYS_timer_gettime	224
    590 
    591 /* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
    592 #define	LINUX_SYS_timer_getoverrun	225
    593 
    594 /* syscall: "timer_delete" ret: "int" args: "timer_t" */
    595 #define	LINUX_SYS_timer_delete	226
    596 
    597 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    598 #define	LINUX_SYS_clock_settime	227
    599 
    600 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    601 #define	LINUX_SYS_clock_gettime	228
    602 
    603 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    604 #define	LINUX_SYS_clock_getres	229
    605 
    606 /* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
    607 #define	LINUX_SYS_clock_nanosleep	230
    608 
    609 /* syscall: "exit_group" ret: "int" args: "int" */
    610 #define	LINUX_SYS_exit_group	231
    611 
    612 /* syscall: "epoll_wait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" */
    613 #define	LINUX_SYS_epoll_wait	232
    614 
    615 /* syscall: "epoll_ctl" ret: "int" args: "int" "int" "int" "struct linux_epoll_event *" */
    616 #define	LINUX_SYS_epoll_ctl	233
    617 
    618 /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */
    619 #define	LINUX_SYS_tgkill	234
    620 
    621 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */
    622 #define	LINUX_SYS_utimes	235
    623 
    624 /* syscall: "waitid" ret: "int" args: "int" "id_t" "linux_siginfo_t *" "int" "struct rusage50 *" */
    625 #define	LINUX_SYS_waitid	247
    626 
    627 /* syscall: "inotify_init" ret: "int" args: */
    628 #define	LINUX_SYS_inotify_init	253
    629 
    630 /* syscall: "inotify_add_watch" ret: "int" args: "int" "const char *" "uint32_t" */
    631 #define	LINUX_SYS_inotify_add_watch	254
    632 
    633 /* syscall: "inotify_rm_watch" ret: "int" args: "int" "int" */
    634 #define	LINUX_SYS_inotify_rm_watch	255
    635 
    636 /* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
    637 #define	LINUX_SYS_openat	257
    638 
    639 /* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
    640 #define	LINUX_SYS_mkdirat	258
    641 
    642 /* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
    643 #define	LINUX_SYS_mknodat	259
    644 
    645 /* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
    646 #define	LINUX_SYS_fchownat	260
    647 
    648 /* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat *" "int" */
    649 #define	LINUX_SYS_fstatat64	262
    650 
    651 /* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
    652 #define	LINUX_SYS_unlinkat	263
    653 
    654 /* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
    655 #define	LINUX_SYS_renameat	264
    656 
    657 /* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
    658 #define	LINUX_SYS_linkat	265
    659 
    660 /* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
    661 #define	LINUX_SYS_symlinkat	266
    662 
    663 /* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
    664 #define	LINUX_SYS_readlinkat	267
    665 
    666 /* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
    667 #define	LINUX_SYS_fchmodat	268
    668 
    669 /* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
    670 #define	LINUX_SYS_faccessat	269
    671 
    672 /* syscall: "pselect6" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct linux_timespec *" "linux_sized_sigset_t *" */
    673 #define	LINUX_SYS_pselect6	270
    674 
    675 /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "struct linux_timespec *" "linux_sigset_t *" */
    676 #define	LINUX_SYS_ppoll	271
    677 
    678 /* syscall: "__futex_set_robust_list" ret: "int" args: "void *" "size_t" */
    679 #define	LINUX_SYS___futex_set_robust_list	273
    680 
    681 /* syscall: "__futex_get_robust_list" ret: "int" args: "lwpid_t" "void **" "size_t *" */
    682 #define	LINUX_SYS___futex_get_robust_list	274
    683 
    684 /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
    685 #define	LINUX_SYS_utimensat	280
    686 
    687 /* syscall: "epoll_pwait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" "const linux_sigset_t *" */
    688 #define	LINUX_SYS_epoll_pwait	281
    689 
    690 /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */
    691 #define	LINUX_SYS_timerfd_create	283
    692 
    693 /* syscall: "eventfd" ret: "int" args: "unsigned int" */
    694 #define	LINUX_SYS_eventfd	284
    695 
    696 /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
    697 #define	LINUX_SYS_fallocate	285
    698 
    699 /* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
    700 #define	LINUX_SYS_timerfd_settime	286
    701 
    702 /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */
    703 #define	LINUX_SYS_timerfd_gettime	287
    704 
    705 /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
    706 #define	LINUX_SYS_accept4	288
    707 
    708 /* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */
    709 #define	LINUX_SYS_eventfd2	290
    710 
    711 /* syscall: "epoll_create1" ret: "int" args: "int" */
    712 #define	LINUX_SYS_epoll_create1	291
    713 
    714 /* syscall: "dup3" ret: "int" args: "int" "int" "int" */
    715 #define	LINUX_SYS_dup3	292
    716 
    717 /* syscall: "pipe2" ret: "int" args: "int *" "int" */
    718 #define	LINUX_SYS_pipe2	293
    719 
    720 /* syscall: "inotify_init1" ret: "int" args: "int" */
    721 #define	LINUX_SYS_inotify_init1	294
    722 
    723 /* syscall: "preadv" ret: "int" args: "int" "const struct iovec *" "int" "unsigned long" "unsigned long" */
    724 #define	LINUX_SYS_preadv	295
    725 
    726 /* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
    727 #define	LINUX_SYS_pwritev	296
    728 
    729 /* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
    730 #define	LINUX_SYS_recvmmsg	299
    731 
    732 /* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
    733 #define	LINUX_SYS_prlimit64	302
    734 
    735 /* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
    736 #define	LINUX_SYS_sendmmsg	307
    737 
    738 /* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
    739 #define	LINUX_SYS_getrandom	318
    740 
    741 /* syscall: "memfd_create" ret: "int" args: "const char *" "unsigned int" */
    742 #define	LINUX_SYS_memfd_create	319
    743 
    744 /* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
    745 #define	LINUX_SYS_statx	332
    746 
    747 /* syscall: "close_range" ret: "int" args: "unsigned int" "unsigned int" "unsigned int" */
    748 #define	LINUX_SYS_close_range	436
    749 
    750 /* syscall: "epoll_pwait2" ret: "int" args: "int" "struct linux_epoll_event *" "int" "const struct linux_timespec *" "const linux_sigset_t *" */
    751 #define	LINUX_SYS_epoll_pwait2	441
    752 
    753 /* syscall: "nosys" ret: "int" args: */
    754 #define	LINUX_SYS_nosys	451
    755 
    756 #define	LINUX_SYS_MAXSYSCALL	452
    757 #define	LINUX_SYS_NSYSENT	512
    758 #endif /* _LINUX_SYS_SYSCALL_H_ */
    759