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