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