Home | History | Annotate | Line # | Download | only in sunos
sunos_syscallargs.h revision 1.55
      1 /* $NetBSD: sunos_syscallargs.h,v 1.55 2005/02/26 23:20:01 perry 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.61 2005/02/26 23:10:21 perry Exp
      8  */
      9 
     10 #ifndef _SUNOS_SYS__SYSCALLARGS_H_
     11 #define	_SUNOS_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 sunos_sys_open_args {
     31 	syscallarg(const char *) path;
     32 	syscallarg(int) flags;
     33 	syscallarg(int) mode;
     34 };
     35 
     36 struct sunos_sys_wait4_args {
     37 	syscallarg(int) pid;
     38 	syscallarg(int *) status;
     39 	syscallarg(int) options;
     40 	syscallarg(struct rusage *) rusage;
     41 };
     42 
     43 struct sunos_sys_creat_args {
     44 	syscallarg(const char *) path;
     45 	syscallarg(int) mode;
     46 };
     47 
     48 struct sunos_sys_execv_args {
     49 	syscallarg(const char *) path;
     50 	syscallarg(char **) argp;
     51 };
     52 
     53 struct sunos_sys_mknod_args {
     54 	syscallarg(const char *) path;
     55 	syscallarg(int) mode;
     56 	syscallarg(int) dev;
     57 };
     58 
     59 struct sunos_sys_stime_args {
     60 	syscallarg(time_t *) tp;
     61 };
     62 
     63 struct sunos_sys_ptrace_args {
     64 	syscallarg(int) req;
     65 	syscallarg(pid_t) pid;
     66 	syscallarg(caddr_t) addr;
     67 	syscallarg(int) data;
     68 	syscallarg(char *) addr2;
     69 };
     70 
     71 struct sunos_sys_access_args {
     72 	syscallarg(const char *) path;
     73 	syscallarg(int) flags;
     74 };
     75 
     76 struct sunos_sys_stat_args {
     77 	syscallarg(const char *) path;
     78 	syscallarg(struct stat43 *) ub;
     79 };
     80 
     81 struct sunos_sys_lstat_args {
     82 	syscallarg(const char *) path;
     83 	syscallarg(struct stat43 *) ub;
     84 };
     85 
     86 struct sunos_sys_mctl_args {
     87 	syscallarg(void *) addr;
     88 	syscallarg(int) len;
     89 	syscallarg(int) func;
     90 	syscallarg(void *) arg;
     91 };
     92 
     93 struct sunos_sys_ioctl_args {
     94 	syscallarg(int) fd;
     95 	syscallarg(u_long) com;
     96 	syscallarg(caddr_t) data;
     97 };
     98 
     99 struct sunos_sys_reboot_args {
    100 	syscallarg(int) howto;
    101 	syscallarg(char *) bootstr;
    102 };
    103 
    104 struct sunos_sys_execve_args {
    105 	syscallarg(const char *) path;
    106 	syscallarg(char **) argp;
    107 	syscallarg(char **) envp;
    108 };
    109 
    110 struct sunos_sys_omsync_args {
    111 	syscallarg(caddr_t) addr;
    112 	syscallarg(size_t) len;
    113 	syscallarg(int) flags;
    114 };
    115 
    116 struct sunos_sys_mmap_args {
    117 	syscallarg(void *) addr;
    118 	syscallarg(size_t) len;
    119 	syscallarg(int) prot;
    120 	syscallarg(int) flags;
    121 	syscallarg(int) fd;
    122 	syscallarg(long) pos;
    123 };
    124 
    125 struct sunos_sys_setpgrp_args {
    126 	syscallarg(int) pid;
    127 	syscallarg(int) pgid;
    128 };
    129 
    130 struct sunos_sys_fcntl_args {
    131 	syscallarg(int) fd;
    132 	syscallarg(int) cmd;
    133 	syscallarg(void *) arg;
    134 };
    135 
    136 struct sunos_sys_socket_args {
    137 	syscallarg(int) domain;
    138 	syscallarg(int) type;
    139 	syscallarg(int) protocol;
    140 };
    141 
    142 struct sunos_sys_setsockopt_args {
    143 	syscallarg(int) s;
    144 	syscallarg(int) level;
    145 	syscallarg(int) name;
    146 	syscallarg(caddr_t) val;
    147 	syscallarg(int) valsize;
    148 };
    149 
    150 struct sunos_sys_sigvec_args {
    151 	syscallarg(int) signum;
    152 	syscallarg(struct sigvec *) nsv;
    153 	syscallarg(struct sigvec *) osv;
    154 };
    155 
    156 struct sunos_sys_sigsuspend_args {
    157 	syscallarg(int) mask;
    158 };
    159 
    160 struct sunos_sys_socketpair_args {
    161 	syscallarg(int) domain;
    162 	syscallarg(int) type;
    163 	syscallarg(int) protocol;
    164 	syscallarg(int *) rsv;
    165 };
    166 
    167 struct sunos_sys_sigreturn_args {
    168 	syscallarg(struct sigcontext *) sigcntxp;
    169 };
    170 
    171 struct sunos_sys_getrlimit_args {
    172 	syscallarg(u_int) which;
    173 	syscallarg(struct orlimit *) rlp;
    174 };
    175 
    176 struct sunos_sys_setrlimit_args {
    177 	syscallarg(u_int) which;
    178 	syscallarg(struct orlimit *) rlp;
    179 };
    180 #ifdef NFSSERVER
    181 
    182 struct sunos_sys_nfssvc_args {
    183 	syscallarg(int) fd;
    184 };
    185 #else
    186 #endif
    187 
    188 struct sunos_sys_statfs_args {
    189 	syscallarg(const char *) path;
    190 	syscallarg(struct sunos_statfs *) buf;
    191 };
    192 
    193 struct sunos_sys_fstatfs_args {
    194 	syscallarg(int) fd;
    195 	syscallarg(struct sunos_statfs *) buf;
    196 };
    197 
    198 struct sunos_sys_unmount_args {
    199 	syscallarg(char *) path;
    200 };
    201 #ifdef NFS
    202 #else
    203 #endif
    204 
    205 struct sunos_sys_quotactl_args {
    206 	syscallarg(int) cmd;
    207 	syscallarg(char *) special;
    208 	syscallarg(int) uid;
    209 	syscallarg(caddr_t) addr;
    210 };
    211 
    212 struct sunos_sys_exportfs_args {
    213 	syscallarg(char *) path;
    214 	syscallarg(char *) ex;
    215 };
    216 
    217 struct sunos_sys_mount_args {
    218 	syscallarg(char *) type;
    219 	syscallarg(char *) dir;
    220 	syscallarg(int) flags;
    221 	syscallarg(caddr_t) data;
    222 };
    223 
    224 struct sunos_sys_ustat_args {
    225 	syscallarg(int) dev;
    226 	syscallarg(struct sunos_ustat *) buf;
    227 };
    228 #ifdef SYSVSEM
    229 #else
    230 #endif
    231 #ifdef SYSVMSG
    232 #else
    233 #endif
    234 #ifdef SYSVSHM
    235 #else
    236 #endif
    237 
    238 struct sunos_sys_auditsys_args {
    239 	syscallarg(char *) record;
    240 };
    241 
    242 struct sunos_sys_getdents_args {
    243 	syscallarg(int) fd;
    244 	syscallarg(char *) buf;
    245 	syscallarg(int) nbytes;
    246 };
    247 
    248 struct sunos_sys_sigpending_args {
    249 	syscallarg(int *) mask;
    250 };
    251 
    252 struct sunos_sys_sysconf_args {
    253 	syscallarg(int) name;
    254 };
    255 
    256 struct sunos_sys_uname_args {
    257 	syscallarg(struct sunos_utsname *) name;
    258 };
    259 
    260 /*
    261  * System call prototypes.
    262  */
    263 
    264 int	sys_nosys(struct lwp *, void *, register_t *);
    265 
    266 int	sys_exit(struct lwp *, void *, register_t *);
    267 
    268 int	sys_fork(struct lwp *, void *, register_t *);
    269 
    270 int	sys_read(struct lwp *, void *, register_t *);
    271 
    272 int	sys_write(struct lwp *, void *, register_t *);
    273 
    274 int	sunos_sys_open(struct lwp *, void *, register_t *);
    275 
    276 int	sys_close(struct lwp *, void *, register_t *);
    277 
    278 int	sunos_sys_wait4(struct lwp *, void *, register_t *);
    279 
    280 int	sunos_sys_creat(struct lwp *, void *, register_t *);
    281 
    282 int	sys_link(struct lwp *, void *, register_t *);
    283 
    284 int	sys_unlink(struct lwp *, void *, register_t *);
    285 
    286 int	sunos_sys_execv(struct lwp *, void *, register_t *);
    287 
    288 int	sys_chdir(struct lwp *, void *, register_t *);
    289 
    290 int	sunos_sys_mknod(struct lwp *, void *, register_t *);
    291 
    292 int	sys_chmod(struct lwp *, void *, register_t *);
    293 
    294 int	sys_chown(struct lwp *, void *, register_t *);
    295 
    296 int	sys_obreak(struct lwp *, void *, register_t *);
    297 
    298 int	compat_43_sys_lseek(struct lwp *, void *, register_t *);
    299 
    300 int	sys_getpid_with_ppid(struct lwp *, void *, register_t *);
    301 
    302 int	sys_setuid(struct lwp *, void *, register_t *);
    303 
    304 int	sys_getuid_with_euid(struct lwp *, void *, register_t *);
    305 
    306 int	sunos_sys_stime(struct lwp *, void *, register_t *);
    307 
    308 int	sunos_sys_ptrace(struct lwp *, void *, register_t *);
    309 
    310 int	sunos_sys_access(struct lwp *, void *, register_t *);
    311 
    312 int	sys_sync(struct lwp *, void *, register_t *);
    313 
    314 int	sys_kill(struct lwp *, void *, register_t *);
    315 
    316 int	sunos_sys_stat(struct lwp *, void *, register_t *);
    317 
    318 int	sunos_sys_lstat(struct lwp *, void *, register_t *);
    319 
    320 int	sys_dup(struct lwp *, void *, register_t *);
    321 
    322 int	sys_pipe(struct lwp *, void *, register_t *);
    323 
    324 int	sys_profil(struct lwp *, void *, register_t *);
    325 
    326 int	sys_setgid(struct lwp *, void *, register_t *);
    327 
    328 int	sys_getgid_with_egid(struct lwp *, void *, register_t *);
    329 
    330 int	sys_acct(struct lwp *, void *, register_t *);
    331 
    332 int	sunos_sys_mctl(struct lwp *, void *, register_t *);
    333 
    334 int	sunos_sys_ioctl(struct lwp *, void *, register_t *);
    335 
    336 int	sunos_sys_reboot(struct lwp *, void *, register_t *);
    337 
    338 int	sys_symlink(struct lwp *, void *, register_t *);
    339 
    340 int	sys_readlink(struct lwp *, void *, register_t *);
    341 
    342 int	sunos_sys_execve(struct lwp *, void *, register_t *);
    343 
    344 int	sys_umask(struct lwp *, void *, register_t *);
    345 
    346 int	sys_chroot(struct lwp *, void *, register_t *);
    347 
    348 int	compat_43_sys_fstat(struct lwp *, void *, register_t *);
    349 
    350 int	compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
    351 
    352 int	sunos_sys_omsync(struct lwp *, void *, register_t *);
    353 
    354 int	sys_vfork(struct lwp *, void *, register_t *);
    355 
    356 int	sys_sbrk(struct lwp *, void *, register_t *);
    357 
    358 int	sys_sstk(struct lwp *, void *, register_t *);
    359 
    360 int	sunos_sys_mmap(struct lwp *, void *, register_t *);
    361 
    362 int	sys_ovadvise(struct lwp *, void *, register_t *);
    363 
    364 int	sys_munmap(struct lwp *, void *, register_t *);
    365 
    366 int	sys_mprotect(struct lwp *, void *, register_t *);
    367 
    368 int	sys_madvise(struct lwp *, void *, register_t *);
    369 
    370 int	sunos_sys_vhangup(struct lwp *, void *, register_t *);
    371 
    372 int	sys_mincore(struct lwp *, void *, register_t *);
    373 
    374 int	sys_getgroups(struct lwp *, void *, register_t *);
    375 
    376 int	sys_setgroups(struct lwp *, void *, register_t *);
    377 
    378 int	sys_getpgrp(struct lwp *, void *, register_t *);
    379 
    380 int	sunos_sys_setpgrp(struct lwp *, void *, register_t *);
    381 
    382 int	sys_setitimer(struct lwp *, void *, register_t *);
    383 
    384 int	compat_12_sys_swapon(struct lwp *, void *, register_t *);
    385 
    386 int	sys_getitimer(struct lwp *, void *, register_t *);
    387 
    388 int	compat_43_sys_gethostname(struct lwp *, void *, register_t *);
    389 
    390 int	compat_43_sys_sethostname(struct lwp *, void *, register_t *);
    391 
    392 int	compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
    393 
    394 int	sys_dup2(struct lwp *, void *, register_t *);
    395 
    396 int	sunos_sys_fcntl(struct lwp *, void *, register_t *);
    397 
    398 int	sys_select(struct lwp *, void *, register_t *);
    399 
    400 int	sys_fsync(struct lwp *, void *, register_t *);
    401 
    402 int	sys_setpriority(struct lwp *, void *, register_t *);
    403 
    404 int	sunos_sys_socket(struct lwp *, void *, register_t *);
    405 
    406 int	sys_connect(struct lwp *, void *, register_t *);
    407 
    408 int	compat_43_sys_accept(struct lwp *, void *, register_t *);
    409 
    410 int	sys_getpriority(struct lwp *, void *, register_t *);
    411 
    412 int	compat_43_sys_send(struct lwp *, void *, register_t *);
    413 
    414 int	compat_43_sys_recv(struct lwp *, void *, register_t *);
    415 
    416 int	sys_bind(struct lwp *, void *, register_t *);
    417 
    418 int	sunos_sys_setsockopt(struct lwp *, void *, register_t *);
    419 
    420 int	sys_listen(struct lwp *, void *, register_t *);
    421 
    422 int	sunos_sys_sigvec(struct lwp *, void *, register_t *);
    423 
    424 int	compat_43_sys_sigblock(struct lwp *, void *, register_t *);
    425 
    426 int	compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
    427 
    428 int	sunos_sys_sigsuspend(struct lwp *, void *, register_t *);
    429 
    430 int	compat_43_sys_sigstack(struct lwp *, void *, register_t *);
    431 
    432 int	compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
    433 
    434 int	compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
    435 
    436 int	sys_gettimeofday(struct lwp *, void *, register_t *);
    437 
    438 int	sys_getrusage(struct lwp *, void *, register_t *);
    439 
    440 int	sys_getsockopt(struct lwp *, void *, register_t *);
    441 
    442 int	sys_readv(struct lwp *, void *, register_t *);
    443 
    444 int	sys_writev(struct lwp *, void *, register_t *);
    445 
    446 int	sys_settimeofday(struct lwp *, void *, register_t *);
    447 
    448 int	sys_fchown(struct lwp *, void *, register_t *);
    449 
    450 int	sys_fchmod(struct lwp *, void *, register_t *);
    451 
    452 int	compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
    453 
    454 int	sys_setreuid(struct lwp *, void *, register_t *);
    455 
    456 int	sys_setregid(struct lwp *, void *, register_t *);
    457 
    458 int	sys_rename(struct lwp *, void *, register_t *);
    459 
    460 int	compat_43_sys_truncate(struct lwp *, void *, register_t *);
    461 
    462 int	compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
    463 
    464 int	sys_flock(struct lwp *, void *, register_t *);
    465 
    466 int	sys_sendto(struct lwp *, void *, register_t *);
    467 
    468 int	sys_shutdown(struct lwp *, void *, register_t *);
    469 
    470 int	sunos_sys_socketpair(struct lwp *, void *, register_t *);
    471 
    472 int	sys_mkdir(struct lwp *, void *, register_t *);
    473 
    474 int	sys_rmdir(struct lwp *, void *, register_t *);
    475 
    476 int	sys_utimes(struct lwp *, void *, register_t *);
    477 
    478 int	sunos_sys_sigreturn(struct lwp *, void *, register_t *);
    479 
    480 int	sys_adjtime(struct lwp *, void *, register_t *);
    481 
    482 int	compat_43_sys_getpeername(struct lwp *, void *, register_t *);
    483 
    484 int	compat_43_sys_gethostid(struct lwp *, void *, register_t *);
    485 
    486 int	sunos_sys_getrlimit(struct lwp *, void *, register_t *);
    487 
    488 int	sunos_sys_setrlimit(struct lwp *, void *, register_t *);
    489 
    490 int	compat_43_sys_killpg(struct lwp *, void *, register_t *);
    491 
    492 int	compat_43_sys_getsockname(struct lwp *, void *, register_t *);
    493 
    494 int	sys_poll(struct lwp *, void *, register_t *);
    495 
    496 #ifdef NFSSERVER
    497 int	sunos_sys_nfssvc(struct lwp *, void *, register_t *);
    498 
    499 #else
    500 #endif
    501 int	compat_12_sys_getdirentries(struct lwp *, void *, register_t *);
    502 
    503 int	sunos_sys_statfs(struct lwp *, void *, register_t *);
    504 
    505 int	sunos_sys_fstatfs(struct lwp *, void *, register_t *);
    506 
    507 int	sunos_sys_unmount(struct lwp *, void *, register_t *);
    508 
    509 #ifdef NFS
    510 int	async_daemon(struct lwp *, void *, register_t *);
    511 
    512 int	sys_getfh(struct lwp *, void *, register_t *);
    513 
    514 #else
    515 #endif
    516 int	compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
    517 
    518 int	compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
    519 
    520 int	sunos_sys_quotactl(struct lwp *, void *, register_t *);
    521 
    522 int	sunos_sys_exportfs(struct lwp *, void *, register_t *);
    523 
    524 int	sunos_sys_mount(struct lwp *, void *, register_t *);
    525 
    526 int	sunos_sys_ustat(struct lwp *, void *, register_t *);
    527 
    528 #ifdef SYSVSEM
    529 int	compat_10_sys_semsys(struct lwp *, void *, register_t *);
    530 
    531 #else
    532 #endif
    533 #ifdef SYSVMSG
    534 int	compat_10_sys_msgsys(struct lwp *, void *, register_t *);
    535 
    536 #else
    537 #endif
    538 #ifdef SYSVSHM
    539 int	compat_10_sys_shmsys(struct lwp *, void *, register_t *);
    540 
    541 #else
    542 #endif
    543 int	sunos_sys_auditsys(struct lwp *, void *, register_t *);
    544 
    545 int	sunos_sys_getdents(struct lwp *, void *, register_t *);
    546 
    547 int	sys_setsid(struct lwp *, void *, register_t *);
    548 
    549 int	sys_fchdir(struct lwp *, void *, register_t *);
    550 
    551 int	sys_fchroot(struct lwp *, void *, register_t *);
    552 
    553 int	sunos_sys_sigpending(struct lwp *, void *, register_t *);
    554 
    555 int	sys_setpgid(struct lwp *, void *, register_t *);
    556 
    557 int	sys_pathconf(struct lwp *, void *, register_t *);
    558 
    559 int	sys_fpathconf(struct lwp *, void *, register_t *);
    560 
    561 int	sunos_sys_sysconf(struct lwp *, void *, register_t *);
    562 
    563 int	sunos_sys_uname(struct lwp *, void *, register_t *);
    564 
    565 #endif /* _SUNOS_SYS__SYSCALLARGS_H_ */
    566