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