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