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