Home | History | Annotate | Line # | Download | only in aarch64
linux_syscallargs.h revision 1.12
      1 /* $NetBSD: linux_syscallargs.h,v 1.12 2024/07/01 01:36:18 christos Exp $ */
      2 
      3 /*
      4  * System call argument lists.
      5  *
      6  * DO NOT EDIT-- this file is automatically generated.
      7  * created from	NetBSD: syscalls.master,v 1.13 2024/07/01 01:35:52 christos Exp
      8  */
      9 
     10 #ifndef _LINUX_SYS_SYSCALLARGS_H_
     11 #define	_LINUX_SYS_SYSCALLARGS_H_
     12 
     13 /* Forward declaration */
     14 struct lwp;
     15 
     16 #define	LINUX_SYS_MAXSYSARGS	8
     17 
     18 #undef	syscallarg
     19 #define	syscallarg(x)							\
     20 	union {								\
     21 		register_t pad;						\
     22 		struct { x datum; } le;					\
     23 		struct { /* LINTED zero array dimension */		\
     24 			int8_t pad[  /* CONSTCOND */			\
     25 				(sizeof (register_t) < sizeof (x))	\
     26 				? 0					\
     27 				: sizeof (register_t) - sizeof (x)];	\
     28 			x datum;					\
     29 		} be;							\
     30 	}
     31 
     32 #undef check_syscall_args
     33 #define check_syscall_args(call) /*LINTED*/ \
     34 	typedef char call##_check_args[sizeof (struct call##_args) \
     35 		<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
     36 
     37 struct linux_sys_setxattr_args {
     38 	syscallarg(char *) path;
     39 	syscallarg(char *) name;
     40 	syscallarg(void *) value;
     41 	syscallarg(size_t) size;
     42 	syscallarg(int) flags;
     43 };
     44 check_syscall_args(linux_sys_setxattr)
     45 
     46 struct linux_sys_lsetxattr_args {
     47 	syscallarg(char *) path;
     48 	syscallarg(char *) name;
     49 	syscallarg(void *) value;
     50 	syscallarg(size_t) size;
     51 	syscallarg(int) flags;
     52 };
     53 check_syscall_args(linux_sys_lsetxattr)
     54 
     55 struct linux_sys_fsetxattr_args {
     56 	syscallarg(int) fd;
     57 	syscallarg(char *) name;
     58 	syscallarg(void *) value;
     59 	syscallarg(size_t) size;
     60 	syscallarg(int) flags;
     61 };
     62 check_syscall_args(linux_sys_fsetxattr)
     63 
     64 struct linux_sys_getxattr_args {
     65 	syscallarg(char *) path;
     66 	syscallarg(char *) name;
     67 	syscallarg(void *) value;
     68 	syscallarg(size_t) size;
     69 };
     70 check_syscall_args(linux_sys_getxattr)
     71 
     72 struct linux_sys_lgetxattr_args {
     73 	syscallarg(char *) path;
     74 	syscallarg(char *) name;
     75 	syscallarg(void *) value;
     76 	syscallarg(size_t) size;
     77 };
     78 check_syscall_args(linux_sys_lgetxattr)
     79 
     80 struct linux_sys_fgetxattr_args {
     81 	syscallarg(int) fd;
     82 	syscallarg(char *) name;
     83 	syscallarg(void *) value;
     84 	syscallarg(size_t) size;
     85 };
     86 check_syscall_args(linux_sys_fgetxattr)
     87 
     88 struct linux_sys_listxattr_args {
     89 	syscallarg(char *) path;
     90 	syscallarg(char *) list;
     91 	syscallarg(size_t) size;
     92 };
     93 check_syscall_args(linux_sys_listxattr)
     94 
     95 struct linux_sys_llistxattr_args {
     96 	syscallarg(char *) path;
     97 	syscallarg(char *) list;
     98 	syscallarg(size_t) size;
     99 };
    100 check_syscall_args(linux_sys_llistxattr)
    101 
    102 struct linux_sys_flistxattr_args {
    103 	syscallarg(int) fd;
    104 	syscallarg(char *) list;
    105 	syscallarg(size_t) size;
    106 };
    107 check_syscall_args(linux_sys_flistxattr)
    108 
    109 struct linux_sys_removexattr_args {
    110 	syscallarg(char *) path;
    111 	syscallarg(char *) name;
    112 };
    113 check_syscall_args(linux_sys_removexattr)
    114 
    115 struct linux_sys_lremovexattr_args {
    116 	syscallarg(char *) path;
    117 	syscallarg(char *) name;
    118 };
    119 check_syscall_args(linux_sys_lremovexattr)
    120 
    121 struct linux_sys_fremovexattr_args {
    122 	syscallarg(int) fd;
    123 	syscallarg(char *) name;
    124 };
    125 check_syscall_args(linux_sys_fremovexattr)
    126 
    127 struct sys___getcwd_args;
    128 
    129 struct linux_sys_eventfd2_args {
    130 	syscallarg(unsigned int) initval;
    131 	syscallarg(int) flags;
    132 };
    133 check_syscall_args(linux_sys_eventfd2)
    134 
    135 struct linux_sys_epoll_create1_args {
    136 	syscallarg(int) flags;
    137 };
    138 check_syscall_args(linux_sys_epoll_create1)
    139 
    140 struct linux_sys_epoll_ctl_args {
    141 	syscallarg(int) epfd;
    142 	syscallarg(int) op;
    143 	syscallarg(int) fd;
    144 	syscallarg(struct linux_epoll_event *) event;
    145 };
    146 check_syscall_args(linux_sys_epoll_ctl)
    147 
    148 struct linux_sys_epoll_pwait_args {
    149 	syscallarg(int) epfd;
    150 	syscallarg(struct linux_epoll_event *) events;
    151 	syscallarg(int) maxevents;
    152 	syscallarg(int) timeout;
    153 	syscallarg(const linux_sigset_t *) sigmask;
    154 };
    155 check_syscall_args(linux_sys_epoll_pwait)
    156 
    157 struct sys_dup_args;
    158 
    159 struct linux_sys_dup3_args {
    160 	syscallarg(int) from;
    161 	syscallarg(int) to;
    162 	syscallarg(int) flags;
    163 };
    164 check_syscall_args(linux_sys_dup3)
    165 
    166 struct linux_sys_fcntl_args {
    167 	syscallarg(int) fd;
    168 	syscallarg(int) cmd;
    169 	syscallarg(void *) arg;
    170 };
    171 check_syscall_args(linux_sys_fcntl)
    172 
    173 struct linux_sys_inotify_init1_args {
    174 	syscallarg(int) flags;
    175 };
    176 check_syscall_args(linux_sys_inotify_init1)
    177 
    178 struct linux_sys_inotify_add_watch_args {
    179 	syscallarg(int) fd;
    180 	syscallarg(const char *) pathname;
    181 	syscallarg(uint32_t) mask;
    182 };
    183 check_syscall_args(linux_sys_inotify_add_watch)
    184 
    185 struct linux_sys_inotify_rm_watch_args {
    186 	syscallarg(int) fd;
    187 	syscallarg(int) wd;
    188 };
    189 check_syscall_args(linux_sys_inotify_rm_watch)
    190 
    191 struct linux_sys_ioctl_args {
    192 	syscallarg(int) fd;
    193 	syscallarg(u_long) com;
    194 	syscallarg(void *) data;
    195 };
    196 check_syscall_args(linux_sys_ioctl)
    197 
    198 struct sys_flock_args;
    199 
    200 struct linux_sys_mknodat_args {
    201 	syscallarg(int) fd;
    202 	syscallarg(const char *) path;
    203 	syscallarg(linux_umode_t) mode;
    204 	syscallarg(unsigned) dev;
    205 };
    206 check_syscall_args(linux_sys_mknodat)
    207 
    208 struct sys_mkdirat_args;
    209 
    210 struct linux_sys_unlinkat_args {
    211 	syscallarg(int) fd;
    212 	syscallarg(const char *) path;
    213 	syscallarg(int) flag;
    214 };
    215 check_syscall_args(linux_sys_unlinkat)
    216 
    217 struct sys_symlinkat_args;
    218 
    219 struct linux_sys_linkat_args {
    220 	syscallarg(int) fd1;
    221 	syscallarg(const char *) name1;
    222 	syscallarg(int) fd2;
    223 	syscallarg(const char *) name2;
    224 	syscallarg(int) flags;
    225 };
    226 check_syscall_args(linux_sys_linkat)
    227 
    228 struct sys_renameat_args;
    229 
    230 struct linux_sys_statfs_args {
    231 	syscallarg(const char *) path;
    232 	syscallarg(struct linux_statfs *) sp;
    233 };
    234 check_syscall_args(linux_sys_statfs)
    235 
    236 struct linux_sys_fstatfs_args {
    237 	syscallarg(int) fd;
    238 	syscallarg(struct linux_statfs *) sp;
    239 };
    240 check_syscall_args(linux_sys_fstatfs)
    241 
    242 struct linux_sys_truncate64_args {
    243 	syscallarg(const char *) path;
    244 	syscallarg(off_t) length;
    245 };
    246 check_syscall_args(linux_sys_truncate64)
    247 
    248 struct linux_sys_ftruncate64_args {
    249 	syscallarg(unsigned int) fd;
    250 	syscallarg(off_t) length;
    251 };
    252 check_syscall_args(linux_sys_ftruncate64)
    253 
    254 struct linux_sys_fallocate_args {
    255 	syscallarg(int) fd;
    256 	syscallarg(int) mode;
    257 	syscallarg(off_t) offset;
    258 	syscallarg(off_t) len;
    259 };
    260 check_syscall_args(linux_sys_fallocate)
    261 
    262 struct linux_sys_faccessat_args {
    263 	syscallarg(int) fd;
    264 	syscallarg(const char *) path;
    265 	syscallarg(int) amode;
    266 };
    267 check_syscall_args(linux_sys_faccessat)
    268 
    269 struct sys_chdir_args;
    270 
    271 struct sys_fchdir_args;
    272 
    273 struct sys_chroot_args;
    274 
    275 struct sys_fchmod_args;
    276 
    277 struct linux_sys_fchmodat_args {
    278 	syscallarg(int) fd;
    279 	syscallarg(const char *) path;
    280 	syscallarg(linux_umode_t) mode;
    281 };
    282 check_syscall_args(linux_sys_fchmodat)
    283 
    284 struct linux_sys_fchownat_args {
    285 	syscallarg(int) fd;
    286 	syscallarg(const char *) path;
    287 	syscallarg(uid_t) owner;
    288 	syscallarg(gid_t) group;
    289 	syscallarg(int) flag;
    290 };
    291 check_syscall_args(linux_sys_fchownat)
    292 
    293 struct sys___posix_fchown_args;
    294 
    295 struct linux_sys_openat_args {
    296 	syscallarg(int) fd;
    297 	syscallarg(const char *) path;
    298 	syscallarg(int) flags;
    299 	syscallarg(linux_umode_t) mode;
    300 };
    301 check_syscall_args(linux_sys_openat)
    302 
    303 struct sys_close_args;
    304 
    305 struct linux_sys_pipe2_args {
    306 	syscallarg(int *) pfds;
    307 	syscallarg(int) flags;
    308 };
    309 check_syscall_args(linux_sys_pipe2)
    310 
    311 struct linux_sys_getdents64_args {
    312 	syscallarg(int) fd;
    313 	syscallarg(struct linux_dirent64 *) dent;
    314 	syscallarg(unsigned int) count;
    315 };
    316 check_syscall_args(linux_sys_getdents64)
    317 
    318 struct compat_43_sys_lseek_args;
    319 
    320 struct sys_read_args;
    321 
    322 struct sys_write_args;
    323 
    324 struct sys_readv_args;
    325 
    326 struct sys_writev_args;
    327 
    328 struct linux_sys_pread_args {
    329 	syscallarg(int) fd;
    330 	syscallarg(char *) buf;
    331 	syscallarg(size_t) nbyte;
    332 	syscallarg(off_t) offset;
    333 };
    334 check_syscall_args(linux_sys_pread)
    335 
    336 struct linux_sys_pwrite_args {
    337 	syscallarg(int) fd;
    338 	syscallarg(char *) buf;
    339 	syscallarg(size_t) nbyte;
    340 	syscallarg(off_t) offset;
    341 };
    342 check_syscall_args(linux_sys_pwrite)
    343 
    344 struct linux_sys_preadv_args {
    345 	syscallarg(int) fd;
    346 	syscallarg(const struct iovec *) iovp;
    347 	syscallarg(int) iovcnt;
    348 	syscallarg(unsigned long) off_lo;
    349 	syscallarg(unsigned long) off_hi;
    350 };
    351 check_syscall_args(linux_sys_preadv)
    352 
    353 struct linux_sys_pwritev_args {
    354 	syscallarg(int) fd;
    355 	syscallarg(const struct iovcnt *) iovp;
    356 	syscallarg(int) iovcnt;
    357 	syscallarg(unsigned long) off_lo;
    358 	syscallarg(unsigned long) off_hi;
    359 };
    360 check_syscall_args(linux_sys_pwritev)
    361 
    362 struct linux_sys_pselect6_args {
    363 	syscallarg(int) nfds;
    364 	syscallarg(fd_set *) readfds;
    365 	syscallarg(fd_set *) writefds;
    366 	syscallarg(fd_set *) exceptfds;
    367 	syscallarg(struct linux_timespec *) timeout;
    368 	syscallarg(linux_sized_sigset_t *) ss;
    369 };
    370 check_syscall_args(linux_sys_pselect6)
    371 
    372 struct linux_sys_ppoll_args {
    373 	syscallarg(struct pollfd *) fds;
    374 	syscallarg(u_int) nfds;
    375 	syscallarg(struct linux_timespec *) timeout;
    376 	syscallarg(linux_sigset_t *) sigset;
    377 };
    378 check_syscall_args(linux_sys_ppoll)
    379 
    380 struct sys_readlinkat_args;
    381 
    382 struct linux_sys_fstatat64_args {
    383 	syscallarg(int) fd;
    384 	syscallarg(const char *) path;
    385 	syscallarg(struct linux_stat *) sp;
    386 	syscallarg(int) flag;
    387 };
    388 check_syscall_args(linux_sys_fstatat64)
    389 
    390 struct linux_sys_fstat64_args {
    391 	syscallarg(int) fd;
    392 	syscallarg(struct linux_stat *) sp;
    393 };
    394 check_syscall_args(linux_sys_fstat64)
    395 
    396 struct sys_fsync_args;
    397 
    398 struct linux_sys_fdatasync_args {
    399 	syscallarg(int) fd;
    400 };
    401 check_syscall_args(linux_sys_fdatasync)
    402 
    403 struct linux_sys_timerfd_create_args {
    404 	syscallarg(clockid_t) clock_id;
    405 	syscallarg(int) flags;
    406 };
    407 check_syscall_args(linux_sys_timerfd_create)
    408 
    409 struct linux_sys_timerfd_settime_args {
    410 	syscallarg(int) fd;
    411 	syscallarg(int) flags;
    412 	syscallarg(const struct linux_itimerspec *) tim;
    413 	syscallarg(struct linux_itimerspec *) otim;
    414 };
    415 check_syscall_args(linux_sys_timerfd_settime)
    416 
    417 struct linux_sys_timerfd_gettime_args {
    418 	syscallarg(int) fd;
    419 	syscallarg(struct linux_itimerspec *) tim;
    420 };
    421 check_syscall_args(linux_sys_timerfd_gettime)
    422 
    423 struct linux_sys_utimensat_args {
    424 	syscallarg(int) fd;
    425 	syscallarg(const char *) path;
    426 	syscallarg(struct linux_timespec *) times;
    427 	syscallarg(int) flag;
    428 };
    429 check_syscall_args(linux_sys_utimensat)
    430 
    431 struct sys_acct_args;
    432 
    433 struct linux_sys_personality_args {
    434 	syscallarg(unsigned long) per;
    435 };
    436 check_syscall_args(linux_sys_personality)
    437 
    438 struct linux_sys_exit_args {
    439 	syscallarg(int) rval;
    440 };
    441 check_syscall_args(linux_sys_exit)
    442 
    443 struct linux_sys_exit_group_args {
    444 	syscallarg(int) error_code;
    445 };
    446 check_syscall_args(linux_sys_exit_group)
    447 
    448 struct linux_sys_waitid_args {
    449 	syscallarg(int) idtype;
    450 	syscallarg(id_t) id;
    451 	syscallarg(linux_siginfo_t *) infop;
    452 	syscallarg(int) options;
    453 	syscallarg(struct rusage50 *) rusage;
    454 };
    455 check_syscall_args(linux_sys_waitid)
    456 
    457 struct linux_sys_set_tid_address_args {
    458 	syscallarg(int *) tid;
    459 };
    460 check_syscall_args(linux_sys_set_tid_address)
    461 
    462 struct linux_sys_futex_args {
    463 	syscallarg(int *) uaddr;
    464 	syscallarg(int) op;
    465 	syscallarg(int) val;
    466 	syscallarg(const struct linux_timespec *) timeout;
    467 	syscallarg(int *) uaddr2;
    468 	syscallarg(int) val3;
    469 };
    470 check_syscall_args(linux_sys_futex)
    471 
    472 struct sys___futex_set_robust_list_args;
    473 
    474 struct sys___futex_get_robust_list_args;
    475 
    476 struct linux_sys_nanosleep_args {
    477 	syscallarg(const struct linux_timespec *) rqtp;
    478 	syscallarg(struct linux_timespec *) rmtp;
    479 };
    480 check_syscall_args(linux_sys_nanosleep)
    481 
    482 struct compat_50_sys_getitimer_args;
    483 
    484 struct compat_50_sys_setitimer_args;
    485 
    486 struct linux_sys_timer_create_args {
    487 	syscallarg(clockid_t) clockid;
    488 	syscallarg(struct linux_sigevent *) evp;
    489 	syscallarg(timer_t *) timerid;
    490 };
    491 check_syscall_args(linux_sys_timer_create)
    492 
    493 struct linux_sys_timer_gettime_args {
    494 	syscallarg(timer_t) timerid;
    495 	syscallarg(struct linux_itimerspec *) tim;
    496 };
    497 check_syscall_args(linux_sys_timer_gettime)
    498 
    499 struct sys_timer_getoverrun_args;
    500 
    501 struct linux_sys_timer_settime_args {
    502 	syscallarg(timer_t) timerid;
    503 	syscallarg(int) flags;
    504 	syscallarg(const struct linux_itimerspec *) tim;
    505 	syscallarg(struct linux_itimerspec *) otim;
    506 };
    507 check_syscall_args(linux_sys_timer_settime)
    508 
    509 struct sys_timer_delete_args;
    510 
    511 struct linux_sys_clock_settime_args {
    512 	syscallarg(clockid_t) which;
    513 	syscallarg(struct linux_timespec *) tp;
    514 };
    515 check_syscall_args(linux_sys_clock_settime)
    516 
    517 struct linux_sys_clock_gettime_args {
    518 	syscallarg(clockid_t) which;
    519 	syscallarg(struct linux_timespec *) tp;
    520 };
    521 check_syscall_args(linux_sys_clock_gettime)
    522 
    523 struct linux_sys_clock_getres_args {
    524 	syscallarg(clockid_t) which;
    525 	syscallarg(struct linux_timespec *) tp;
    526 };
    527 check_syscall_args(linux_sys_clock_getres)
    528 
    529 struct linux_sys_clock_nanosleep_args {
    530 	syscallarg(clockid_t) which;
    531 	syscallarg(int) flags;
    532 	syscallarg(struct linux_timespec *) rqtp;
    533 	syscallarg(struct linux_timespec *) rmtp;
    534 };
    535 check_syscall_args(linux_sys_clock_nanosleep)
    536 
    537 struct linux_sys_ptrace_args {
    538 	syscallarg(long) request;
    539 	syscallarg(long) pid;
    540 	syscallarg(long) addr;
    541 	syscallarg(long) data;
    542 };
    543 check_syscall_args(linux_sys_ptrace)
    544 
    545 struct linux_sys_sched_setparam_args {
    546 	syscallarg(pid_t) pid;
    547 	syscallarg(const struct linux_sched_param *) sp;
    548 };
    549 check_syscall_args(linux_sys_sched_setparam)
    550 
    551 struct linux_sys_sched_setscheduler_args {
    552 	syscallarg(pid_t) pid;
    553 	syscallarg(int) policy;
    554 	syscallarg(const struct linux_sched_param *) sp;
    555 };
    556 check_syscall_args(linux_sys_sched_setscheduler)
    557 
    558 struct linux_sys_sched_getscheduler_args {
    559 	syscallarg(pid_t) pid;
    560 };
    561 check_syscall_args(linux_sys_sched_getscheduler)
    562 
    563 struct linux_sys_sched_getparam_args {
    564 	syscallarg(pid_t) pid;
    565 	syscallarg(struct linux_sched_param *) sp;
    566 };
    567 check_syscall_args(linux_sys_sched_getparam)
    568 
    569 struct linux_sys_sched_setaffinity_args {
    570 	syscallarg(pid_t) pid;
    571 	syscallarg(unsigned int) len;
    572 	syscallarg(unsigned long *) mask;
    573 };
    574 check_syscall_args(linux_sys_sched_setaffinity)
    575 
    576 struct linux_sys_sched_getaffinity_args {
    577 	syscallarg(pid_t) pid;
    578 	syscallarg(unsigned int) len;
    579 	syscallarg(unsigned long *) mask;
    580 };
    581 check_syscall_args(linux_sys_sched_getaffinity)
    582 
    583 struct linux_sys_sched_get_priority_max_args {
    584 	syscallarg(int) policy;
    585 };
    586 check_syscall_args(linux_sys_sched_get_priority_max)
    587 
    588 struct linux_sys_sched_get_priority_min_args {
    589 	syscallarg(int) policy;
    590 };
    591 check_syscall_args(linux_sys_sched_get_priority_min)
    592 
    593 struct linux_sys_kill_args {
    594 	syscallarg(int) pid;
    595 	syscallarg(int) signum;
    596 };
    597 check_syscall_args(linux_sys_kill)
    598 
    599 struct linux_sys_tkill_args {
    600 	syscallarg(int) tid;
    601 	syscallarg(int) sig;
    602 };
    603 check_syscall_args(linux_sys_tkill)
    604 
    605 struct linux_sys_tgkill_args {
    606 	syscallarg(int) tgid;
    607 	syscallarg(int) tid;
    608 	syscallarg(int) sig;
    609 };
    610 check_syscall_args(linux_sys_tgkill)
    611 
    612 struct linux_sys_sigaltstack_args {
    613 	syscallarg(const struct linux_sigaltstack *) ss;
    614 	syscallarg(struct linux_sigaltstack *) oss;
    615 };
    616 check_syscall_args(linux_sys_sigaltstack)
    617 
    618 struct linux_sys_rt_sigsuspend_args {
    619 	syscallarg(linux_sigset_t *) unewset;
    620 	syscallarg(size_t) sigsetsize;
    621 };
    622 check_syscall_args(linux_sys_rt_sigsuspend)
    623 
    624 struct linux_sys_rt_sigaction_args {
    625 	syscallarg(int) signum;
    626 	syscallarg(const struct linux_sigaction *) nsa;
    627 	syscallarg(struct linux_sigaction *) osa;
    628 	syscallarg(size_t) sigsetsize;
    629 };
    630 check_syscall_args(linux_sys_rt_sigaction)
    631 
    632 struct linux_sys_rt_sigprocmask_args {
    633 	syscallarg(int) how;
    634 	syscallarg(const linux_sigset_t *) set;
    635 	syscallarg(linux_sigset_t *) oset;
    636 	syscallarg(size_t) sigsetsize;
    637 };
    638 check_syscall_args(linux_sys_rt_sigprocmask)
    639 
    640 struct linux_sys_rt_sigpending_args {
    641 	syscallarg(linux_sigset_t *) set;
    642 	syscallarg(size_t) sigsetsize;
    643 };
    644 check_syscall_args(linux_sys_rt_sigpending)
    645 
    646 struct linux_sys_rt_sigtimedwait_args {
    647 	syscallarg(const linux_sigset_t *) set;
    648 	syscallarg(linux_siginfo_t *) info;
    649 	syscallarg(const struct linux_timespec *) timeout;
    650 };
    651 check_syscall_args(linux_sys_rt_sigtimedwait)
    652 
    653 struct sys_setpriority_args;
    654 
    655 struct linux_sys_getpriority_args {
    656 	syscallarg(int) which;
    657 	syscallarg(int) who;
    658 };
    659 check_syscall_args(linux_sys_getpriority)
    660 
    661 struct linux_sys_reboot_args {
    662 	syscallarg(int) magic1;
    663 	syscallarg(int) magic2;
    664 	syscallarg(int) cmd;
    665 	syscallarg(void *) arg;
    666 };
    667 check_syscall_args(linux_sys_reboot)
    668 
    669 struct sys_setregid_args;
    670 
    671 struct sys_setgid_args;
    672 
    673 struct sys_setreuid_args;
    674 
    675 struct sys_setuid_args;
    676 
    677 struct linux_sys_setresuid_args {
    678 	syscallarg(uid_t) ruid;
    679 	syscallarg(uid_t) euid;
    680 	syscallarg(uid_t) suid;
    681 };
    682 check_syscall_args(linux_sys_setresuid)
    683 
    684 struct linux_sys_getresuid_args {
    685 	syscallarg(uid_t *) ruid;
    686 	syscallarg(uid_t *) euid;
    687 	syscallarg(uid_t *) suid;
    688 };
    689 check_syscall_args(linux_sys_getresuid)
    690 
    691 struct linux_sys_setresgid_args {
    692 	syscallarg(gid_t) rgid;
    693 	syscallarg(gid_t) egid;
    694 	syscallarg(gid_t) sgid;
    695 };
    696 check_syscall_args(linux_sys_setresgid)
    697 
    698 struct linux_sys_getresgid_args {
    699 	syscallarg(gid_t *) rgid;
    700 	syscallarg(gid_t *) egid;
    701 	syscallarg(gid_t *) sgid;
    702 };
    703 check_syscall_args(linux_sys_getresgid)
    704 
    705 struct linux_sys_setfsuid_args {
    706 	syscallarg(uid_t) uid;
    707 };
    708 check_syscall_args(linux_sys_setfsuid)
    709 
    710 struct linux_sys_setfsgid_args {
    711 	syscallarg(gid_t) gid;
    712 };
    713 check_syscall_args(linux_sys_setfsgid)
    714 
    715 struct linux_sys_times_args {
    716 	syscallarg(struct times *) tms;
    717 };
    718 check_syscall_args(linux_sys_times)
    719 
    720 struct sys_setpgid_args;
    721 
    722 struct sys_getpgid_args;
    723 
    724 struct sys_getsid_args;
    725 
    726 struct sys_getgroups_args;
    727 
    728 struct sys_setgroups_args;
    729 
    730 struct linux_sys_uname_args {
    731 	syscallarg(struct linux_utsname *) up;
    732 };
    733 check_syscall_args(linux_sys_uname)
    734 
    735 struct compat_43_sys_sethostname_args;
    736 
    737 struct linux_sys_setdomainname_args {
    738 	syscallarg(char *) domainname;
    739 	syscallarg(int) len;
    740 };
    741 check_syscall_args(linux_sys_setdomainname)
    742 
    743 struct linux_sys_getrlimit_args {
    744 	syscallarg(int) which;
    745 	syscallarg(struct rlimit *) rlp;
    746 };
    747 check_syscall_args(linux_sys_getrlimit)
    748 
    749 struct linux_sys_setrlimit_args {
    750 	syscallarg(u_int) which;
    751 	syscallarg(struct rlimit *) rlp;
    752 };
    753 check_syscall_args(linux_sys_setrlimit)
    754 
    755 struct compat_50_sys_getrusage_args;
    756 
    757 struct sys_umask_args;
    758 
    759 struct linux_sys_getcpu_args {
    760 	syscallarg(unsigned int *) cpu;
    761 	syscallarg(unsigned int *) node;
    762 	syscallarg(struct linux_getcpu_cache *) tcache;
    763 };
    764 check_syscall_args(linux_sys_getcpu)
    765 
    766 struct linux_sys_gettimeofday_args {
    767 	syscallarg(struct timeval50 *) tp;
    768 	syscallarg(struct timezone *) tzp;
    769 };
    770 check_syscall_args(linux_sys_gettimeofday)
    771 
    772 struct linux_sys_settimeofday_args {
    773 	syscallarg(struct timeval50 *) tp;
    774 	syscallarg(struct timezone *) tzp;
    775 };
    776 check_syscall_args(linux_sys_settimeofday)
    777 
    778 struct linux_sys_sysinfo_args {
    779 	syscallarg(struct linux_sysinfo *) arg;
    780 };
    781 check_syscall_args(linux_sys_sysinfo)
    782 
    783 struct linux_sys_mq_open_args {
    784 	syscallarg(const char *) name;
    785 	syscallarg(int) oflag;
    786 	syscallarg(linux_umode_t) mode;
    787 	syscallarg(struct linux_mq_attr *) attr;
    788 };
    789 check_syscall_args(linux_sys_mq_open)
    790 
    791 struct linux_sys_mq_unlink_args {
    792 	syscallarg(const char *) name;
    793 };
    794 check_syscall_args(linux_sys_mq_unlink)
    795 
    796 struct linux_sys_mq_timedsend_args {
    797 	syscallarg(linux_mqd_t) mqdes;
    798 	syscallarg(const char *) msg_ptr;
    799 	syscallarg(size_t) msg_len;
    800 	syscallarg(unsigned int) msg_prio;
    801 	syscallarg(const struct linux_timespec *) abs_timeout;
    802 };
    803 check_syscall_args(linux_sys_mq_timedsend)
    804 
    805 struct linux_sys_mq_timedreceive_args {
    806 	syscallarg(linux_mqd_t) mqdes;
    807 	syscallarg(char *) msg_ptr;
    808 	syscallarg(size_t) msg_len;
    809 	syscallarg(unsigned int *) msg_prio;
    810 	syscallarg(const struct linux_timespec *) abs_timeout;
    811 };
    812 check_syscall_args(linux_sys_mq_timedreceive)
    813 
    814 struct linux_sys_mq_notify_args {
    815 	syscallarg(linux_mqd_t) mqdes;
    816 	syscallarg(const struct linux_sigevent *) sevp;
    817 };
    818 check_syscall_args(linux_sys_mq_notify)
    819 
    820 struct linux_sys_mq_getsetattr_args {
    821 	syscallarg(linux_mqd_t) mqdes;
    822 	syscallarg(const struct linux_mq_attr *) newattr;
    823 	syscallarg(struct linux_mq_attr *) oldattr;
    824 };
    825 check_syscall_args(linux_sys_mq_getsetattr)
    826 #ifdef SYSVMSG
    827 
    828 struct sys_msgget_args;
    829 
    830 struct linux_sys_msgctl_args;
    831 
    832 struct sys_msgrcv_args;
    833 
    834 struct sys_msgsnd_args;
    835 #else
    836 #endif
    837 #ifdef SYSVSEM
    838 
    839 struct sys_semget_args;
    840 
    841 struct linux_sys_semctl_args {
    842 	syscallarg(int) semid;
    843 	syscallarg(int) semnum;
    844 	syscallarg(int) cmd;
    845 	syscallarg(union linux_semun) arg;
    846 };
    847 check_syscall_args(linux_sys_semctl)
    848 
    849 struct sys_semop_args;
    850 #else
    851 #endif
    852 #ifdef SYSVSEM
    853 
    854 struct linux_sys_shmget_args;
    855 
    856 struct linux_sys_shmctl_args;
    857 
    858 struct sys_shmat_args;
    859 
    860 struct sys_shmdt_args;
    861 #else
    862 #endif
    863 
    864 struct linux_sys_socket_args {
    865 	syscallarg(int) domain;
    866 	syscallarg(int) type;
    867 	syscallarg(int) protocol;
    868 };
    869 check_syscall_args(linux_sys_socket)
    870 
    871 struct linux_sys_socketpair_args {
    872 	syscallarg(int) domain;
    873 	syscallarg(int) type;
    874 	syscallarg(int) protocol;
    875 	syscallarg(int *) rsv;
    876 };
    877 check_syscall_args(linux_sys_socketpair)
    878 
    879 struct linux_sys_bind_args {
    880 	syscallarg(int) s;
    881 	syscallarg(const struct osockaddr *) name;
    882 	syscallarg(unsigned int) namelen;
    883 };
    884 check_syscall_args(linux_sys_bind)
    885 
    886 struct sys_listen_args;
    887 
    888 struct linux_sys_accept_args {
    889 	syscallarg(int) s;
    890 	syscallarg(struct osockaddr *) name;
    891 	syscallarg(int *) anamelen;
    892 };
    893 check_syscall_args(linux_sys_accept)
    894 
    895 struct linux_sys_connect_args {
    896 	syscallarg(int) s;
    897 	syscallarg(const struct osockaddr *) name;
    898 	syscallarg(unsigned int) namelen;
    899 };
    900 check_syscall_args(linux_sys_connect)
    901 
    902 struct linux_sys_getsockname_args {
    903 	syscallarg(int) fdec;
    904 	syscallarg(void *) asa;
    905 	syscallarg(int *) alen;
    906 };
    907 check_syscall_args(linux_sys_getsockname)
    908 
    909 struct linux_sys_getpeername_args {
    910 	syscallarg(int) fdes;
    911 	syscallarg(struct sockaddr *) asa;
    912 	syscallarg(unsigned int *) alen;
    913 };
    914 check_syscall_args(linux_sys_getpeername)
    915 
    916 struct linux_sys_sendto_args {
    917 	syscallarg(int) s;
    918 	syscallarg(void *) msg;
    919 	syscallarg(int) len;
    920 	syscallarg(int) flags;
    921 	syscallarg(struct osockaddr *) to;
    922 	syscallarg(int) tolen;
    923 };
    924 check_syscall_args(linux_sys_sendto)
    925 
    926 struct linux_sys_recvfrom_args {
    927 	syscallarg(int) s;
    928 	syscallarg(void *) buf;
    929 	syscallarg(size_t) len;
    930 	syscallarg(int) flags;
    931 	syscallarg(struct osockaddr *) from;
    932 	syscallarg(unsigned int *) fromlenaddr;
    933 };
    934 check_syscall_args(linux_sys_recvfrom)
    935 
    936 struct linux_sys_setsockopt_args {
    937 	syscallarg(int) s;
    938 	syscallarg(int) level;
    939 	syscallarg(int) optname;
    940 	syscallarg(void *) optval;
    941 	syscallarg(int) optlen;
    942 };
    943 check_syscall_args(linux_sys_setsockopt)
    944 
    945 struct linux_sys_getsockopt_args {
    946 	syscallarg(int) s;
    947 	syscallarg(int) level;
    948 	syscallarg(int) optname;
    949 	syscallarg(void *) optval;
    950 	syscallarg(int *) optlen;
    951 };
    952 check_syscall_args(linux_sys_getsockopt)
    953 
    954 struct sys_shutdown_args;
    955 
    956 struct linux_sys_sendmsg_args {
    957 	syscallarg(int) s;
    958 	syscallarg(const struct linux_msghdr *) msg;
    959 	syscallarg(int) flags;
    960 };
    961 check_syscall_args(linux_sys_sendmsg)
    962 
    963 struct linux_sys_recvmsg_args {
    964 	syscallarg(int) s;
    965 	syscallarg(struct linux_msghdr *) msg;
    966 	syscallarg(int) flags;
    967 };
    968 check_syscall_args(linux_sys_recvmsg)
    969 
    970 struct linux_sys_readahead_args {
    971 	syscallarg(int) fd;
    972 	syscallarg(off_t) offset;
    973 	syscallarg(size_t) count;
    974 };
    975 check_syscall_args(linux_sys_readahead)
    976 
    977 struct linux_sys_brk_args {
    978 	syscallarg(char *) nsize;
    979 };
    980 check_syscall_args(linux_sys_brk)
    981 
    982 struct sys_munmap_args;
    983 
    984 struct linux_sys_mremap_args {
    985 	syscallarg(void *) old_address;
    986 	syscallarg(size_t) old_size;
    987 	syscallarg(size_t) new_size;
    988 	syscallarg(u_long) flags;
    989 };
    990 check_syscall_args(linux_sys_mremap)
    991 
    992 struct linux_sys_clone_args {
    993 	syscallarg(int) flags;
    994 	syscallarg(void *) stack;
    995 	syscallarg(void *) parent_tidptr;
    996 	syscallarg(void *) child_tidptr;
    997 	syscallarg(void *) tls;
    998 };
    999 check_syscall_args(linux_sys_clone)
   1000 
   1001 struct sys_execve_args;
   1002 
   1003 struct linux_sys_mmap_args;
   1004 
   1005 struct linux_sys_fadvise64_args {
   1006 	syscallarg(int) fd;
   1007 	syscallarg(off_t) offset;
   1008 	syscallarg(size_t) len;
   1009 	syscallarg(int) advice;
   1010 };
   1011 check_syscall_args(linux_sys_fadvise64)
   1012 
   1013 struct linux_sys_swapon_args {
   1014 	syscallarg(char *) name;
   1015 };
   1016 check_syscall_args(linux_sys_swapon)
   1017 
   1018 struct linux_sys_swapoff_args {
   1019 	syscallarg(const char *) path;
   1020 };
   1021 check_syscall_args(linux_sys_swapoff)
   1022 
   1023 struct linux_sys_mprotect_args {
   1024 	syscallarg(const void *) start;
   1025 	syscallarg(unsigned long) len;
   1026 	syscallarg(int) prot;
   1027 };
   1028 check_syscall_args(linux_sys_mprotect)
   1029 
   1030 struct sys___msync13_args;
   1031 
   1032 struct sys_mlock_args;
   1033 
   1034 struct sys_munlock_args;
   1035 
   1036 struct sys_mlockall_args;
   1037 
   1038 struct sys_mincore_args;
   1039 
   1040 struct sys_madvise_args;
   1041 
   1042 struct linux_sys_accept4_args {
   1043 	syscallarg(int) s;
   1044 	syscallarg(struct osockaddr *) name;
   1045 	syscallarg(int *) anamelen;
   1046 	syscallarg(int) flags;
   1047 };
   1048 check_syscall_args(linux_sys_accept4)
   1049 
   1050 struct linux_sys_recvmmsg_args {
   1051 	syscallarg(int) s;
   1052 	syscallarg(struct linux_mmsghdr *) msgvec;
   1053 	syscallarg(unsigned int) vlen;
   1054 	syscallarg(unsigned int) flags;
   1055 	syscallarg(struct timespec *) timeout;
   1056 };
   1057 check_syscall_args(linux_sys_recvmmsg)
   1058 
   1059 struct linux_sys_wait4_args {
   1060 	syscallarg(int) pid;
   1061 	syscallarg(int *) status;
   1062 	syscallarg(int) options;
   1063 	syscallarg(struct rusage50 *) rusage;
   1064 };
   1065 check_syscall_args(linux_sys_wait4)
   1066 
   1067 struct linux_sys_prlimit64_args {
   1068 	syscallarg(pid_t) pid;
   1069 	syscallarg(int) which;
   1070 	syscallarg(struct rlimit *) new_rlp;
   1071 	syscallarg(struct rlimit *) old_rlp;
   1072 };
   1073 check_syscall_args(linux_sys_prlimit64)
   1074 
   1075 struct linux_sys_sendmmsg_args {
   1076 	syscallarg(int) s;
   1077 	syscallarg(struct linux_mmsghdr *) msgvec;
   1078 	syscallarg(unsigned int) vlen;
   1079 	syscallarg(unsigned int) flags;
   1080 };
   1081 check_syscall_args(linux_sys_sendmmsg)
   1082 
   1083 struct sys_getrandom_args;
   1084 
   1085 struct linux_sys_memfd_create_args {
   1086 	syscallarg(const char *) name;
   1087 	syscallarg(unsigned int) flags;
   1088 };
   1089 check_syscall_args(linux_sys_memfd_create)
   1090 
   1091 struct linux_sys_statx_args {
   1092 	syscallarg(int) fd;
   1093 	syscallarg(const char *) path;
   1094 	syscallarg(int) flag;
   1095 	syscallarg(unsigned int) mask;
   1096 	syscallarg(struct linux_statx *) sp;
   1097 };
   1098 check_syscall_args(linux_sys_statx)
   1099 
   1100 struct linux_sys_close_range_args {
   1101 	syscallarg(unsigned int) first;
   1102 	syscallarg(unsigned int) last;
   1103 	syscallarg(unsigned int) flags;
   1104 };
   1105 check_syscall_args(linux_sys_close_range)
   1106 
   1107 struct linux_sys_faccessat2_args {
   1108 	syscallarg(int) fd;
   1109 	syscallarg(const char *) path;
   1110 	syscallarg(int) amode;
   1111 	syscallarg(int) flags;
   1112 };
   1113 check_syscall_args(linux_sys_faccessat2)
   1114 
   1115 struct linux_sys_epoll_pwait2_args {
   1116 	syscallarg(int) epfd;
   1117 	syscallarg(struct linux_epoll_event *) events;
   1118 	syscallarg(int) maxevents;
   1119 	syscallarg(const struct linux_timespec *) timeout;
   1120 	syscallarg(const linux_sigset_t *) sigmask;
   1121 };
   1122 check_syscall_args(linux_sys_epoll_pwait2)
   1123 
   1124 /*
   1125  * System call prototypes.
   1126  */
   1127 
   1128 int	linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *);
   1129 
   1130 int	linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *);
   1131 
   1132 int	linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *);
   1133 
   1134 int	linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *);
   1135 
   1136 int	linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *);
   1137 
   1138 int	linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *);
   1139 
   1140 int	linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *);
   1141 
   1142 int	linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *);
   1143 
   1144 int	linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *);
   1145 
   1146 int	linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *);
   1147 
   1148 int	linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *);
   1149 
   1150 int	linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *);
   1151 
   1152 int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
   1153 
   1154 int	linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *);
   1155 
   1156 int	linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *);
   1157 
   1158 int	linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *);
   1159 
   1160 int	linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *);
   1161 
   1162 int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
   1163 
   1164 int	linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
   1165 
   1166 int	linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *);
   1167 
   1168 int	linux_sys_inotify_init1(struct lwp *, const struct linux_sys_inotify_init1_args *, register_t *);
   1169 
   1170 int	linux_sys_inotify_add_watch(struct lwp *, const struct linux_sys_inotify_add_watch_args *, register_t *);
   1171 
   1172 int	linux_sys_inotify_rm_watch(struct lwp *, const struct linux_sys_inotify_rm_watch_args *, register_t *);
   1173 
   1174 int	linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *);
   1175 
   1176 int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
   1177 
   1178 int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
   1179 
   1180 int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
   1181 
   1182 int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
   1183 
   1184 int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
   1185 
   1186 int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
   1187 
   1188 int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
   1189 
   1190 int	linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
   1191 
   1192 int	linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);
   1193 
   1194 int	linux_sys_truncate64(struct lwp *, const struct linux_sys_truncate64_args *, register_t *);
   1195 
   1196 int	linux_sys_ftruncate64(struct lwp *, const struct linux_sys_ftruncate64_args *, register_t *);
   1197 
   1198 int	linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
   1199 
   1200 int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_args *, register_t *);
   1201 
   1202 int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
   1203 
   1204 int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
   1205 
   1206 int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
   1207 
   1208 int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
   1209 
   1210 int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
   1211 
   1212 int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
   1213 
   1214 int	sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
   1215 
   1216 int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
   1217 
   1218 int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
   1219 
   1220 int	linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
   1221 
   1222 int	linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
   1223 
   1224 int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
   1225 
   1226 int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
   1227 
   1228 int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
   1229 
   1230 int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
   1231 
   1232 int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
   1233 
   1234 int	linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *);
   1235 
   1236 int	linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *);
   1237 
   1238 int	linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
   1239 
   1240 int	linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
   1241 
   1242 int	linux_sys_pselect6(struct lwp *, const struct linux_sys_pselect6_args *, register_t *);
   1243 
   1244 int	linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *);
   1245 
   1246 int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
   1247 
   1248 int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
   1249 
   1250 int	linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *);
   1251 
   1252 int	sys_sync(struct lwp *, const void *, register_t *);
   1253 
   1254 int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
   1255 
   1256 int	linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *);
   1257 
   1258 int	linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
   1259 
   1260 int	linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
   1261 
   1262 int	linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *);
   1263 
   1264 int	linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
   1265 
   1266 int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
   1267 
   1268 int	linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *);
   1269 
   1270 int	linux_sys_exit(struct lwp *, const struct linux_sys_exit_args *, register_t *);
   1271 
   1272 int	linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *);
   1273 
   1274 int	linux_sys_waitid(struct lwp *, const struct linux_sys_waitid_args *, register_t *);
   1275 
   1276 int	linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *);
   1277 
   1278 int	linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *);
   1279 
   1280 int	sys___futex_set_robust_list(struct lwp *, const struct sys___futex_set_robust_list_args *, register_t *);
   1281 
   1282 int	sys___futex_get_robust_list(struct lwp *, const struct sys___futex_get_robust_list_args *, register_t *);
   1283 
   1284 int	linux_sys_nanosleep(struct lwp *, const struct linux_sys_nanosleep_args *, register_t *);
   1285 
   1286 int	compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
   1287 
   1288 int	compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
   1289 
   1290 int	linux_sys_timer_create(struct lwp *, const struct linux_sys_timer_create_args *, register_t *);
   1291 
   1292 int	linux_sys_timer_gettime(struct lwp *, const struct linux_sys_timer_gettime_args *, register_t *);
   1293 
   1294 int	sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
   1295 
   1296 int	linux_sys_timer_settime(struct lwp *, const struct linux_sys_timer_settime_args *, register_t *);
   1297 
   1298 int	sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
   1299 
   1300 int	linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
   1301 
   1302 int	linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
   1303 
   1304 int	linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *);
   1305 
   1306 int	linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *);
   1307 
   1308 int	linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *);
   1309 
   1310 int	linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *);
   1311 
   1312 int	linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *);
   1313 
   1314 int	linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *);
   1315 
   1316 int	linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *);
   1317 
   1318 int	linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *);
   1319 
   1320 int	linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *);
   1321 
   1322 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
   1323 
   1324 int	linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *);
   1325 
   1326 int	linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *);
   1327 
   1328 int	linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *);
   1329 
   1330 int	linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *);
   1331 
   1332 int	linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
   1333 
   1334 int	linux_sys_sigaltstack(struct lwp *, const struct linux_sys_sigaltstack_args *, register_t *);
   1335 
   1336 int	linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *);
   1337 
   1338 int	linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
   1339 
   1340 int	linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *);
   1341 
   1342 int	linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *);
   1343 
   1344 int	linux_sys_rt_sigtimedwait(struct lwp *, const struct linux_sys_rt_sigtimedwait_args *, register_t *);
   1345 
   1346 int	linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *);
   1347 
   1348 int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
   1349 
   1350 int	linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *);
   1351 
   1352 int	linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *);
   1353 
   1354 int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
   1355 
   1356 int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
   1357 
   1358 int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
   1359 
   1360 int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
   1361 
   1362 int	linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
   1363 
   1364 int	linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
   1365 
   1366 int	linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
   1367 
   1368 int	linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
   1369 
   1370 int	linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
   1371 
   1372 int	linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
   1373 
   1374 int	linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *);
   1375 
   1376 int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
   1377 
   1378 int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
   1379 
   1380 int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
   1381 
   1382 int	sys_setsid(struct lwp *, const void *, register_t *);
   1383 
   1384 int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
   1385 
   1386 int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
   1387 
   1388 int	linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *);
   1389 
   1390 int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
   1391 
   1392 int	linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *);
   1393 
   1394 int	linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *);
   1395 
   1396 int	linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *);
   1397 
   1398 int	compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
   1399 
   1400 int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
   1401 
   1402 int	linux_sys_getcpu(struct lwp *, const struct linux_sys_getcpu_args *, register_t *);
   1403 
   1404 int	linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *);
   1405 
   1406 int	linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
   1407 
   1408 int	sys_getpid(struct lwp *, const void *, register_t *);
   1409 
   1410 int	sys_getppid(struct lwp *, const void *, register_t *);
   1411 
   1412 int	sys_getuid(struct lwp *, const void *, register_t *);
   1413 
   1414 int	sys_geteuid(struct lwp *, const void *, register_t *);
   1415 
   1416 int	sys_getgid(struct lwp *, const void *, register_t *);
   1417 
   1418 int	sys_getegid(struct lwp *, const void *, register_t *);
   1419 
   1420 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
   1421 
   1422 int	linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *);
   1423 
   1424 int	linux_sys_mq_open(struct lwp *, const struct linux_sys_mq_open_args *, register_t *);
   1425 
   1426 int	linux_sys_mq_unlink(struct lwp *, const struct linux_sys_mq_unlink_args *, register_t *);
   1427 
   1428 int	linux_sys_mq_timedsend(struct lwp *, const struct linux_sys_mq_timedsend_args *, register_t *);
   1429 
   1430 int	linux_sys_mq_timedreceive(struct lwp *, const struct linux_sys_mq_timedreceive_args *, register_t *);
   1431 
   1432 int	linux_sys_mq_notify(struct lwp *, const struct linux_sys_mq_notify_args *, register_t *);
   1433 
   1434 int	linux_sys_mq_getsetattr(struct lwp *, const struct linux_sys_mq_getsetattr_args *, register_t *);
   1435 
   1436 #ifdef SYSVMSG
   1437 int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
   1438 
   1439 int	linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *);
   1440 
   1441 int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
   1442 
   1443 int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
   1444 
   1445 #else
   1446 #endif
   1447 #ifdef SYSVSEM
   1448 int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
   1449 
   1450 int	linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *);
   1451 
   1452 int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
   1453 
   1454 #else
   1455 #endif
   1456 #ifdef SYSVSEM
   1457 int	linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *);
   1458 
   1459 int	linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *);
   1460 
   1461 int	sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
   1462 
   1463 int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
   1464 
   1465 #else
   1466 #endif
   1467 int	linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
   1468 
   1469 int	linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *);
   1470 
   1471 int	linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *);
   1472 
   1473 int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
   1474 
   1475 int	linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *);
   1476 
   1477 int	linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *);
   1478 
   1479 int	linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *);
   1480 
   1481 int	linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *);
   1482 
   1483 int	linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *);
   1484 
   1485 int	linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *);
   1486 
   1487 int	linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *);
   1488 
   1489 int	linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *);
   1490 
   1491 int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
   1492 
   1493 int	linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *);
   1494 
   1495 int	linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
   1496 
   1497 int	linux_sys_readahead(struct lwp *, const struct linux_sys_readahead_args *, register_t *);
   1498 
   1499 int	linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
   1500 
   1501 int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
   1502 
   1503 int	linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
   1504 
   1505 int	linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *);
   1506 
   1507 int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
   1508 
   1509 int	linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *);
   1510 
   1511 int	linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *);
   1512 
   1513 int	linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *);
   1514 
   1515 int	linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *);
   1516 
   1517 int	linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *);
   1518 
   1519 int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
   1520 
   1521 int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
   1522 
   1523 int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
   1524 
   1525 int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
   1526 
   1527 int	sys_munlockall(struct lwp *, const void *, register_t *);
   1528 
   1529 int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
   1530 
   1531 int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
   1532 
   1533 int	linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
   1534 
   1535 int	linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
   1536 
   1537 int	linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
   1538 
   1539 int	linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
   1540 
   1541 int	linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
   1542 
   1543 int	sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
   1544 
   1545 int	linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *);
   1546 
   1547 int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
   1548 
   1549 int	linux_sys_close_range(struct lwp *, const struct linux_sys_close_range_args *, register_t *);
   1550 
   1551 int	linux_sys_faccessat2(struct lwp *, const struct linux_sys_faccessat2_args *, register_t *);
   1552 
   1553 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
   1554 
   1555 int	linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
   1556 
   1557 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
   1558