Home | History | Annotate | Line # | Download | only in m68k
linux_syscallargs.h revision 1.7
      1 /*	$NetBSD: linux_syscallargs.h,v 1.7 1999/05/14 18:44:15 thorpej 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.7 1999/05/14 18:43:58 thorpej Exp
      8  */
      9 
     10 #ifndef _LINUX_SYS__SYSCALLARGS_H_
     11 #define _LINUX_SYS__SYSCALLARGS_H_
     12 
     13 #ifdef	syscallarg
     14 #undef	syscallarg
     15 #endif
     16 
     17 #define	syscallarg(x)								\
     18 		union {								\
     19 			register_t pad;						\
     20 			struct { x datum; } le;					\
     21 			struct {						\
     22 				int8_t pad[ (sizeof (register_t) < sizeof (x))	\
     23 					? 0					\
     24 					: sizeof (register_t) - sizeof (x)];	\
     25 				x datum;					\
     26 			} be;							\
     27 		}
     28 
     29 struct linux_sys_open_args {
     30 	syscallarg(const char *) path;
     31 	syscallarg(int) flags;
     32 	syscallarg(int) mode;
     33 };
     34 
     35 struct linux_sys_waitpid_args {
     36 	syscallarg(int) pid;
     37 	syscallarg(int *) status;
     38 	syscallarg(int) options;
     39 };
     40 
     41 struct linux_sys_creat_args {
     42 	syscallarg(const char *) path;
     43 	syscallarg(int) mode;
     44 };
     45 
     46 struct linux_sys_unlink_args {
     47 	syscallarg(const char *) path;
     48 };
     49 
     50 struct linux_sys_execve_args {
     51 	syscallarg(const char *) path;
     52 	syscallarg(char **) argp;
     53 	syscallarg(char **) envp;
     54 };
     55 
     56 struct linux_sys_chdir_args {
     57 	syscallarg(const char *) path;
     58 };
     59 
     60 struct linux_sys_time_args {
     61 	syscallarg(linux_time_t *) t;
     62 };
     63 
     64 struct linux_sys_mknod_args {
     65 	syscallarg(const char *) path;
     66 	syscallarg(int) mode;
     67 	syscallarg(int) dev;
     68 };
     69 
     70 struct linux_sys_chmod_args {
     71 	syscallarg(const char *) path;
     72 	syscallarg(int) mode;
     73 };
     74 
     75 struct linux_sys_chown_args {
     76 	syscallarg(const char *) path;
     77 	syscallarg(int) uid;
     78 	syscallarg(int) gid;
     79 };
     80 
     81 struct linux_sys_alarm_args {
     82 	syscallarg(unsigned int) secs;
     83 };
     84 
     85 struct linux_sys_utime_args {
     86 	syscallarg(const char *) path;
     87 	syscallarg(struct linux_utimbuf *) times;
     88 };
     89 
     90 struct linux_sys_access_args {
     91 	syscallarg(const char *) path;
     92 	syscallarg(int) flags;
     93 };
     94 
     95 struct linux_sys_nice_args {
     96 	syscallarg(int) incr;
     97 };
     98 
     99 struct linux_sys_kill_args {
    100 	syscallarg(int) pid;
    101 	syscallarg(int) signum;
    102 };
    103 
    104 struct linux_sys_rename_args {
    105 	syscallarg(const char *) from;
    106 	syscallarg(const char *) to;
    107 };
    108 
    109 struct linux_sys_mkdir_args {
    110 	syscallarg(const char *) path;
    111 	syscallarg(int) mode;
    112 };
    113 
    114 struct linux_sys_rmdir_args {
    115 	syscallarg(const char *) path;
    116 };
    117 
    118 struct linux_sys_pipe_args {
    119 	syscallarg(int *) pfds;
    120 };
    121 
    122 struct linux_sys_times_args {
    123 	syscallarg(struct times *) tms;
    124 };
    125 
    126 struct linux_sys_brk_args {
    127 	syscallarg(char *) nsize;
    128 };
    129 
    130 struct linux_sys_signal_args {
    131 	syscallarg(int) sig;
    132 	syscallarg(linux_handler_t) handler;
    133 };
    134 
    135 struct linux_sys_ioctl_args {
    136 	syscallarg(int) fd;
    137 	syscallarg(u_long) com;
    138 	syscallarg(caddr_t) data;
    139 };
    140 
    141 struct linux_sys_fcntl_args {
    142 	syscallarg(int) fd;
    143 	syscallarg(int) cmd;
    144 	syscallarg(void *) arg;
    145 };
    146 
    147 struct linux_sys_sigaction_args {
    148 	syscallarg(int) signum;
    149 	syscallarg(const struct linux_old_sigaction *) nsa;
    150 	syscallarg(struct linux_old_sigaction *) osa;
    151 };
    152 
    153 struct linux_sys_sigsetmask_args {
    154 	syscallarg(linux_old_sigset_t) mask;
    155 };
    156 
    157 struct linux_sys_setreuid_args {
    158 	syscallarg(int) ruid;
    159 	syscallarg(int) euid;
    160 };
    161 
    162 struct linux_sys_setregid_args {
    163 	syscallarg(int) rgid;
    164 	syscallarg(int) egid;
    165 };
    166 
    167 struct linux_sys_sigsuspend_args {
    168 	syscallarg(caddr_t) restart;
    169 	syscallarg(int) oldmask;
    170 	syscallarg(int) mask;
    171 };
    172 
    173 struct linux_sys_sigpending_args {
    174 	syscallarg(linux_old_sigset_t *) set;
    175 };
    176 
    177 struct linux_sys_oldselect_args {
    178 	syscallarg(struct linux_oldselect *) lsp;
    179 };
    180 
    181 struct linux_sys_symlink_args {
    182 	syscallarg(const char *) path;
    183 	syscallarg(const char *) to;
    184 };
    185 
    186 struct linux_sys_readlink_args {
    187 	syscallarg(const char *) name;
    188 	syscallarg(char *) buf;
    189 	syscallarg(int) count;
    190 };
    191 
    192 struct linux_sys_uselib_args {
    193 	syscallarg(const char *) path;
    194 };
    195 
    196 struct linux_sys_readdir_args {
    197 	syscallarg(int) fd;
    198 	syscallarg(caddr_t) dent;
    199 	syscallarg(unsigned int) count;
    200 };
    201 
    202 struct linux_sys_old_mmap_args {
    203 	syscallarg(struct linux_oldmmap *) lmp;
    204 };
    205 
    206 struct linux_sys_truncate_args {
    207 	syscallarg(const char *) path;
    208 	syscallarg(long) length;
    209 };
    210 
    211 struct linux_sys_fchown_args {
    212 	syscallarg(int) fd;
    213 	syscallarg(int) uid;
    214 	syscallarg(int) gid;
    215 };
    216 
    217 struct linux_sys_statfs_args {
    218 	syscallarg(const char *) path;
    219 	syscallarg(struct linux_statfs *) sp;
    220 };
    221 
    222 struct linux_sys_fstatfs_args {
    223 	syscallarg(int) fd;
    224 	syscallarg(struct linux_statfs *) sp;
    225 };
    226 
    227 struct linux_sys_socketcall_args {
    228 	syscallarg(int) what;
    229 	syscallarg(void *) args;
    230 };
    231 
    232 struct linux_sys_stat_args {
    233 	syscallarg(const char *) path;
    234 	syscallarg(struct linux_stat *) sp;
    235 };
    236 
    237 struct linux_sys_lstat_args {
    238 	syscallarg(const char *) path;
    239 	syscallarg(struct linux_stat *) sp;
    240 };
    241 
    242 struct linux_sys_fstat_args {
    243 	syscallarg(int) fd;
    244 	syscallarg(struct linux_stat *) sp;
    245 };
    246 
    247 struct linux_sys_wait4_args {
    248 	syscallarg(int) pid;
    249 	syscallarg(int *) status;
    250 	syscallarg(int) options;
    251 	syscallarg(struct rusage *) rusage;
    252 };
    253 
    254 struct linux_sys_ipc_args {
    255 	syscallarg(int) what;
    256 	syscallarg(int) a1;
    257 	syscallarg(int) a2;
    258 	syscallarg(int) a3;
    259 	syscallarg(caddr_t) ptr;
    260 };
    261 
    262 struct linux_sys_clone_args {
    263 	syscallarg(int) flags;
    264 	syscallarg(void *) stack;
    265 };
    266 
    267 struct linux_sys_uname_args {
    268 	syscallarg(struct linux_utsname *) up;
    269 };
    270 
    271 struct linux_sys_cacheflush_args {
    272 	syscallarg(unsigned long) addr;
    273 	syscallarg(int) scope;
    274 	syscallarg(int) cache;
    275 	syscallarg(unsigned long) len;
    276 };
    277 
    278 struct linux_sys_sigprocmask_args {
    279 	syscallarg(int) how;
    280 	syscallarg(const linux_old_sigset_t *) set;
    281 	syscallarg(linux_old_sigset_t *) oset;
    282 };
    283 
    284 struct linux_sys_getpgid_args {
    285 	syscallarg(int) pid;
    286 };
    287 
    288 struct linux_sys_personality_args {
    289 	syscallarg(int) per;
    290 };
    291 
    292 struct linux_sys_llseek_args {
    293 	syscallarg(int) fd;
    294 	syscallarg(u_int32_t) ohigh;
    295 	syscallarg(u_int32_t) olow;
    296 	syscallarg(caddr_t) res;
    297 	syscallarg(int) whence;
    298 };
    299 
    300 struct linux_sys_getdents_args {
    301 	syscallarg(int) fd;
    302 	syscallarg(struct linux_dirent *) dent;
    303 	syscallarg(unsigned int) count;
    304 };
    305 
    306 struct linux_sys_select_args {
    307 	syscallarg(int) nfds;
    308 	syscallarg(fd_set *) readfds;
    309 	syscallarg(fd_set *) writefds;
    310 	syscallarg(fd_set *) exceptfds;
    311 	syscallarg(struct timeval *) timeout;
    312 };
    313 
    314 struct linux_sys_msync_args {
    315 	syscallarg(caddr_t) addr;
    316 	syscallarg(int) len;
    317 	syscallarg(int) fl;
    318 };
    319 
    320 struct linux_sys_fdatasync_args {
    321 	syscallarg(int) fd;
    322 };
    323 
    324 struct linux_sys___sysctl_args {
    325 	syscallarg(struct linux___sysctl *) lsp;
    326 };
    327 
    328 struct linux_sys_mremap_args {
    329 	syscallarg(void *) old_address;
    330 	syscallarg(size_t) old_size;
    331 	syscallarg(size_t) new_size;
    332 	syscallarg(u_long) flags;
    333 };
    334 
    335 struct linux_sys_setresuid_args {
    336 	syscallarg(uid_t) ruid;
    337 	syscallarg(uid_t) euid;
    338 	syscallarg(uid_t) suid;
    339 };
    340 
    341 struct linux_sys_getresuid_args {
    342 	syscallarg(uid_t *) ruid;
    343 	syscallarg(uid_t *) euid;
    344 	syscallarg(uid_t *) suid;
    345 };
    346 
    347 struct linux_sys_setresgid_args {
    348 	syscallarg(gid_t) rgid;
    349 	syscallarg(gid_t) egid;
    350 	syscallarg(gid_t) sgid;
    351 };
    352 
    353 struct linux_sys_getresgid_args {
    354 	syscallarg(gid_t *) rgid;
    355 	syscallarg(gid_t *) egid;
    356 	syscallarg(gid_t *) sgid;
    357 };
    358 
    359 struct linux_sys_rt_sigaction_args {
    360 	syscallarg(int) signum;
    361 	syscallarg(const struct linux_sigaction *) nsa;
    362 	syscallarg(struct linux_sigaction *) osa;
    363 	syscallarg(size_t) sigsetsize;
    364 };
    365 
    366 struct linux_sys_rt_sigprocmask_args {
    367 	syscallarg(int) how;
    368 	syscallarg(const linux_sigset_t *) set;
    369 	syscallarg(linux_sigset_t *) oset;
    370 	syscallarg(size_t) sigsetsize;
    371 };
    372 
    373 struct linux_sys_rt_sigpending_args {
    374 	syscallarg(linux_sigset_t *) set;
    375 	syscallarg(size_t) sigsetsize;
    376 };
    377 
    378 struct linux_sys_rt_queueinfo_args {
    379 	syscallarg(int) pid;
    380 	syscallarg(int) signum;
    381 	syscallarg(void *) uinfo;
    382 };
    383 
    384 struct linux_sys_rt_sigsuspend_args {
    385 	syscallarg(linux_sigset_t *) unewset;
    386 	syscallarg(size_t) sigsetsize;
    387 };
    388 
    389 struct linux_sys_lchown_args {
    390 	syscallarg(const char *) path;
    391 	syscallarg(int) uid;
    392 	syscallarg(int) gid;
    393 };
    394 
    395 /*
    396  * System call prototypes.
    397  */
    398 
    399 int	sys_nosys	__P((struct proc *, void *, register_t *));
    400 int	sys_exit	__P((struct proc *, void *, register_t *));
    401 int	sys_fork	__P((struct proc *, void *, register_t *));
    402 int	sys_read	__P((struct proc *, void *, register_t *));
    403 int	sys_write	__P((struct proc *, void *, register_t *));
    404 int	linux_sys_open	__P((struct proc *, void *, register_t *));
    405 int	sys_close	__P((struct proc *, void *, register_t *));
    406 int	linux_sys_waitpid	__P((struct proc *, void *, register_t *));
    407 int	linux_sys_creat	__P((struct proc *, void *, register_t *));
    408 int	sys_link	__P((struct proc *, void *, register_t *));
    409 int	linux_sys_unlink	__P((struct proc *, void *, register_t *));
    410 int	linux_sys_execve	__P((struct proc *, void *, register_t *));
    411 int	linux_sys_chdir	__P((struct proc *, void *, register_t *));
    412 int	linux_sys_time	__P((struct proc *, void *, register_t *));
    413 int	linux_sys_mknod	__P((struct proc *, void *, register_t *));
    414 int	linux_sys_chmod	__P((struct proc *, void *, register_t *));
    415 int	linux_sys_chown	__P((struct proc *, void *, register_t *));
    416 #if !defined(_KERNEL) || defined(COMPAT_43)
    417 int	compat_43_sys_lseek	__P((struct proc *, void *, register_t *));
    418 #else
    419 #endif
    420 int	sys_getpid	__P((struct proc *, void *, register_t *));
    421 int	sys_setuid	__P((struct proc *, void *, register_t *));
    422 int	sys_getuid	__P((struct proc *, void *, register_t *));
    423 int	linux_sys_alarm	__P((struct proc *, void *, register_t *));
    424 int	linux_sys_pause	__P((struct proc *, void *, register_t *));
    425 int	linux_sys_utime	__P((struct proc *, void *, register_t *));
    426 int	linux_sys_access	__P((struct proc *, void *, register_t *));
    427 int	linux_sys_nice	__P((struct proc *, void *, register_t *));
    428 int	sys_sync	__P((struct proc *, void *, register_t *));
    429 int	linux_sys_kill	__P((struct proc *, void *, register_t *));
    430 int	linux_sys_rename	__P((struct proc *, void *, register_t *));
    431 int	linux_sys_mkdir	__P((struct proc *, void *, register_t *));
    432 int	linux_sys_rmdir	__P((struct proc *, void *, register_t *));
    433 int	sys_dup	__P((struct proc *, void *, register_t *));
    434 int	linux_sys_pipe	__P((struct proc *, void *, register_t *));
    435 int	linux_sys_times	__P((struct proc *, void *, register_t *));
    436 int	linux_sys_brk	__P((struct proc *, void *, register_t *));
    437 int	sys_setgid	__P((struct proc *, void *, register_t *));
    438 int	sys_getgid	__P((struct proc *, void *, register_t *));
    439 int	linux_sys_signal	__P((struct proc *, void *, register_t *));
    440 int	sys_geteuid	__P((struct proc *, void *, register_t *));
    441 int	sys_getegid	__P((struct proc *, void *, register_t *));
    442 int	sys_acct	__P((struct proc *, void *, register_t *));
    443 int	linux_sys_ioctl	__P((struct proc *, void *, register_t *));
    444 int	linux_sys_fcntl	__P((struct proc *, void *, register_t *));
    445 int	sys_setpgid	__P((struct proc *, void *, register_t *));
    446 int	sys_umask	__P((struct proc *, void *, register_t *));
    447 int	sys_chroot	__P((struct proc *, void *, register_t *));
    448 int	sys_dup2	__P((struct proc *, void *, register_t *));
    449 int	sys_getppid	__P((struct proc *, void *, register_t *));
    450 int	sys_getpgrp	__P((struct proc *, void *, register_t *));
    451 int	sys_setsid	__P((struct proc *, void *, register_t *));
    452 int	linux_sys_sigaction	__P((struct proc *, void *, register_t *));
    453 int	linux_sys_siggetmask	__P((struct proc *, void *, register_t *));
    454 int	linux_sys_sigsetmask	__P((struct proc *, void *, register_t *));
    455 int	linux_sys_setreuid	__P((struct proc *, void *, register_t *));
    456 int	linux_sys_setregid	__P((struct proc *, void *, register_t *));
    457 int	linux_sys_sigsuspend	__P((struct proc *, void *, register_t *));
    458 int	linux_sys_sigpending	__P((struct proc *, void *, register_t *));
    459 #if !defined(_KERNEL) || defined(COMPAT_43)
    460 int	compat_43_sys_sethostname	__P((struct proc *, void *, register_t *));
    461 int	compat_43_sys_setrlimit	__P((struct proc *, void *, register_t *));
    462 int	compat_43_sys_getrlimit	__P((struct proc *, void *, register_t *));
    463 #else
    464 #endif
    465 int	sys_getrusage	__P((struct proc *, void *, register_t *));
    466 int	sys_gettimeofday	__P((struct proc *, void *, register_t *));
    467 int	sys_settimeofday	__P((struct proc *, void *, register_t *));
    468 int	sys_getgroups	__P((struct proc *, void *, register_t *));
    469 int	sys_setgroups	__P((struct proc *, void *, register_t *));
    470 int	linux_sys_oldselect	__P((struct proc *, void *, register_t *));
    471 int	linux_sys_symlink	__P((struct proc *, void *, register_t *));
    472 #if !defined(_KERNEL) || defined(COMPAT_43)
    473 int	compat_43_sys_lstat	__P((struct proc *, void *, register_t *));
    474 #else
    475 #endif
    476 int	linux_sys_readlink	__P((struct proc *, void *, register_t *));
    477 int	linux_sys_uselib	__P((struct proc *, void *, register_t *));
    478 #if !defined(_KERNEL) || defined(COMPAT_12)
    479 int	compat_12_sys_swapon	__P((struct proc *, void *, register_t *));
    480 #else
    481 #endif
    482 int	sys_reboot	__P((struct proc *, void *, register_t *));
    483 int	linux_sys_readdir	__P((struct proc *, void *, register_t *));
    484 int	linux_sys_old_mmap	__P((struct proc *, void *, register_t *));
    485 int	sys_munmap	__P((struct proc *, void *, register_t *));
    486 int	linux_sys_truncate	__P((struct proc *, void *, register_t *));
    487 #if !defined(_KERNEL) || defined(COMPAT_43)
    488 int	compat_43_sys_ftruncate	__P((struct proc *, void *, register_t *));
    489 #else
    490 #endif
    491 int	sys_fchmod	__P((struct proc *, void *, register_t *));
    492 int	linux_sys_fchown	__P((struct proc *, void *, register_t *));
    493 int	sys_getpriority	__P((struct proc *, void *, register_t *));
    494 int	sys_setpriority	__P((struct proc *, void *, register_t *));
    495 int	sys_profil	__P((struct proc *, void *, register_t *));
    496 int	linux_sys_statfs	__P((struct proc *, void *, register_t *));
    497 int	linux_sys_fstatfs	__P((struct proc *, void *, register_t *));
    498 int	linux_sys_socketcall	__P((struct proc *, void *, register_t *));
    499 int	sys_setitimer	__P((struct proc *, void *, register_t *));
    500 int	sys_getitimer	__P((struct proc *, void *, register_t *));
    501 int	linux_sys_stat	__P((struct proc *, void *, register_t *));
    502 int	linux_sys_lstat	__P((struct proc *, void *, register_t *));
    503 int	linux_sys_fstat	__P((struct proc *, void *, register_t *));
    504 int	linux_sys_wait4	__P((struct proc *, void *, register_t *));
    505 int	linux_sys_ipc	__P((struct proc *, void *, register_t *));
    506 int	sys_fsync	__P((struct proc *, void *, register_t *));
    507 int	linux_sys_sigreturn	__P((struct proc *, void *, register_t *));
    508 int	linux_sys_clone	__P((struct proc *, void *, register_t *));
    509 #if !defined(_KERNEL) || defined(COMPAT_09)
    510 int	compat_09_sys_setdomainname	__P((struct proc *, void *, register_t *));
    511 #else
    512 #endif
    513 int	linux_sys_uname	__P((struct proc *, void *, register_t *));
    514 int	linux_sys_cacheflush	__P((struct proc *, void *, register_t *));
    515 int	sys_mprotect	__P((struct proc *, void *, register_t *));
    516 int	linux_sys_sigprocmask	__P((struct proc *, void *, register_t *));
    517 int	linux_sys_getpgid	__P((struct proc *, void *, register_t *));
    518 int	sys_fchdir	__P((struct proc *, void *, register_t *));
    519 int	linux_sys_personality	__P((struct proc *, void *, register_t *));
    520 int	linux_sys_llseek	__P((struct proc *, void *, register_t *));
    521 int	linux_sys_getdents	__P((struct proc *, void *, register_t *));
    522 int	linux_sys_select	__P((struct proc *, void *, register_t *));
    523 int	sys_flock	__P((struct proc *, void *, register_t *));
    524 int	linux_sys_msync	__P((struct proc *, void *, register_t *));
    525 int	sys_readv	__P((struct proc *, void *, register_t *));
    526 int	sys_writev	__P((struct proc *, void *, register_t *));
    527 int	sys_getsid	__P((struct proc *, void *, register_t *));
    528 int	linux_sys_fdatasync	__P((struct proc *, void *, register_t *));
    529 int	linux_sys___sysctl	__P((struct proc *, void *, register_t *));
    530 int	sys_mlock	__P((struct proc *, void *, register_t *));
    531 int	sys_munlock	__P((struct proc *, void *, register_t *));
    532 int	sys_nanosleep	__P((struct proc *, void *, register_t *));
    533 int	linux_sys_mremap	__P((struct proc *, void *, register_t *));
    534 int	linux_sys_setresuid	__P((struct proc *, void *, register_t *));
    535 int	linux_sys_getresuid	__P((struct proc *, void *, register_t *));
    536 int	sys_poll	__P((struct proc *, void *, register_t *));
    537 int	linux_sys_setresgid	__P((struct proc *, void *, register_t *));
    538 int	linux_sys_getresgid	__P((struct proc *, void *, register_t *));
    539 int	linux_sys_rt_sigreturn	__P((struct proc *, void *, register_t *));
    540 int	linux_sys_rt_sigaction	__P((struct proc *, void *, register_t *));
    541 int	linux_sys_rt_sigprocmask	__P((struct proc *, void *, register_t *));
    542 int	linux_sys_rt_sigpending	__P((struct proc *, void *, register_t *));
    543 int	linux_sys_rt_queueinfo	__P((struct proc *, void *, register_t *));
    544 int	linux_sys_rt_sigsuspend	__P((struct proc *, void *, register_t *));
    545 int	sys_pread	__P((struct proc *, void *, register_t *));
    546 int	sys_pwrite	__P((struct proc *, void *, register_t *));
    547 int	linux_sys_lchown	__P((struct proc *, void *, register_t *));
    548 int	sys___getcwd	__P((struct proc *, void *, register_t *));
    549 int	sys___vfork14	__P((struct proc *, void *, register_t *));
    550 #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
    551