Home | History | Annotate | Line # | Download | only in alpha
linux_syscallargs.h revision 1.5
      1 /*	$NetBSD: linux_syscallargs.h,v 1.5 1998/10/19 22:25:55 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.4 1998/10/19 22:23:32 tron Exp
      8  */
      9 
     10 #ifdef	syscallarg
     11 #undef	syscallarg
     12 #endif
     13 
     14 #define	syscallarg(x)								\
     15 		union {								\
     16 			register_t pad;						\
     17 			struct { x datum; } le;					\
     18 			struct {						\
     19 				int8_t pad[ (sizeof (register_t) < sizeof (x))	\
     20 					? 0					\
     21 					: sizeof (register_t) - sizeof (x)];	\
     22 				x datum;					\
     23 			} be;							\
     24 		}
     25 
     26 struct linux_sys_creat_args {
     27 	syscallarg(char *) path;
     28 	syscallarg(int) mode;
     29 };
     30 
     31 struct linux_sys_unlink_args {
     32 	syscallarg(char *) path;
     33 };
     34 
     35 struct linux_sys_chdir_args {
     36 	syscallarg(char *) path;
     37 };
     38 
     39 struct linux_sys_mknod_args {
     40 	syscallarg(char *) path;
     41 	syscallarg(int) mode;
     42 	syscallarg(int) dev;
     43 };
     44 
     45 struct linux_sys_chmod_args {
     46 	syscallarg(char *) path;
     47 	syscallarg(int) mode;
     48 };
     49 
     50 struct linux_sys_chown_args {
     51 	syscallarg(char *) path;
     52 	syscallarg(int) uid;
     53 	syscallarg(int) gid;
     54 };
     55 
     56 struct linux_sys_brk_args {
     57 	syscallarg(char *) nsize;
     58 };
     59 
     60 struct linux_sys_access_args {
     61 	syscallarg(char *) path;
     62 	syscallarg(int) flags;
     63 };
     64 
     65 struct linux_sys_kill_args {
     66 	syscallarg(int) pid;
     67 	syscallarg(int) signum;
     68 };
     69 
     70 struct linux_sys_open_args {
     71 	syscallarg(char *) path;
     72 	syscallarg(int) flags;
     73 	syscallarg(int) mode;
     74 };
     75 
     76 struct linux_sys_sigpending_args {
     77 	syscallarg(linux_old_sigset_t *) set;
     78 };
     79 
     80 struct linux_sys_ioctl_args {
     81 	syscallarg(int) fd;
     82 	syscallarg(u_long) com;
     83 	syscallarg(caddr_t) data;
     84 };
     85 
     86 struct linux_sys_symlink_args {
     87 	syscallarg(char *) path;
     88 	syscallarg(char *) to;
     89 };
     90 
     91 struct linux_sys_readlink_args {
     92 	syscallarg(char *) name;
     93 	syscallarg(char *) buf;
     94 	syscallarg(int) count;
     95 };
     96 
     97 struct linux_sys_execve_args {
     98 	syscallarg(char *) path;
     99 	syscallarg(char **) argp;
    100 	syscallarg(char **) envp;
    101 };
    102 
    103 struct linux_sys_stat_args {
    104 	syscallarg(char *) path;
    105 	syscallarg(struct linux_stat *) sp;
    106 };
    107 
    108 struct linux_sys_lstat_args {
    109 	syscallarg(char *) path;
    110 	syscallarg(struct linux_stat *) sp;
    111 };
    112 
    113 struct linux_sys_fstat_args {
    114 	syscallarg(int) fd;
    115 	syscallarg(struct linux_stat *) sp;
    116 };
    117 
    118 struct linux_sys_fcntl_args {
    119 	syscallarg(int) fd;
    120 	syscallarg(int) cmd;
    121 	syscallarg(void *) arg;
    122 };
    123 
    124 struct linux_sys_socket_args {
    125 	syscallarg(int) domain;
    126 	syscallarg(int) type;
    127 	syscallarg(int) protocol;
    128 };
    129 
    130 struct linux_sys_sigreturn_args {
    131 	syscallarg(struct linux_sigframe *) sfp;
    132 };
    133 
    134 struct linux_sys_setsockopt_args {
    135 	syscallarg(int) s;
    136 	syscallarg(int) level;
    137 	syscallarg(int) optname;
    138 	syscallarg(void *) optval;
    139 	syscallarg(int) optlen;
    140 };
    141 
    142 struct linux_sys_sigsuspend_args {
    143 	syscallarg(caddr_t) restart;
    144 	syscallarg(int) oldmask;
    145 	syscallarg(int) mask;
    146 };
    147 
    148 struct linux_sys_getsockopt_args {
    149 	syscallarg(int) s;
    150 	syscallarg(int) level;
    151 	syscallarg(int) optname;
    152 	syscallarg(void *) optval;
    153 	syscallarg(int *) optlen;
    154 };
    155 
    156 struct linux_sys_fchown_args {
    157 	syscallarg(int) fd;
    158 	syscallarg(int) uid;
    159 	syscallarg(int) gid;
    160 };
    161 
    162 struct linux_sys_recvfrom_args {
    163 	syscallarg(int) s;
    164 	syscallarg(void *) buf;
    165 	syscallarg(int) len;
    166 	syscallarg(int) flags;
    167 	syscallarg(struct sockaddr *) from;
    168 	syscallarg(int *) fromlen;
    169 };
    170 
    171 struct linux_sys_setreuid_args {
    172 	syscallarg(int) ruid;
    173 	syscallarg(int) euid;
    174 };
    175 
    176 struct linux_sys_setregid_args {
    177 	syscallarg(int) rgid;
    178 	syscallarg(int) egid;
    179 };
    180 
    181 struct linux_sys_rename_args {
    182 	syscallarg(char *) from;
    183 	syscallarg(char *) to;
    184 };
    185 
    186 struct linux_sys_truncate_args {
    187 	syscallarg(char *) path;
    188 	syscallarg(long) length;
    189 };
    190 
    191 struct linux_sys_sendto_args {
    192 	syscallarg(int) s;
    193 	syscallarg(void *) msg;
    194 	syscallarg(int) len;
    195 	syscallarg(int) flags;
    196 	syscallarg(struct sockaddr *) to;
    197 	syscallarg(int) tolen;
    198 };
    199 
    200 struct linux_sys_socketpair_args {
    201 	syscallarg(int) domain;
    202 	syscallarg(int) type;
    203 	syscallarg(int) protocol;
    204 	syscallarg(int *) rsv;
    205 };
    206 
    207 struct linux_sys_mkdir_args {
    208 	syscallarg(char *) path;
    209 	syscallarg(int) mode;
    210 };
    211 
    212 struct linux_sys_rmdir_args {
    213 	syscallarg(char *) path;
    214 };
    215 
    216 struct linux_sys_sigaction_args {
    217 	syscallarg(int) signum;
    218 	syscallarg(const struct linux_old_sigaction *) nsa;
    219 	syscallarg(struct linux_old_sigaction *) osa;
    220 };
    221 
    222 struct linux_sys_olduname_args {
    223 	syscallarg(struct linux_old_utsname *) up;
    224 };
    225 
    226 struct linux_sys_lchown_args {
    227 	syscallarg(char *) path;
    228 	syscallarg(int) uid;
    229 	syscallarg(int) gid;
    230 };
    231 
    232 struct linux_sys_msync_args {
    233 	syscallarg(caddr_t) addr;
    234 	syscallarg(int) len;
    235 	syscallarg(int) fl;
    236 };
    237 
    238 struct linux_sys_getpgid_args {
    239 	syscallarg(int) pid;
    240 };
    241 
    242 struct linux_sys_fdatasync_args {
    243 	syscallarg(int) fd;
    244 };
    245 
    246 struct linux_sys_getdents_args {
    247 	syscallarg(int) fd;
    248 	syscallarg(struct linux_dirent *) dent;
    249 	syscallarg(unsigned int) count;
    250 };
    251 
    252 struct linux_sys_uselib_args {
    253 	syscallarg(char *) path;
    254 };
    255 
    256 struct linux_sys___sysctl_args {
    257 	syscallarg(struct linux___sysctl *) lsp;
    258 };
    259 
    260 struct linux_sys_times_args {
    261 	syscallarg(struct times *) tms;
    262 };
    263 
    264 struct linux_sys_personality_args {
    265 	syscallarg(int) per;
    266 };
    267 
    268 struct linux_sys_statfs_args {
    269 	syscallarg(char *) path;
    270 	syscallarg(struct linux_statfs *) sp;
    271 };
    272 
    273 struct linux_sys_fstatfs_args {
    274 	syscallarg(int) fd;
    275 	syscallarg(struct linux_statfs *) sp;
    276 };
    277 
    278 struct linux_sys_uname_args {
    279 	syscallarg(struct linux_utsname *) up;
    280 };
    281 
    282 struct linux_sys_mremap_args {
    283 	syscallarg(void *) old_address;
    284 	syscallarg(size_t) old_size;
    285 	syscallarg(size_t) new_size;
    286 	syscallarg(u_long) flags;
    287 };
    288 
    289 struct linux_sys_rt_sigreturn_args {
    290 	syscallarg(struct linux_rt_sigframe *) sfp;
    291 };
    292 
    293 struct linux_sys_rt_sigaction_args {
    294 	syscallarg(int) signum;
    295 	syscallarg(const struct linux_sigaction *) nsa;
    296 	syscallarg(struct linux_sigaction *) osa;
    297 	syscallarg(size_t) sigsetsize;
    298 };
    299 
    300 struct linux_sys_rt_sigprocmask_args {
    301 	syscallarg(int) how;
    302 	syscallarg(const linux_sigset_t *) set;
    303 	syscallarg(linux_sigset_t *) oset;
    304 	syscallarg(size_t) sigsetsize;
    305 };
    306 
    307 struct linux_sys_rt_sigpending_args {
    308 	syscallarg(linux_sigset_t *) set;
    309 	syscallarg(size_t) sigsetsize;
    310 };
    311 
    312 struct linux_sys_rt_queueinfo_args {
    313 	syscallarg(int) pid;
    314 	syscallarg(int) signum;
    315 	syscallarg(linux_siginfo_t *) uinfo;
    316 };
    317 
    318 struct linux_sys_rt_sigsuspend_args {
    319 	syscallarg(linux_sigset_t *) unewset;
    320 	syscallarg(size_t) sigsetsize;
    321 };
    322 
    323 struct linux_sys_select_args {
    324 	syscallarg(int) nfds;
    325 	syscallarg(fd_set *) readfds;
    326 	syscallarg(fd_set *) writefds;
    327 	syscallarg(fd_set *) exceptfds;
    328 	syscallarg(struct timeval *) timeout;
    329 };
    330 
    331 struct linux_sys_wait4_args {
    332 	syscallarg(int) pid;
    333 	syscallarg(int *) status;
    334 	syscallarg(int) options;
    335 	syscallarg(struct rusage *) rusage;
    336 };
    337 
    338 /*
    339  * System call prototypes.
    340  */
    341 
    342 int	sys_nosys	__P((struct proc *, void *, register_t *));
    343 int	sys_exit	__P((struct proc *, void *, register_t *));
    344 int	sys_fork	__P((struct proc *, void *, register_t *));
    345 int	sys_read	__P((struct proc *, void *, register_t *));
    346 int	sys_write	__P((struct proc *, void *, register_t *));
    347 int	sys_close	__P((struct proc *, void *, register_t *));
    348 int	linux_sys_creat	__P((struct proc *, void *, register_t *));
    349 int	sys_link	__P((struct proc *, void *, register_t *));
    350 int	linux_sys_unlink	__P((struct proc *, void *, register_t *));
    351 int	linux_sys_chdir	__P((struct proc *, void *, register_t *));
    352 int	sys_fchdir	__P((struct proc *, void *, register_t *));
    353 int	linux_sys_mknod	__P((struct proc *, void *, register_t *));
    354 int	linux_sys_chmod	__P((struct proc *, void *, register_t *));
    355 int	linux_sys_chown	__P((struct proc *, void *, register_t *));
    356 int	linux_sys_brk	__P((struct proc *, void *, register_t *));
    357 int	compat_43_sys_lseek	__P((struct proc *, void *, register_t *));
    358 int	sys_getpid	__P((struct proc *, void *, register_t *));
    359 int	sys_setuid	__P((struct proc *, void *, register_t *));
    360 int	sys_getuid	__P((struct proc *, void *, register_t *));
    361 int	linux_sys_access	__P((struct proc *, void *, register_t *));
    362 int	sys_sync	__P((struct proc *, void *, register_t *));
    363 int	linux_sys_kill	__P((struct proc *, void *, register_t *));
    364 int	sys_setpgid	__P((struct proc *, void *, register_t *));
    365 int	sys_dup	__P((struct proc *, void *, register_t *));
    366 int	linux_sys_pipe	__P((struct proc *, void *, register_t *));
    367 int	linux_sys_open	__P((struct proc *, void *, register_t *));
    368 int	sys_getgid	__P((struct proc *, void *, register_t *));
    369 int	sys_acct	__P((struct proc *, void *, register_t *));
    370 int	linux_sys_sigpending	__P((struct proc *, void *, register_t *));
    371 int	linux_sys_ioctl	__P((struct proc *, void *, register_t *));
    372 int	linux_sys_symlink	__P((struct proc *, void *, register_t *));
    373 int	linux_sys_readlink	__P((struct proc *, void *, register_t *));
    374 int	linux_sys_execve	__P((struct proc *, void *, register_t *));
    375 int	sys_umask	__P((struct proc *, void *, register_t *));
    376 int	sys_chroot	__P((struct proc *, void *, register_t *));
    377 int	sys_getpgrp	__P((struct proc *, void *, register_t *));
    378 int	compat_43_sys_getpagesize	__P((struct proc *, void *, register_t *));
    379 int	linux_sys_stat	__P((struct proc *, void *, register_t *));
    380 int	linux_sys_lstat	__P((struct proc *, void *, register_t *));
    381 int	linux_sys_mmap	__P((struct proc *, void *, register_t *));
    382 int	sys_munmap	__P((struct proc *, void *, register_t *));
    383 int	sys_mprotect	__P((struct proc *, void *, register_t *));
    384 int	sys_getgroups	__P((struct proc *, void *, register_t *));
    385 int	sys_setgroups	__P((struct proc *, void *, register_t *));
    386 int	compat_43_sys_gethostname	__P((struct proc *, void *, register_t *));
    387 int	compat_43_sys_sethostname	__P((struct proc *, void *, register_t *));
    388 int	sys_dup2	__P((struct proc *, void *, register_t *));
    389 int	linux_sys_fstat	__P((struct proc *, void *, register_t *));
    390 int	linux_sys_fcntl	__P((struct proc *, void *, register_t *));
    391 int	sys_fsync	__P((struct proc *, void *, register_t *));
    392 int	sys_setpriority	__P((struct proc *, void *, register_t *));
    393 int	linux_sys_socket	__P((struct proc *, void *, register_t *));
    394 int	sys_connect	__P((struct proc *, void *, register_t *));
    395 int	compat_43_sys_accept	__P((struct proc *, void *, register_t *));
    396 int	sys_getpriority	__P((struct proc *, void *, register_t *));
    397 int	compat_43_sys_send	__P((struct proc *, void *, register_t *));
    398 int	compat_43_sys_recv	__P((struct proc *, void *, register_t *));
    399 int	linux_sys_sigreturn	__P((struct proc *, void *, register_t *));
    400 int	sys_bind	__P((struct proc *, void *, register_t *));
    401 int	linux_sys_setsockopt	__P((struct proc *, void *, register_t *));
    402 int	sys_listen	__P((struct proc *, void *, register_t *));
    403 int	linux_sys_sigsuspend	__P((struct proc *, void *, register_t *));
    404 int	sys_recvmsg	__P((struct proc *, void *, register_t *));
    405 int	sys_sendmsg	__P((struct proc *, void *, register_t *));
    406 int	linux_sys_getsockopt	__P((struct proc *, void *, register_t *));
    407 int	sys_readv	__P((struct proc *, void *, register_t *));
    408 int	sys_writev	__P((struct proc *, void *, register_t *));
    409 int	linux_sys_fchown	__P((struct proc *, void *, register_t *));
    410 int	sys_fchmod	__P((struct proc *, void *, register_t *));
    411 int	linux_sys_recvfrom	__P((struct proc *, void *, register_t *));
    412 int	linux_sys_setreuid	__P((struct proc *, void *, register_t *));
    413 int	linux_sys_setregid	__P((struct proc *, void *, register_t *));
    414 int	linux_sys_rename	__P((struct proc *, void *, register_t *));
    415 int	linux_sys_truncate	__P((struct proc *, void *, register_t *));
    416 int	compat_43_sys_ftruncate	__P((struct proc *, void *, register_t *));
    417 int	sys_flock	__P((struct proc *, void *, register_t *));
    418 int	sys_setgid	__P((struct proc *, void *, register_t *));
    419 int	linux_sys_sendto	__P((struct proc *, void *, register_t *));
    420 int	sys_shutdown	__P((struct proc *, void *, register_t *));
    421 int	linux_sys_socketpair	__P((struct proc *, void *, register_t *));
    422 int	linux_sys_mkdir	__P((struct proc *, void *, register_t *));
    423 int	linux_sys_rmdir	__P((struct proc *, void *, register_t *));
    424 int	compat_43_sys_getpeername	__P((struct proc *, void *, register_t *));
    425 int	compat_43_sys_getrlimit	__P((struct proc *, void *, register_t *));
    426 int	compat_43_sys_setrlimit	__P((struct proc *, void *, register_t *));
    427 int	sys_setsid	__P((struct proc *, void *, register_t *));
    428 int	compat_43_sys_getsockname	__P((struct proc *, void *, register_t *));
    429 int	linux_sys_sigaction	__P((struct proc *, void *, register_t *));
    430 #ifdef SYSVMSG
    431 int	linux_sys_msgctl	__P((struct proc *, void *, register_t *));
    432 int	sys_msgget	__P((struct proc *, void *, register_t *));
    433 int	sys_msgrcv	__P((struct proc *, void *, register_t *));
    434 int	sys_msgsnd	__P((struct proc *, void *, register_t *));
    435 #else
    436 #endif
    437 #ifdef SYSVSEM
    438 int	linux_sys_semctl	__P((struct proc *, void *, register_t *));
    439 int	sys_semget	__P((struct proc *, void *, register_t *));
    440 int	sys_semop	__P((struct proc *, void *, register_t *));
    441 #else
    442 #endif
    443 int	linux_sys_olduname	__P((struct proc *, void *, register_t *));
    444 int	linux_sys_lchown	__P((struct proc *, void *, register_t *));
    445 #ifdef SYSVSHM
    446 int	linux_sys_shmat	__P((struct proc *, void *, register_t *));
    447 int	linux_sys_shmctl	__P((struct proc *, void *, register_t *));
    448 int	sys_shmdt	__P((struct proc *, void *, register_t *));
    449 int	sys_shmget	__P((struct proc *, void *, register_t *));
    450 #else
    451 #endif
    452 int	linux_sys_msync	__P((struct proc *, void *, register_t *));
    453 int	linux_sys_getpgid	__P((struct proc *, void *, register_t *));
    454 int	sys_getsid	__P((struct proc *, void *, register_t *));
    455 int	linux_sys_fdatasync	__P((struct proc *, void *, register_t *));
    456 int	linux_sys_getdents	__P((struct proc *, void *, register_t *));
    457 int	sys_reboot	__P((struct proc *, void *, register_t *));
    458 #ifdef EXEC_AOUT
    459 int	linux_sys_uselib	__P((struct proc *, void *, register_t *));
    460 #else
    461 #endif
    462 int	sys_mlock	__P((struct proc *, void *, register_t *));
    463 int	sys_munlock	__P((struct proc *, void *, register_t *));
    464 int	linux_sys___sysctl	__P((struct proc *, void *, register_t *));
    465 int	compat_12_sys_swapon	__P((struct proc *, void *, register_t *));
    466 int	linux_sys_times	__P((struct proc *, void *, register_t *));
    467 int	linux_sys_personality	__P((struct proc *, void *, register_t *));
    468 int	linux_sys_statfs	__P((struct proc *, void *, register_t *));
    469 int	linux_sys_fstatfs	__P((struct proc *, void *, register_t *));
    470 int	linux_sys_uname	__P((struct proc *, void *, register_t *));
    471 int	sys_nanosleep	__P((struct proc *, void *, register_t *));
    472 int	linux_sys_mremap	__P((struct proc *, void *, register_t *));
    473 int	linux_sys_rt_sigreturn	__P((struct proc *, void *, register_t *));
    474 int	linux_sys_rt_sigaction	__P((struct proc *, void *, register_t *));
    475 int	linux_sys_rt_sigprocmask	__P((struct proc *, void *, register_t *));
    476 int	linux_sys_rt_sigpending	__P((struct proc *, void *, register_t *));
    477 int	linux_sys_rt_queueinfo	__P((struct proc *, void *, register_t *));
    478 int	linux_sys_rt_sigsuspend	__P((struct proc *, void *, register_t *));
    479 int	linux_sys_select	__P((struct proc *, void *, register_t *));
    480 int	sys_gettimeofday	__P((struct proc *, void *, register_t *));
    481 int	sys_settimeofday	__P((struct proc *, void *, register_t *));
    482 int	sys_getitimer	__P((struct proc *, void *, register_t *));
    483 int	sys_setitimer	__P((struct proc *, void *, register_t *));
    484 int	sys_utimes	__P((struct proc *, void *, register_t *));
    485 int	sys_getrusage	__P((struct proc *, void *, register_t *));
    486 int	linux_sys_wait4	__P((struct proc *, void *, register_t *));
    487