Home | History | Annotate | Line # | Download | only in ultrix
ultrix_syscallargs.h revision 1.45
      1 /* $NetBSD: ultrix_syscallargs.h,v 1.45 2006/06/26 21:30:50 mrg 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.41 2006/06/26 21:23:58 mrg Exp
      8  */
      9 
     10 #ifndef _ULTRIX_SYS_SYSCALLARGS_H_
     11 #define	_ULTRIX_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 { /* LINTED zero array dimension */		\
     22 			int8_t pad[  /* CONSTCOND */			\
     23 				(sizeof (register_t) < sizeof (x))	\
     24 				? 0					\
     25 				: sizeof (register_t) - sizeof (x)];	\
     26 			x datum;					\
     27 		} be;							\
     28 	}
     29 
     30 struct ultrix_sys_open_args {
     31 	syscallarg(const char *) path;
     32 	syscallarg(int) flags;
     33 	syscallarg(int) mode;
     34 };
     35 
     36 struct ultrix_sys_creat_args {
     37 	syscallarg(const char *) path;
     38 	syscallarg(int) mode;
     39 };
     40 
     41 struct ultrix_sys_execv_args {
     42 	syscallarg(const char *) path;
     43 	syscallarg(char **) argp;
     44 };
     45 
     46 struct ultrix_sys_mknod_args {
     47 	syscallarg(const char *) path;
     48 	syscallarg(int) mode;
     49 	syscallarg(int) dev;
     50 };
     51 
     52 struct ultrix_sys_mount_args {
     53 	syscallarg(char *) special;
     54 	syscallarg(char *) dir;
     55 	syscallarg(int) rdonly;
     56 	syscallarg(int) type;
     57 	syscallarg(caddr_t) data;
     58 };
     59 
     60 struct ultrix_sys_access_args {
     61 	syscallarg(const char *) path;
     62 	syscallarg(int) flags;
     63 };
     64 
     65 struct ultrix_sys_stat_args {
     66 	syscallarg(const char *) path;
     67 	syscallarg(struct stat43 *) ub;
     68 };
     69 
     70 struct ultrix_sys_lstat_args {
     71 	syscallarg(const char *) path;
     72 	syscallarg(struct stat43 *) ub;
     73 };
     74 
     75 struct ultrix_sys_ioctl_args {
     76 	syscallarg(int) fd;
     77 	syscallarg(u_long) com;
     78 	syscallarg(caddr_t) data;
     79 };
     80 
     81 struct ultrix_sys_execve_args {
     82 	syscallarg(const char *) path;
     83 	syscallarg(char **) argp;
     84 	syscallarg(char **) envp;
     85 };
     86 
     87 struct ultrix_sys_mmap_args {
     88 	syscallarg(caddr_t) addr;
     89 	syscallarg(size_t) len;
     90 	syscallarg(int) prot;
     91 	syscallarg(u_int) flags;
     92 	syscallarg(int) fd;
     93 	syscallarg(long) pos;
     94 };
     95 
     96 struct ultrix_sys_setpgrp_args {
     97 	syscallarg(int) pid;
     98 	syscallarg(int) pgid;
     99 };
    100 
    101 struct ultrix_sys_wait3_args {
    102 	syscallarg(int *) status;
    103 	syscallarg(int) options;
    104 	syscallarg(struct rusage *) rusage;
    105 };
    106 
    107 struct ultrix_sys_fcntl_args {
    108 	syscallarg(int) fd;
    109 	syscallarg(int) cmd;
    110 	syscallarg(void *) arg;
    111 };
    112 
    113 struct ultrix_sys_select_args {
    114 	syscallarg(u_int) nd;
    115 	syscallarg(fd_set *) in;
    116 	syscallarg(fd_set *) ou;
    117 	syscallarg(fd_set *) ex;
    118 	syscallarg(struct timeval *) tv;
    119 };
    120 
    121 struct ultrix_sys_sigreturn_args {
    122 	syscallarg(struct sigcontext *) sigcntxp;
    123 };
    124 
    125 struct ultrix_sys_setsockopt_args {
    126 	syscallarg(int) s;
    127 	syscallarg(int) level;
    128 	syscallarg(int) name;
    129 	syscallarg(caddr_t) val;
    130 	syscallarg(int) valsize;
    131 };
    132 
    133 struct ultrix_sys_sigvec_args {
    134 	syscallarg(int) signum;
    135 	syscallarg(struct sigvec *) nsv;
    136 	syscallarg(struct sigvec *) osv;
    137 };
    138 
    139 struct ultrix_sys_sigsuspend_args {
    140 	syscallarg(int) mask;
    141 };
    142 
    143 struct ultrix_sys_sigcleanup_args {
    144 	syscallarg(struct sigcontext *) sigcntxp;
    145 };
    146 #ifdef __mips
    147 
    148 struct ultrix_sys_cacheflush_args {
    149 	syscallarg(char *) addr;
    150 	syscallarg(int) nbytes;
    151 	syscallarg(int) whichcache;
    152 };
    153 
    154 struct ultrix_sys_cachectl_args {
    155 	syscallarg(char *) addr;
    156 	syscallarg(int) nbytes;
    157 	syscallarg(int) cacheop;
    158 };
    159 #else	/* !mips */
    160 #endif	/* !mips */
    161 #ifdef NFSSERVER
    162 
    163 struct ultrix_sys_nfssvc_args {
    164 	syscallarg(int) fd;
    165 };
    166 #else
    167 #endif
    168 
    169 struct ultrix_sys_statfs_args {
    170 	syscallarg(const char *) path;
    171 	syscallarg(struct ultrix_statfs *) buf;
    172 };
    173 
    174 struct ultrix_sys_fstatfs_args {
    175 	syscallarg(int) fd;
    176 	syscallarg(struct ultrix_statfs *) buf;
    177 };
    178 #ifdef NFS
    179 #else
    180 #endif
    181 
    182 struct ultrix_sys_quotactl_args {
    183 	syscallarg(int) cmd;
    184 	syscallarg(char *) special;
    185 	syscallarg(int) uid;
    186 	syscallarg(caddr_t) addr;
    187 };
    188 
    189 struct ultrix_sys_exportfs_args {
    190 	syscallarg(char *) path;
    191 	syscallarg(char *) ex;
    192 };
    193 
    194 struct ultrix_sys_uname_args {
    195 	syscallarg(struct ultrix_utsname *) name;
    196 };
    197 
    198 struct ultrix_sys_shmsys_args {
    199 	syscallarg(u_int) shmop;
    200 	syscallarg(u_int) a2;
    201 	syscallarg(u_int) a3;
    202 	syscallarg(u_int) a4;
    203 };
    204 
    205 struct ultrix_sys_ustat_args {
    206 	syscallarg(int) dev;
    207 	syscallarg(struct ultrix_ustat *) buf;
    208 };
    209 
    210 struct ultrix_sys_getmnt_args {
    211 	syscallarg(int *) start;
    212 	syscallarg(struct ultrix_fs_data *) buf;
    213 	syscallarg(int) bufsize;
    214 	syscallarg(int) mode;
    215 	syscallarg(char *) path;
    216 };
    217 
    218 struct ultrix_sys_sigpending_args {
    219 	syscallarg(int *) mask;
    220 };
    221 
    222 struct ultrix_sys_waitpid_args {
    223 	syscallarg(int) pid;
    224 	syscallarg(int *) status;
    225 	syscallarg(int) options;
    226 };
    227 
    228 struct ultrix_sys_getsysinfo_args {
    229 	syscallarg(unsigned) op;
    230 	syscallarg(char *) buffer;
    231 	syscallarg(unsigned) nbytes;
    232 	syscallarg(int *) start;
    233 	syscallarg(char *) arg;
    234 };
    235 
    236 struct ultrix_sys_setsysinfo_args {
    237 	syscallarg(unsigned) op;
    238 	syscallarg(char *) buffer;
    239 	syscallarg(unsigned) nbytes;
    240 	syscallarg(unsigned) arg;
    241 	syscallarg(unsigned) flag;
    242 };
    243 
    244 /*
    245  * System call prototypes.
    246  */
    247 
    248 int	sys_nosys(struct lwp *, void *, register_t *);
    249 
    250 int	sys_exit(struct lwp *, void *, register_t *);
    251 
    252 int	sys_fork(struct lwp *, void *, register_t *);
    253 
    254 int	sys_read(struct lwp *, void *, register_t *);
    255 
    256 int	sys_write(struct lwp *, void *, register_t *);
    257 
    258 int	ultrix_sys_open(struct lwp *, void *, register_t *);
    259 
    260 int	sys_close(struct lwp *, void *, register_t *);
    261 
    262 int	compat_43_sys_wait(struct lwp *, void *, register_t *);
    263 
    264 int	ultrix_sys_creat(struct lwp *, void *, register_t *);
    265 
    266 int	sys_link(struct lwp *, void *, register_t *);
    267 
    268 int	sys_unlink(struct lwp *, void *, register_t *);
    269 
    270 int	ultrix_sys_execv(struct lwp *, void *, register_t *);
    271 
    272 int	sys_chdir(struct lwp *, void *, register_t *);
    273 
    274 int	ultrix_sys_mknod(struct lwp *, void *, register_t *);
    275 
    276 int	sys_chmod(struct lwp *, void *, register_t *);
    277 
    278 int	sys___posix_chown(struct lwp *, void *, register_t *);
    279 
    280 int	sys_obreak(struct lwp *, void *, register_t *);
    281 
    282 int	compat_43_sys_lseek(struct lwp *, void *, register_t *);
    283 
    284 int	sys_getpid(struct lwp *, void *, register_t *);
    285 
    286 int	ultrix_sys_mount(struct lwp *, void *, register_t *);
    287 
    288 int	sys_setuid(struct lwp *, void *, register_t *);
    289 
    290 int	sys_getuid(struct lwp *, void *, register_t *);
    291 
    292 int	ultrix_sys_access(struct lwp *, void *, register_t *);
    293 
    294 int	sys_sync(struct lwp *, void *, register_t *);
    295 
    296 int	sys_kill(struct lwp *, void *, register_t *);
    297 
    298 int	ultrix_sys_stat(struct lwp *, void *, register_t *);
    299 
    300 int	ultrix_sys_lstat(struct lwp *, void *, register_t *);
    301 
    302 int	sys_dup(struct lwp *, void *, register_t *);
    303 
    304 int	sys_pipe(struct lwp *, void *, register_t *);
    305 
    306 int	sys_profil(struct lwp *, void *, register_t *);
    307 
    308 int	sys_getgid(struct lwp *, void *, register_t *);
    309 
    310 int	sys_acct(struct lwp *, void *, register_t *);
    311 
    312 int	ultrix_sys_ioctl(struct lwp *, void *, register_t *);
    313 
    314 int	sys_reboot(struct lwp *, void *, register_t *);
    315 
    316 int	sys_symlink(struct lwp *, void *, register_t *);
    317 
    318 int	sys_readlink(struct lwp *, void *, register_t *);
    319 
    320 int	ultrix_sys_execve(struct lwp *, void *, register_t *);
    321 
    322 int	sys_umask(struct lwp *, void *, register_t *);
    323 
    324 int	sys_chroot(struct lwp *, void *, register_t *);
    325 
    326 int	compat_43_sys_fstat(struct lwp *, void *, register_t *);
    327 
    328 int	compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
    329 
    330 int	sys_vfork(struct lwp *, void *, register_t *);
    331 
    332 int	sys_sbrk(struct lwp *, void *, register_t *);
    333 
    334 int	sys_sstk(struct lwp *, void *, register_t *);
    335 
    336 int	ultrix_sys_mmap(struct lwp *, void *, register_t *);
    337 
    338 int	sys_ovadvise(struct lwp *, void *, register_t *);
    339 
    340 int	sys_munmap(struct lwp *, void *, register_t *);
    341 
    342 int	sys_mprotect(struct lwp *, void *, register_t *);
    343 
    344 int	sys_madvise(struct lwp *, void *, register_t *);
    345 
    346 int	ultrix_sys_vhangup(struct lwp *, void *, register_t *);
    347 
    348 int	sys_mincore(struct lwp *, void *, register_t *);
    349 
    350 int	sys_getgroups(struct lwp *, void *, register_t *);
    351 
    352 int	sys_setgroups(struct lwp *, void *, register_t *);
    353 
    354 int	sys_getpgrp(struct lwp *, void *, register_t *);
    355 
    356 int	ultrix_sys_setpgrp(struct lwp *, void *, register_t *);
    357 
    358 int	sys_setitimer(struct lwp *, void *, register_t *);
    359 
    360 int	ultrix_sys_wait3(struct lwp *, void *, register_t *);
    361 
    362 int	compat_12_sys_swapon(struct lwp *, void *, register_t *);
    363 
    364 int	sys_getitimer(struct lwp *, void *, register_t *);
    365 
    366 int	compat_43_sys_gethostname(struct lwp *, void *, register_t *);
    367 
    368 int	compat_43_sys_sethostname(struct lwp *, void *, register_t *);
    369 
    370 int	compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
    371 
    372 int	sys_dup2(struct lwp *, void *, register_t *);
    373 
    374 int	ultrix_sys_fcntl(struct lwp *, void *, register_t *);
    375 
    376 int	ultrix_sys_select(struct lwp *, void *, register_t *);
    377 
    378 int	sys_fsync(struct lwp *, void *, register_t *);
    379 
    380 int	sys_setpriority(struct lwp *, void *, register_t *);
    381 
    382 int	compat_30_sys_socket(struct lwp *, void *, register_t *);
    383 
    384 int	sys_connect(struct lwp *, void *, register_t *);
    385 
    386 int	compat_43_sys_accept(struct lwp *, void *, register_t *);
    387 
    388 int	sys_getpriority(struct lwp *, void *, register_t *);
    389 
    390 int	compat_43_sys_send(struct lwp *, void *, register_t *);
    391 
    392 int	compat_43_sys_recv(struct lwp *, void *, register_t *);
    393 
    394 int	ultrix_sys_sigreturn(struct lwp *, void *, register_t *);
    395 
    396 int	sys_bind(struct lwp *, void *, register_t *);
    397 
    398 int	ultrix_sys_setsockopt(struct lwp *, void *, register_t *);
    399 
    400 int	sys_listen(struct lwp *, void *, register_t *);
    401 
    402 int	ultrix_sys_sigvec(struct lwp *, void *, register_t *);
    403 
    404 int	compat_43_sys_sigblock(struct lwp *, void *, register_t *);
    405 
    406 int	compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
    407 
    408 int	ultrix_sys_sigsuspend(struct lwp *, void *, register_t *);
    409 
    410 int	compat_43_sys_sigstack(struct lwp *, void *, register_t *);
    411 
    412 int	compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
    413 
    414 int	compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
    415 
    416 int	sys_gettimeofday(struct lwp *, void *, register_t *);
    417 
    418 int	sys_getrusage(struct lwp *, void *, register_t *);
    419 
    420 int	sys_getsockopt(struct lwp *, void *, register_t *);
    421 
    422 int	sys_readv(struct lwp *, void *, register_t *);
    423 
    424 int	sys_writev(struct lwp *, void *, register_t *);
    425 
    426 int	sys_settimeofday(struct lwp *, void *, register_t *);
    427 
    428 int	sys___posix_fchown(struct lwp *, void *, register_t *);
    429 
    430 int	sys_fchmod(struct lwp *, void *, register_t *);
    431 
    432 int	compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
    433 
    434 int	sys_setreuid(struct lwp *, void *, register_t *);
    435 
    436 int	sys_setregid(struct lwp *, void *, register_t *);
    437 
    438 int	sys_rename(struct lwp *, void *, register_t *);
    439 
    440 int	compat_43_sys_truncate(struct lwp *, void *, register_t *);
    441 
    442 int	compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
    443 
    444 int	sys_flock(struct lwp *, void *, register_t *);
    445 
    446 int	sys_sendto(struct lwp *, void *, register_t *);
    447 
    448 int	sys_shutdown(struct lwp *, void *, register_t *);
    449 
    450 int	sys_socketpair(struct lwp *, void *, register_t *);
    451 
    452 int	sys_mkdir(struct lwp *, void *, register_t *);
    453 
    454 int	sys_rmdir(struct lwp *, void *, register_t *);
    455 
    456 int	sys_utimes(struct lwp *, void *, register_t *);
    457 
    458 int	ultrix_sys_sigcleanup(struct lwp *, void *, register_t *);
    459 
    460 int	sys_adjtime(struct lwp *, void *, register_t *);
    461 
    462 int	compat_43_sys_getpeername(struct lwp *, void *, register_t *);
    463 
    464 int	compat_43_sys_gethostid(struct lwp *, void *, register_t *);
    465 
    466 int	compat_43_sys_getrlimit(struct lwp *, void *, register_t *);
    467 
    468 int	compat_43_sys_setrlimit(struct lwp *, void *, register_t *);
    469 
    470 int	compat_43_sys_killpg(struct lwp *, void *, register_t *);
    471 
    472 int	compat_43_sys_getsockname(struct lwp *, void *, register_t *);
    473 
    474 #ifdef __mips
    475 int	ultrix_sys_cacheflush(struct lwp *, void *, register_t *);
    476 
    477 int	ultrix_sys_cachectl(struct lwp *, void *, register_t *);
    478 
    479 #else	/* !mips */
    480 #endif	/* !mips */
    481 #ifdef NFSSERVER
    482 int	ultrix_sys_nfssvc(struct lwp *, void *, register_t *);
    483 
    484 #else
    485 #endif
    486 int	compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
    487 
    488 int	ultrix_sys_statfs(struct lwp *, void *, register_t *);
    489 
    490 int	ultrix_sys_fstatfs(struct lwp *, void *, register_t *);
    491 
    492 #ifdef NFS
    493 int	async_daemon(struct lwp *, void *, register_t *);
    494 
    495 int	sys_getfh(struct lwp *, void *, register_t *);
    496 
    497 #else
    498 #endif
    499 int	compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
    500 
    501 int	compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
    502 
    503 int	ultrix_sys_quotactl(struct lwp *, void *, register_t *);
    504 
    505 int	ultrix_sys_exportfs(struct lwp *, void *, register_t *);
    506 
    507 int	ultrix_sys_uname(struct lwp *, void *, register_t *);
    508 
    509 int	ultrix_sys_shmsys(struct lwp *, void *, register_t *);
    510 
    511 int	ultrix_sys_ustat(struct lwp *, void *, register_t *);
    512 
    513 int	ultrix_sys_getmnt(struct lwp *, void *, register_t *);
    514 
    515 int	ultrix_sys_sigpending(struct lwp *, void *, register_t *);
    516 
    517 int	sys_setsid(struct lwp *, void *, register_t *);
    518 
    519 int	ultrix_sys_waitpid(struct lwp *, void *, register_t *);
    520 
    521 int	ultrix_sys_getsysinfo(struct lwp *, void *, register_t *);
    522 
    523 int	ultrix_sys_setsysinfo(struct lwp *, void *, register_t *);
    524 
    525 #endif /* _ULTRIX_SYS_SYSCALLARGS_H_ */
    526