Home | History | Annotate | Line # | Download | only in amd64
linux_syscallargs.h revision 1.18.16.1
      1 /* $NetBSD: linux_syscallargs.h,v 1.18.16.1 2007/11/18 19:34:59 bouyer 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.19 2007/11/16 12:51:54 njoly Exp
      8  */
      9 
     10 #ifndef _LINUX_SYS_SYSCALLARGS_H_
     11 #define	_LINUX_SYS_SYSCALLARGS_H_
     12 
     13 #define	LINUX_SYS_MAXSYSARGS	8
     14 
     15 #undef	syscallarg
     16 #define	syscallarg(x)							\
     17 	union {								\
     18 		register_t pad;						\
     19 		struct { x datum; } le;					\
     20 		struct { /* LINTED zero array dimension */		\
     21 			int8_t pad[  /* CONSTCOND */			\
     22 				(sizeof (register_t) < sizeof (x))	\
     23 				? 0					\
     24 				: sizeof (register_t) - sizeof (x)];	\
     25 			x datum;					\
     26 		} be;							\
     27 	}
     28 
     29 #undef check_syscall_args
     30 #define check_syscall_args(call) \
     31 	typedef char call##_check_args[sizeof (struct call##_args) \
     32 		<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
     33 
     34 struct linux_sys_open_args {
     35 	syscallarg(const char *) path;
     36 	syscallarg(int) flags;
     37 	syscallarg(int) mode;
     38 };
     39 check_syscall_args(linux_sys_open)
     40 
     41 struct linux_sys_stat64_args {
     42 	syscallarg(const char *) path;
     43 	syscallarg(struct linux_stat *) sp;
     44 };
     45 check_syscall_args(linux_sys_stat64)
     46 
     47 struct linux_sys_fstat64_args {
     48 	syscallarg(int) fd;
     49 	syscallarg(struct linux_stat *) sp;
     50 };
     51 check_syscall_args(linux_sys_fstat64)
     52 
     53 struct linux_sys_lstat64_args {
     54 	syscallarg(const char *) path;
     55 	syscallarg(struct linux_stat *) sp;
     56 };
     57 check_syscall_args(linux_sys_lstat64)
     58 
     59 struct linux_sys_mprotect_args {
     60 	syscallarg(const void *) start;
     61 	syscallarg(unsigned long) len;
     62 	syscallarg(int) prot;
     63 };
     64 check_syscall_args(linux_sys_mprotect)
     65 
     66 struct linux_sys_brk_args {
     67 	syscallarg(char *) nsize;
     68 };
     69 check_syscall_args(linux_sys_brk)
     70 
     71 struct linux_sys_rt_sigaction_args {
     72 	syscallarg(int) signum;
     73 	syscallarg(const struct linux_sigaction *) nsa;
     74 	syscallarg(struct linux_sigaction *) osa;
     75 	syscallarg(size_t) sigsetsize;
     76 };
     77 check_syscall_args(linux_sys_rt_sigaction)
     78 
     79 struct linux_sys_rt_sigprocmask_args {
     80 	syscallarg(int) how;
     81 	syscallarg(const linux_sigset_t *) set;
     82 	syscallarg(linux_sigset_t *) oset;
     83 	syscallarg(size_t) sigsetsize;
     84 };
     85 check_syscall_args(linux_sys_rt_sigprocmask)
     86 
     87 struct linux_sys_ioctl_args {
     88 	syscallarg(int) fd;
     89 	syscallarg(u_long) com;
     90 	syscallarg(void *) data;
     91 };
     92 check_syscall_args(linux_sys_ioctl)
     93 
     94 struct linux_sys_pread_args {
     95 	syscallarg(int) fd;
     96 	syscallarg(char *) buf;
     97 	syscallarg(size_t) nbyte;
     98 	syscallarg(linux_off_t) offset;
     99 };
    100 check_syscall_args(linux_sys_pread)
    101 
    102 struct linux_sys_pwrite_args {
    103 	syscallarg(int) fd;
    104 	syscallarg(char *) buf;
    105 	syscallarg(size_t) nbyte;
    106 	syscallarg(linux_off_t) offset;
    107 };
    108 check_syscall_args(linux_sys_pwrite)
    109 
    110 struct linux_sys_pipe_args {
    111 	syscallarg(int *) pfds;
    112 };
    113 check_syscall_args(linux_sys_pipe)
    114 
    115 struct linux_sys_select_args {
    116 	syscallarg(int) nfds;
    117 	syscallarg(fd_set *) readfds;
    118 	syscallarg(fd_set *) writefds;
    119 	syscallarg(fd_set *) exceptfds;
    120 	syscallarg(struct timeval *) timeout;
    121 };
    122 check_syscall_args(linux_sys_select)
    123 
    124 struct linux_sys_mremap_args {
    125 	syscallarg(void *) old_address;
    126 	syscallarg(size_t) old_size;
    127 	syscallarg(size_t) new_size;
    128 	syscallarg(u_long) flags;
    129 };
    130 check_syscall_args(linux_sys_mremap)
    131 
    132 struct linux_sys_msync_args {
    133 	syscallarg(void *) addr;
    134 	syscallarg(int) len;
    135 	syscallarg(int) fl;
    136 };
    137 check_syscall_args(linux_sys_msync)
    138 #ifdef SYSVSHM
    139 
    140 struct linux_sys_shmget_args {
    141 	syscallarg(key_t) key;
    142 	syscallarg(size_t) size;
    143 	syscallarg(int) shmflg;
    144 };
    145 check_syscall_args(linux_sys_shmget)
    146 
    147 struct linux_sys_shmctl_args {
    148 	syscallarg(int) shmid;
    149 	syscallarg(int) cmd;
    150 	syscallarg(struct linux_shmid_ds *) buf;
    151 };
    152 check_syscall_args(linux_sys_shmctl)
    153 #else
    154 #endif
    155 
    156 struct linux_sys_alarm_args {
    157 	syscallarg(unsigned int) secs;
    158 };
    159 check_syscall_args(linux_sys_alarm)
    160 
    161 struct linux_sys_socket_args {
    162 	syscallarg(int) domain;
    163 	syscallarg(int) type;
    164 	syscallarg(int) protocol;
    165 };
    166 check_syscall_args(linux_sys_socket)
    167 
    168 struct linux_sys_connect_args {
    169 	syscallarg(int) s;
    170 	syscallarg(const struct osockaddr *) name;
    171 	syscallarg(unsigned int) namelen;
    172 };
    173 check_syscall_args(linux_sys_connect)
    174 
    175 struct linux_sys_accept_args {
    176 	syscallarg(int) s;
    177 	syscallarg(struct osockaddr *) name;
    178 	syscallarg(int *) anamelen;
    179 };
    180 check_syscall_args(linux_sys_accept)
    181 
    182 struct linux_sys_sendto_args {
    183 	syscallarg(int) s;
    184 	syscallarg(void *) msg;
    185 	syscallarg(int) len;
    186 	syscallarg(int) flags;
    187 	syscallarg(struct osockaddr *) to;
    188 	syscallarg(int) tolen;
    189 };
    190 check_syscall_args(linux_sys_sendto)
    191 
    192 struct linux_sys_recvfrom_args {
    193 	syscallarg(int) s;
    194 	syscallarg(void *) buf;
    195 	syscallarg(size_t) len;
    196 	syscallarg(int) flags;
    197 	syscallarg(struct osockaddr *) from;
    198 	syscallarg(unsigned int *) fromlenaddr;
    199 };
    200 check_syscall_args(linux_sys_recvfrom)
    201 
    202 struct linux_sys_sendmsg_args {
    203 	syscallarg(int) s;
    204 	syscallarg(const struct msghdr *) msg;
    205 	syscallarg(int) flags;
    206 };
    207 check_syscall_args(linux_sys_sendmsg)
    208 
    209 struct linux_sys_recvmsg_args {
    210 	syscallarg(int) s;
    211 	syscallarg(struct msghdr *) msg;
    212 	syscallarg(int) flags;
    213 };
    214 check_syscall_args(linux_sys_recvmsg)
    215 
    216 struct linux_sys_bind_args {
    217 	syscallarg(int) s;
    218 	syscallarg(const struct osockaddr *) name;
    219 	syscallarg(unsigned int) namelen;
    220 };
    221 check_syscall_args(linux_sys_bind)
    222 
    223 struct linux_sys_getsockname_args {
    224 	syscallarg(int) fdec;
    225 	syscallarg(void *) asa;
    226 	syscallarg(int *) alen;
    227 };
    228 check_syscall_args(linux_sys_getsockname)
    229 
    230 struct linux_sys_getpeername_args {
    231 	syscallarg(int) fdes;
    232 	syscallarg(struct sockaddr *) asa;
    233 	syscallarg(unsigned int *) alen;
    234 };
    235 check_syscall_args(linux_sys_getpeername)
    236 
    237 struct linux_sys_socketpair_args {
    238 	syscallarg(int) domain;
    239 	syscallarg(int) type;
    240 	syscallarg(int) protocol;
    241 	syscallarg(int *) rsv;
    242 };
    243 check_syscall_args(linux_sys_socketpair)
    244 
    245 struct linux_sys_setsockopt_args {
    246 	syscallarg(int) s;
    247 	syscallarg(int) level;
    248 	syscallarg(int) optname;
    249 	syscallarg(void *) optval;
    250 	syscallarg(int) optlen;
    251 };
    252 check_syscall_args(linux_sys_setsockopt)
    253 
    254 struct linux_sys_getsockopt_args {
    255 	syscallarg(int) s;
    256 	syscallarg(int) level;
    257 	syscallarg(int) optname;
    258 	syscallarg(void *) optval;
    259 	syscallarg(int *) optlen;
    260 };
    261 check_syscall_args(linux_sys_getsockopt)
    262 
    263 struct linux_sys_clone_args {
    264 	syscallarg(int) flags;
    265 	syscallarg(void *) stack;
    266 	syscallarg(void *) parent_tidptr;
    267 	syscallarg(void *) child_tidptr;
    268 };
    269 check_syscall_args(linux_sys_clone)
    270 
    271 struct linux_sys_wait4_args {
    272 	syscallarg(int) pid;
    273 	syscallarg(int *) status;
    274 	syscallarg(int) options;
    275 	syscallarg(struct rusage *) rusage;
    276 };
    277 check_syscall_args(linux_sys_wait4)
    278 
    279 struct linux_sys_kill_args {
    280 	syscallarg(int) pid;
    281 	syscallarg(int) signum;
    282 };
    283 check_syscall_args(linux_sys_kill)
    284 
    285 struct linux_sys_uname_args {
    286 	syscallarg(struct linux_utsname *) up;
    287 };
    288 check_syscall_args(linux_sys_uname)
    289 #ifdef SYSVSEM
    290 
    291 struct linux_sys_semctl_args {
    292 	syscallarg(int) semid;
    293 	syscallarg(int) semnum;
    294 	syscallarg(int) cmd;
    295 	syscallarg(union linux_semun) arg;
    296 };
    297 check_syscall_args(linux_sys_semctl)
    298 #else
    299 #endif
    300 #ifdef SYSVSHM
    301 #else
    302 #endif
    303 #ifdef SYSVMSG
    304 
    305 struct linux_sys_msgctl_args {
    306 	syscallarg(int) msqid;
    307 	syscallarg(int) cmd;
    308 	syscallarg(struct linux_msqid_ds *) buf;
    309 };
    310 check_syscall_args(linux_sys_msgctl)
    311 #else
    312 #endif
    313 
    314 struct linux_sys_fcntl_args {
    315 	syscallarg(int) fd;
    316 	syscallarg(int) cmd;
    317 	syscallarg(void *) arg;
    318 };
    319 check_syscall_args(linux_sys_fcntl)
    320 
    321 struct linux_sys_fdatasync_args {
    322 	syscallarg(int) fd;
    323 };
    324 check_syscall_args(linux_sys_fdatasync)
    325 
    326 struct linux_sys_truncate64_args {
    327 	syscallarg(const char *) path;
    328 	syscallarg(off_t) length;
    329 };
    330 check_syscall_args(linux_sys_truncate64)
    331 
    332 struct linux_sys_ftruncate64_args {
    333 	syscallarg(unsigned int) fd;
    334 	syscallarg(off_t) length;
    335 };
    336 check_syscall_args(linux_sys_ftruncate64)
    337 
    338 struct linux_sys_getdents_args {
    339 	syscallarg(int) fd;
    340 	syscallarg(struct linux_dirent *) dent;
    341 	syscallarg(unsigned int) count;
    342 };
    343 check_syscall_args(linux_sys_getdents)
    344 
    345 struct linux_sys_creat_args {
    346 	syscallarg(const char *) path;
    347 	syscallarg(int) mode;
    348 };
    349 check_syscall_args(linux_sys_creat)
    350 
    351 struct linux_sys_unlink_args {
    352 	syscallarg(const char *) path;
    353 };
    354 check_syscall_args(linux_sys_unlink)
    355 
    356 struct linux_sys_gettimeofday_args {
    357 	syscallarg(struct timeval *) tp;
    358 	syscallarg(struct timezone *) tzp;
    359 };
    360 check_syscall_args(linux_sys_gettimeofday)
    361 
    362 struct linux_sys_getrlimit_args {
    363 	syscallarg(int) which;
    364 	syscallarg(struct rlimit *) rlp;
    365 };
    366 check_syscall_args(linux_sys_getrlimit)
    367 
    368 struct linux_sys_sysinfo_args {
    369 	syscallarg(struct linux_sysinfo *) arg;
    370 };
    371 check_syscall_args(linux_sys_sysinfo)
    372 
    373 struct linux_sys_times_args {
    374 	syscallarg(struct times *) tms;
    375 };
    376 check_syscall_args(linux_sys_times)
    377 
    378 struct linux_sys_ptrace_args {
    379 	syscallarg(long) request;
    380 	syscallarg(long) pid;
    381 	syscallarg(long) addr;
    382 	syscallarg(long) data;
    383 };
    384 check_syscall_args(linux_sys_ptrace)
    385 
    386 struct linux_sys_setresuid_args {
    387 	syscallarg(uid_t) ruid;
    388 	syscallarg(uid_t) euid;
    389 	syscallarg(uid_t) suid;
    390 };
    391 check_syscall_args(linux_sys_setresuid)
    392 
    393 struct linux_sys_getresuid_args {
    394 	syscallarg(uid_t *) ruid;
    395 	syscallarg(uid_t *) euid;
    396 	syscallarg(uid_t *) suid;
    397 };
    398 check_syscall_args(linux_sys_getresuid)
    399 
    400 struct linux_sys_setresgid_args {
    401 	syscallarg(gid_t) rgid;
    402 	syscallarg(gid_t) egid;
    403 	syscallarg(gid_t) sgid;
    404 };
    405 check_syscall_args(linux_sys_setresgid)
    406 
    407 struct linux_sys_getresgid_args {
    408 	syscallarg(gid_t *) rgid;
    409 	syscallarg(gid_t *) egid;
    410 	syscallarg(gid_t *) sgid;
    411 };
    412 check_syscall_args(linux_sys_getresgid)
    413 
    414 struct linux_sys_getpgid_args {
    415 	syscallarg(int) pid;
    416 };
    417 check_syscall_args(linux_sys_getpgid)
    418 
    419 struct linux_sys_setfsuid_args {
    420 	syscallarg(uid_t) uid;
    421 };
    422 check_syscall_args(linux_sys_setfsuid)
    423 
    424 struct linux_sys_rt_sigpending_args {
    425 	syscallarg(linux_sigset_t *) set;
    426 	syscallarg(size_t) sigsetsize;
    427 };
    428 check_syscall_args(linux_sys_rt_sigpending)
    429 
    430 struct linux_sys_rt_queueinfo_args {
    431 	syscallarg(int) pid;
    432 	syscallarg(int) signum;
    433 	syscallarg(siginfo_t *) uinfo;
    434 };
    435 check_syscall_args(linux_sys_rt_queueinfo)
    436 
    437 struct linux_sys_rt_sigsuspend_args {
    438 	syscallarg(linux_sigset_t *) unewset;
    439 	syscallarg(size_t) sigsetsize;
    440 };
    441 check_syscall_args(linux_sys_rt_sigsuspend)
    442 
    443 struct linux_sys_sigaltstack_args {
    444 	syscallarg(const struct linux_sigaltstack *) ss;
    445 	syscallarg(struct linux_sigaltstack *) oss;
    446 };
    447 check_syscall_args(linux_sys_sigaltstack)
    448 
    449 struct linux_sys_utime_args {
    450 	syscallarg(const char *) path;
    451 	syscallarg(struct linux_utimbuf *) times;
    452 };
    453 check_syscall_args(linux_sys_utime)
    454 
    455 struct linux_sys_mknod_args {
    456 	syscallarg(const char *) path;
    457 	syscallarg(int) mode;
    458 	syscallarg(int) dev;
    459 };
    460 check_syscall_args(linux_sys_mknod)
    461 #ifdef EXEC_AOUT
    462 
    463 struct linux_sys_uselib_args {
    464 	syscallarg(const char *) path;
    465 };
    466 check_syscall_args(linux_sys_uselib)
    467 #else
    468 #endif
    469 
    470 struct linux_sys_personality_args {
    471 	syscallarg(int) per;
    472 };
    473 check_syscall_args(linux_sys_personality)
    474 
    475 struct linux_sys_statfs_args {
    476 	syscallarg(const char *) path;
    477 	syscallarg(struct linux_statfs *) sp;
    478 };
    479 check_syscall_args(linux_sys_statfs)
    480 
    481 struct linux_sys_fstatfs_args {
    482 	syscallarg(int) fd;
    483 	syscallarg(struct linux_statfs *) sp;
    484 };
    485 check_syscall_args(linux_sys_fstatfs)
    486 
    487 struct linux_sys_getpriority_args {
    488 	syscallarg(int) which;
    489 	syscallarg(int) who;
    490 };
    491 check_syscall_args(linux_sys_getpriority)
    492 
    493 struct linux_sys_sched_setparam_args {
    494 	syscallarg(pid_t) pid;
    495 	syscallarg(const struct linux_sched_param *) sp;
    496 };
    497 check_syscall_args(linux_sys_sched_setparam)
    498 
    499 struct linux_sys_sched_getparam_args {
    500 	syscallarg(pid_t) pid;
    501 	syscallarg(struct linux_sched_param *) sp;
    502 };
    503 check_syscall_args(linux_sys_sched_getparam)
    504 
    505 struct linux_sys_sched_setscheduler_args {
    506 	syscallarg(pid_t) pid;
    507 	syscallarg(int) policy;
    508 	syscallarg(const struct linux_sched_param *) sp;
    509 };
    510 check_syscall_args(linux_sys_sched_setscheduler)
    511 
    512 struct linux_sys_sched_getscheduler_args {
    513 	syscallarg(pid_t) pid;
    514 };
    515 check_syscall_args(linux_sys_sched_getscheduler)
    516 
    517 struct linux_sys_sched_get_priority_max_args {
    518 	syscallarg(int) policy;
    519 };
    520 check_syscall_args(linux_sys_sched_get_priority_max)
    521 
    522 struct linux_sys_sched_get_priority_min_args {
    523 	syscallarg(int) policy;
    524 };
    525 check_syscall_args(linux_sys_sched_get_priority_min)
    526 
    527 struct linux_sys_modify_ldt_args {
    528 	syscallarg(int) func;
    529 	syscallarg(void *) ptr;
    530 	syscallarg(size_t) bytecount;
    531 };
    532 check_syscall_args(linux_sys_modify_ldt)
    533 
    534 struct linux_sys___sysctl_args {
    535 	syscallarg(struct linux___sysctl *) lsp;
    536 };
    537 check_syscall_args(linux_sys___sysctl)
    538 
    539 struct linux_sys_arch_prctl_args {
    540 	syscallarg(int) code;
    541 	syscallarg(unsigned long) addr;
    542 };
    543 check_syscall_args(linux_sys_arch_prctl)
    544 
    545 struct linux_sys_setrlimit_args {
    546 	syscallarg(u_int) which;
    547 	syscallarg(struct rlimit *) rlp;
    548 };
    549 check_syscall_args(linux_sys_setrlimit)
    550 
    551 struct linux_sys_settimeofday_args {
    552 	syscallarg(struct timeval *) tp;
    553 	syscallarg(struct timezone *) tzp;
    554 };
    555 check_syscall_args(linux_sys_settimeofday)
    556 
    557 struct linux_sys_swapon_args {
    558 	syscallarg(char *) name;
    559 };
    560 check_syscall_args(linux_sys_swapon)
    561 
    562 struct linux_sys_swapoff_args {
    563 	syscallarg(const char *) path;
    564 };
    565 check_syscall_args(linux_sys_swapoff)
    566 
    567 struct linux_sys_reboot_args {
    568 	syscallarg(int) magic1;
    569 	syscallarg(int) magic2;
    570 	syscallarg(int) cmd;
    571 	syscallarg(void *) arg;
    572 };
    573 check_syscall_args(linux_sys_reboot)
    574 
    575 struct linux_sys_setdomainname_args {
    576 	syscallarg(char *) domainname;
    577 	syscallarg(int) len;
    578 };
    579 check_syscall_args(linux_sys_setdomainname)
    580 
    581 struct linux_sys_iopl_args {
    582 	syscallarg(int) level;
    583 };
    584 check_syscall_args(linux_sys_iopl)
    585 
    586 struct linux_sys_ioperm_args {
    587 	syscallarg(unsigned int) lo;
    588 	syscallarg(unsigned int) hi;
    589 	syscallarg(int) val;
    590 };
    591 check_syscall_args(linux_sys_ioperm)
    592 
    593 struct linux_sys_setxattr_args {
    594 	syscallarg(char *) path;
    595 	syscallarg(char *) name;
    596 	syscallarg(void *) value;
    597 	syscallarg(size_t) size;
    598 	syscallarg(int) flags;
    599 };
    600 check_syscall_args(linux_sys_setxattr)
    601 
    602 struct linux_sys_lsetxattr_args {
    603 	syscallarg(char *) path;
    604 	syscallarg(char *) name;
    605 	syscallarg(void *) value;
    606 	syscallarg(size_t) size;
    607 	syscallarg(int) flags;
    608 };
    609 check_syscall_args(linux_sys_lsetxattr)
    610 
    611 struct linux_sys_fsetxattr_args {
    612 	syscallarg(int) fd;
    613 	syscallarg(char *) name;
    614 	syscallarg(void *) value;
    615 	syscallarg(size_t) size;
    616 	syscallarg(int) flags;
    617 };
    618 check_syscall_args(linux_sys_fsetxattr)
    619 
    620 struct linux_sys_getxattr_args {
    621 	syscallarg(char *) path;
    622 	syscallarg(char *) name;
    623 	syscallarg(void *) value;
    624 	syscallarg(size_t) size;
    625 };
    626 check_syscall_args(linux_sys_getxattr)
    627 
    628 struct linux_sys_lgetxattr_args {
    629 	syscallarg(char *) path;
    630 	syscallarg(char *) name;
    631 	syscallarg(void *) value;
    632 	syscallarg(size_t) size;
    633 };
    634 check_syscall_args(linux_sys_lgetxattr)
    635 
    636 struct linux_sys_fgetxattr_args {
    637 	syscallarg(int) fd;
    638 	syscallarg(char *) name;
    639 	syscallarg(void *) value;
    640 	syscallarg(size_t) size;
    641 };
    642 check_syscall_args(linux_sys_fgetxattr)
    643 
    644 struct linux_sys_listxattr_args {
    645 	syscallarg(char *) path;
    646 	syscallarg(char *) list;
    647 	syscallarg(size_t) size;
    648 };
    649 check_syscall_args(linux_sys_listxattr)
    650 
    651 struct linux_sys_llistxattr_args {
    652 	syscallarg(char *) path;
    653 	syscallarg(char *) list;
    654 	syscallarg(size_t) size;
    655 };
    656 check_syscall_args(linux_sys_llistxattr)
    657 
    658 struct linux_sys_flistxattr_args {
    659 	syscallarg(int) fd;
    660 	syscallarg(char *) list;
    661 	syscallarg(size_t) size;
    662 };
    663 check_syscall_args(linux_sys_flistxattr)
    664 
    665 struct linux_sys_removexattr_args {
    666 	syscallarg(char *) path;
    667 	syscallarg(char *) name;
    668 };
    669 check_syscall_args(linux_sys_removexattr)
    670 
    671 struct linux_sys_lremovexattr_args {
    672 	syscallarg(char *) path;
    673 	syscallarg(char *) name;
    674 };
    675 check_syscall_args(linux_sys_lremovexattr)
    676 
    677 struct linux_sys_fremovexattr_args {
    678 	syscallarg(int) fd;
    679 	syscallarg(char *) name;
    680 };
    681 check_syscall_args(linux_sys_fremovexattr)
    682 
    683 struct linux_sys_tkill_args {
    684 	syscallarg(int) tid;
    685 	syscallarg(int) sig;
    686 };
    687 check_syscall_args(linux_sys_tkill)
    688 
    689 struct linux_sys_time_args {
    690 	syscallarg(linux_time_t *) t;
    691 };
    692 check_syscall_args(linux_sys_time)
    693 
    694 struct linux_sys_futex_args {
    695 	syscallarg(int *) uaddr;
    696 	syscallarg(int) op;
    697 	syscallarg(int) val;
    698 	syscallarg(const struct timespec *) timeout;
    699 	syscallarg(int *) uaddr2;
    700 	syscallarg(int) val3;
    701 };
    702 check_syscall_args(linux_sys_futex)
    703 
    704 struct linux_sys_sched_setaffinity_args {
    705 	syscallarg(pid_t) pid;
    706 	syscallarg(unsigned int) len;
    707 	syscallarg(unsigned long *) mask;
    708 };
    709 check_syscall_args(linux_sys_sched_setaffinity)
    710 
    711 struct linux_sys_sched_getaffinity_args {
    712 	syscallarg(pid_t) pid;
    713 	syscallarg(unsigned int) len;
    714 	syscallarg(unsigned long *) mask;
    715 };
    716 check_syscall_args(linux_sys_sched_getaffinity)
    717 
    718 struct linux_sys_getdents64_args {
    719 	syscallarg(int) fd;
    720 	syscallarg(struct linux_dirent64 *) dent;
    721 	syscallarg(unsigned int) count;
    722 };
    723 check_syscall_args(linux_sys_getdents64)
    724 
    725 struct linux_sys_set_tid_address_args {
    726 	syscallarg(int *) tid;
    727 };
    728 check_syscall_args(linux_sys_set_tid_address)
    729 
    730 struct linux_sys_clock_settime_args {
    731 	syscallarg(clockid_t) which;
    732 	syscallarg(struct linux_timespec *) tp;
    733 };
    734 check_syscall_args(linux_sys_clock_settime)
    735 
    736 struct linux_sys_clock_gettime_args {
    737 	syscallarg(clockid_t) which;
    738 	syscallarg(struct linux_timespec *) tp;
    739 };
    740 check_syscall_args(linux_sys_clock_gettime)
    741 
    742 struct linux_sys_clock_getres_args {
    743 	syscallarg(clockid_t) which;
    744 	syscallarg(struct linux_timespec *) tp;
    745 };
    746 check_syscall_args(linux_sys_clock_getres)
    747 
    748 struct linux_sys_clock_nanosleep_args {
    749 	syscallarg(clockid_t) which;
    750 	syscallarg(int) flags;
    751 	syscallarg(struct linux_timespec *) rqtp;
    752 	syscallarg(struct linux_timespec *) rmtp;
    753 };
    754 check_syscall_args(linux_sys_clock_nanosleep)
    755 
    756 struct linux_sys_exit_group_args {
    757 	syscallarg(int) error_code;
    758 };
    759 check_syscall_args(linux_sys_exit_group)
    760 
    761 struct linux_sys_tgkill_args {
    762 	syscallarg(int) tgid;
    763 	syscallarg(int) tid;
    764 	syscallarg(int) sig;
    765 };
    766 check_syscall_args(linux_sys_tgkill)
    767 
    768 /*
    769  * System call prototypes.
    770  */
    771 
    772 int	sys_read(struct lwp *, void *, register_t *);
    773 
    774 int	sys_write(struct lwp *, void *, register_t *);
    775 
    776 int	linux_sys_open(struct lwp *, void *, register_t *);
    777 
    778 int	sys_close(struct lwp *, void *, register_t *);
    779 
    780 int	linux_sys_stat64(struct lwp *, void *, register_t *);
    781 
    782 int	linux_sys_fstat64(struct lwp *, void *, register_t *);
    783 
    784 int	linux_sys_lstat64(struct lwp *, void *, register_t *);
    785 
    786 int	sys_poll(struct lwp *, void *, register_t *);
    787 
    788 int	compat_43_sys_lseek(struct lwp *, void *, register_t *);
    789 
    790 int	linux_sys_mmap(struct lwp *, void *, register_t *);
    791 
    792 int	linux_sys_mprotect(struct lwp *, void *, register_t *);
    793 
    794 int	sys_munmap(struct lwp *, void *, register_t *);
    795 
    796 int	linux_sys_brk(struct lwp *, void *, register_t *);
    797 
    798 int	linux_sys_rt_sigaction(struct lwp *, void *, register_t *);
    799 
    800 int	linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
    801 
    802 int	linux_sys_rt_sigreturn(struct lwp *, void *, register_t *);
    803 
    804 int	linux_sys_ioctl(struct lwp *, void *, register_t *);
    805 
    806 int	linux_sys_pread(struct lwp *, void *, register_t *);
    807 
    808 int	linux_sys_pwrite(struct lwp *, void *, register_t *);
    809 
    810 int	sys_readv(struct lwp *, void *, register_t *);
    811 
    812 int	sys_writev(struct lwp *, void *, register_t *);
    813 
    814 int	sys_access(struct lwp *, void *, register_t *);
    815 
    816 int	linux_sys_pipe(struct lwp *, void *, register_t *);
    817 
    818 int	linux_sys_select(struct lwp *, void *, register_t *);
    819 
    820 int	linux_sys_sched_yield(struct lwp *, void *, register_t *);
    821 
    822 int	linux_sys_mremap(struct lwp *, void *, register_t *);
    823 
    824 int	linux_sys_msync(struct lwp *, void *, register_t *);
    825 
    826 int	sys_mincore(struct lwp *, void *, register_t *);
    827 
    828 int	sys_madvise(struct lwp *, void *, register_t *);
    829 
    830 #ifdef SYSVSHM
    831 int	linux_sys_shmget(struct lwp *, void *, register_t *);
    832 
    833 int	sys_shmat(struct lwp *, void *, register_t *);
    834 
    835 int	linux_sys_shmctl(struct lwp *, void *, register_t *);
    836 
    837 #else
    838 #endif
    839 int	sys_dup(struct lwp *, void *, register_t *);
    840 
    841 int	sys_dup2(struct lwp *, void *, register_t *);
    842 
    843 int	linux_sys_pause(struct lwp *, void *, register_t *);
    844 
    845 int	sys_nanosleep(struct lwp *, void *, register_t *);
    846 
    847 int	sys_getitimer(struct lwp *, void *, register_t *);
    848 
    849 int	linux_sys_alarm(struct lwp *, void *, register_t *);
    850 
    851 int	sys_setitimer(struct lwp *, void *, register_t *);
    852 
    853 int	linux_sys_getpid(struct lwp *, void *, register_t *);
    854 
    855 int	linux_sys_socket(struct lwp *, void *, register_t *);
    856 
    857 int	linux_sys_connect(struct lwp *, void *, register_t *);
    858 
    859 int	linux_sys_accept(struct lwp *, void *, register_t *);
    860 
    861 int	linux_sys_sendto(struct lwp *, void *, register_t *);
    862 
    863 int	linux_sys_recvfrom(struct lwp *, void *, register_t *);
    864 
    865 int	linux_sys_sendmsg(struct lwp *, void *, register_t *);
    866 
    867 int	linux_sys_recvmsg(struct lwp *, void *, register_t *);
    868 
    869 int	sys_shutdown(struct lwp *, void *, register_t *);
    870 
    871 int	linux_sys_bind(struct lwp *, void *, register_t *);
    872 
    873 int	sys_listen(struct lwp *, void *, register_t *);
    874 
    875 int	linux_sys_getsockname(struct lwp *, void *, register_t *);
    876 
    877 int	linux_sys_getpeername(struct lwp *, void *, register_t *);
    878 
    879 int	linux_sys_socketpair(struct lwp *, void *, register_t *);
    880 
    881 int	linux_sys_setsockopt(struct lwp *, void *, register_t *);
    882 
    883 int	linux_sys_getsockopt(struct lwp *, void *, register_t *);
    884 
    885 int	linux_sys_clone(struct lwp *, void *, register_t *);
    886 
    887 int	sys_fork(struct lwp *, void *, register_t *);
    888 
    889 int	sys___vfork14(struct lwp *, void *, register_t *);
    890 
    891 int	sys_execve(struct lwp *, void *, register_t *);
    892 
    893 int	sys_exit(struct lwp *, void *, register_t *);
    894 
    895 int	linux_sys_wait4(struct lwp *, void *, register_t *);
    896 
    897 int	linux_sys_kill(struct lwp *, void *, register_t *);
    898 
    899 int	linux_sys_uname(struct lwp *, void *, register_t *);
    900 
    901 #ifdef SYSVSEM
    902 int	sys_semget(struct lwp *, void *, register_t *);
    903 
    904 int	sys_semop(struct lwp *, void *, register_t *);
    905 
    906 int	linux_sys_semctl(struct lwp *, void *, register_t *);
    907 
    908 #else
    909 #endif
    910 #ifdef SYSVSHM
    911 int	sys_shmdt(struct lwp *, void *, register_t *);
    912 
    913 #else
    914 #endif
    915 #ifdef SYSVMSG
    916 int	sys_msgget(struct lwp *, void *, register_t *);
    917 
    918 int	sys_msgsnd(struct lwp *, void *, register_t *);
    919 
    920 int	sys_msgrcv(struct lwp *, void *, register_t *);
    921 
    922 int	linux_sys_msgctl(struct lwp *, void *, register_t *);
    923 
    924 #else
    925 #endif
    926 int	linux_sys_fcntl(struct lwp *, void *, register_t *);
    927 
    928 int	sys_flock(struct lwp *, void *, register_t *);
    929 
    930 int	sys_fsync(struct lwp *, void *, register_t *);
    931 
    932 int	linux_sys_fdatasync(struct lwp *, void *, register_t *);
    933 
    934 int	linux_sys_truncate64(struct lwp *, void *, register_t *);
    935 
    936 int	linux_sys_ftruncate64(struct lwp *, void *, register_t *);
    937 
    938 int	linux_sys_getdents(struct lwp *, void *, register_t *);
    939 
    940 int	sys___getcwd(struct lwp *, void *, register_t *);
    941 
    942 int	sys_chdir(struct lwp *, void *, register_t *);
    943 
    944 int	sys_fchdir(struct lwp *, void *, register_t *);
    945 
    946 int	sys___posix_rename(struct lwp *, void *, register_t *);
    947 
    948 int	sys_mkdir(struct lwp *, void *, register_t *);
    949 
    950 int	sys_rmdir(struct lwp *, void *, register_t *);
    951 
    952 int	linux_sys_creat(struct lwp *, void *, register_t *);
    953 
    954 int	sys_link(struct lwp *, void *, register_t *);
    955 
    956 int	linux_sys_unlink(struct lwp *, void *, register_t *);
    957 
    958 int	sys_symlink(struct lwp *, void *, register_t *);
    959 
    960 int	sys_readlink(struct lwp *, void *, register_t *);
    961 
    962 int	sys_chmod(struct lwp *, void *, register_t *);
    963 
    964 int	sys_fchmod(struct lwp *, void *, register_t *);
    965 
    966 int	sys___posix_chown(struct lwp *, void *, register_t *);
    967 
    968 int	sys___posix_fchown(struct lwp *, void *, register_t *);
    969 
    970 int	sys___posix_lchown(struct lwp *, void *, register_t *);
    971 
    972 int	sys_umask(struct lwp *, void *, register_t *);
    973 
    974 int	linux_sys_gettimeofday(struct lwp *, void *, register_t *);
    975 
    976 int	linux_sys_getrlimit(struct lwp *, void *, register_t *);
    977 
    978 int	sys_getrusage(struct lwp *, void *, register_t *);
    979 
    980 int	linux_sys_sysinfo(struct lwp *, void *, register_t *);
    981 
    982 int	linux_sys_times(struct lwp *, void *, register_t *);
    983 
    984 int	linux_sys_ptrace(struct lwp *, void *, register_t *);
    985 
    986 int	sys_getuid(struct lwp *, void *, register_t *);
    987 
    988 int	sys_getgid(struct lwp *, void *, register_t *);
    989 
    990 int	sys_setuid(struct lwp *, void *, register_t *);
    991 
    992 int	sys_setgid(struct lwp *, void *, register_t *);
    993 
    994 int	sys_geteuid(struct lwp *, void *, register_t *);
    995 
    996 int	sys_getegid(struct lwp *, void *, register_t *);
    997 
    998 int	sys_setpgid(struct lwp *, void *, register_t *);
    999 
   1000 int	linux_sys_getppid(struct lwp *, void *, register_t *);
   1001 
   1002 int	sys_getpgrp(struct lwp *, void *, register_t *);
   1003 
   1004 int	sys_setsid(struct lwp *, void *, register_t *);
   1005 
   1006 int	sys_setreuid(struct lwp *, void *, register_t *);
   1007 
   1008 int	sys_setregid(struct lwp *, void *, register_t *);
   1009 
   1010 int	sys_getgroups(struct lwp *, void *, register_t *);
   1011 
   1012 int	sys_setgroups(struct lwp *, void *, register_t *);
   1013 
   1014 int	linux_sys_setresuid(struct lwp *, void *, register_t *);
   1015 
   1016 int	linux_sys_getresuid(struct lwp *, void *, register_t *);
   1017 
   1018 int	linux_sys_setresgid(struct lwp *, void *, register_t *);
   1019 
   1020 int	linux_sys_getresgid(struct lwp *, void *, register_t *);
   1021 
   1022 int	linux_sys_getpgid(struct lwp *, void *, register_t *);
   1023 
   1024 int	linux_sys_setfsuid(struct lwp *, void *, register_t *);
   1025 
   1026 int	linux_sys_getfsuid(struct lwp *, void *, register_t *);
   1027 
   1028 int	sys_getsid(struct lwp *, void *, register_t *);
   1029 
   1030 int	linux_sys_rt_sigpending(struct lwp *, void *, register_t *);
   1031 
   1032 int	linux_sys_rt_queueinfo(struct lwp *, void *, register_t *);
   1033 
   1034 int	linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
   1035 
   1036 int	linux_sys_sigaltstack(struct lwp *, void *, register_t *);
   1037 
   1038 int	linux_sys_utime(struct lwp *, void *, register_t *);
   1039 
   1040 int	linux_sys_mknod(struct lwp *, void *, register_t *);
   1041 
   1042 #ifdef EXEC_AOUT
   1043 int	linux_sys_uselib(struct lwp *, void *, register_t *);
   1044 
   1045 #else
   1046 #endif
   1047 int	linux_sys_personality(struct lwp *, void *, register_t *);
   1048 
   1049 int	linux_sys_statfs(struct lwp *, void *, register_t *);
   1050 
   1051 int	linux_sys_fstatfs(struct lwp *, void *, register_t *);
   1052 
   1053 int	linux_sys_getpriority(struct lwp *, void *, register_t *);
   1054 
   1055 int	sys_setpriority(struct lwp *, void *, register_t *);
   1056 
   1057 int	linux_sys_sched_setparam(struct lwp *, void *, register_t *);
   1058 
   1059 int	linux_sys_sched_getparam(struct lwp *, void *, register_t *);
   1060 
   1061 int	linux_sys_sched_setscheduler(struct lwp *, void *, register_t *);
   1062 
   1063 int	linux_sys_sched_getscheduler(struct lwp *, void *, register_t *);
   1064 
   1065 int	linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
   1066 
   1067 int	linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
   1068 
   1069 int	sys_mlock(struct lwp *, void *, register_t *);
   1070 
   1071 int	sys_munlock(struct lwp *, void *, register_t *);
   1072 
   1073 int	sys_mlockall(struct lwp *, void *, register_t *);
   1074 
   1075 int	sys_munlockall(struct lwp *, void *, register_t *);
   1076 
   1077 int	linux_sys_modify_ldt(struct lwp *, void *, register_t *);
   1078 
   1079 int	linux_sys___sysctl(struct lwp *, void *, register_t *);
   1080 
   1081 int	linux_sys_arch_prctl(struct lwp *, void *, register_t *);
   1082 
   1083 int	linux_sys_setrlimit(struct lwp *, void *, register_t *);
   1084 
   1085 int	sys_chroot(struct lwp *, void *, register_t *);
   1086 
   1087 int	sys_sync(struct lwp *, void *, register_t *);
   1088 
   1089 int	sys_acct(struct lwp *, void *, register_t *);
   1090 
   1091 int	linux_sys_settimeofday(struct lwp *, void *, register_t *);
   1092 
   1093 int	linux_sys_swapon(struct lwp *, void *, register_t *);
   1094 
   1095 int	linux_sys_swapoff(struct lwp *, void *, register_t *);
   1096 
   1097 int	linux_sys_reboot(struct lwp *, void *, register_t *);
   1098 
   1099 int	compat_43_sys_sethostname(struct lwp *, void *, register_t *);
   1100 
   1101 int	linux_sys_setdomainname(struct lwp *, void *, register_t *);
   1102 
   1103 int	linux_sys_iopl(struct lwp *, void *, register_t *);
   1104 
   1105 int	linux_sys_ioperm(struct lwp *, void *, register_t *);
   1106 
   1107 int	linux_sys_gettid(struct lwp *, void *, register_t *);
   1108 
   1109 int	linux_sys_setxattr(struct lwp *, void *, register_t *);
   1110 
   1111 int	linux_sys_lsetxattr(struct lwp *, void *, register_t *);
   1112 
   1113 int	linux_sys_fsetxattr(struct lwp *, void *, register_t *);
   1114 
   1115 int	linux_sys_getxattr(struct lwp *, void *, register_t *);
   1116 
   1117 int	linux_sys_lgetxattr(struct lwp *, void *, register_t *);
   1118 
   1119 int	linux_sys_fgetxattr(struct lwp *, void *, register_t *);
   1120 
   1121 int	linux_sys_listxattr(struct lwp *, void *, register_t *);
   1122 
   1123 int	linux_sys_llistxattr(struct lwp *, void *, register_t *);
   1124 
   1125 int	linux_sys_flistxattr(struct lwp *, void *, register_t *);
   1126 
   1127 int	linux_sys_removexattr(struct lwp *, void *, register_t *);
   1128 
   1129 int	linux_sys_lremovexattr(struct lwp *, void *, register_t *);
   1130 
   1131 int	linux_sys_fremovexattr(struct lwp *, void *, register_t *);
   1132 
   1133 int	linux_sys_tkill(struct lwp *, void *, register_t *);
   1134 
   1135 int	linux_sys_time(struct lwp *, void *, register_t *);
   1136 
   1137 int	linux_sys_futex(struct lwp *, void *, register_t *);
   1138 
   1139 int	linux_sys_sched_setaffinity(struct lwp *, void *, register_t *);
   1140 
   1141 int	linux_sys_sched_getaffinity(struct lwp *, void *, register_t *);
   1142 
   1143 int	linux_sys_getdents64(struct lwp *, void *, register_t *);
   1144 
   1145 int	linux_sys_set_tid_address(struct lwp *, void *, register_t *);
   1146 
   1147 int	linux_sys_clock_settime(struct lwp *, void *, register_t *);
   1148 
   1149 int	linux_sys_clock_gettime(struct lwp *, void *, register_t *);
   1150 
   1151 int	linux_sys_clock_getres(struct lwp *, void *, register_t *);
   1152 
   1153 int	linux_sys_clock_nanosleep(struct lwp *, void *, register_t *);
   1154 
   1155 int	linux_sys_exit_group(struct lwp *, void *, register_t *);
   1156 
   1157 int	linux_sys_tgkill(struct lwp *, void *, register_t *);
   1158 
   1159 int	linux_sys_nosys(struct lwp *, void *, register_t *);
   1160 
   1161 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
   1162