Home | History | Annotate | Line # | Download | only in sunos
sunos_syscallargs.h revision 1.52
      1 /* $NetBSD: sunos_syscallargs.h,v 1.52 2002/01/03 01:11:29 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.59 2002/01/03 00:59:00 mrg 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 
    181 struct sunos_sys_nfssvc_args {
    182 	syscallarg(int) fd;
    183 };
    184 
    185 struct sunos_sys_statfs_args {
    186 	syscallarg(const char *) path;
    187 	syscallarg(struct sunos_statfs *) buf;
    188 };
    189 
    190 struct sunos_sys_fstatfs_args {
    191 	syscallarg(int) fd;
    192 	syscallarg(struct sunos_statfs *) buf;
    193 };
    194 
    195 struct sunos_sys_unmount_args {
    196 	syscallarg(char *) path;
    197 };
    198 
    199 struct sunos_sys_quotactl_args {
    200 	syscallarg(int) cmd;
    201 	syscallarg(char *) special;
    202 	syscallarg(int) uid;
    203 	syscallarg(caddr_t) addr;
    204 };
    205 
    206 struct sunos_sys_exportfs_args {
    207 	syscallarg(char *) path;
    208 	syscallarg(char *) ex;
    209 };
    210 
    211 struct sunos_sys_mount_args {
    212 	syscallarg(char *) type;
    213 	syscallarg(char *) dir;
    214 	syscallarg(int) flags;
    215 	syscallarg(caddr_t) data;
    216 };
    217 
    218 struct sunos_sys_ustat_args {
    219 	syscallarg(int) dev;
    220 	syscallarg(struct sunos_ustat *) buf;
    221 };
    222 
    223 struct sunos_sys_auditsys_args {
    224 	syscallarg(char *) record;
    225 };
    226 
    227 struct sunos_sys_getdents_args {
    228 	syscallarg(int) fd;
    229 	syscallarg(char *) buf;
    230 	syscallarg(int) nbytes;
    231 };
    232 
    233 struct sunos_sys_sigpending_args {
    234 	syscallarg(int *) mask;
    235 };
    236 
    237 struct sunos_sys_sysconf_args {
    238 	syscallarg(int) name;
    239 };
    240 
    241 struct sunos_sys_uname_args {
    242 	syscallarg(struct sunos_utsname *) name;
    243 };
    244 
    245 /*
    246  * System call prototypes.
    247  */
    248 
    249 int	sys_nosys(struct proc *, void *, register_t *);
    250 int	sys_exit(struct proc *, void *, register_t *);
    251 int	sys_fork(struct proc *, void *, register_t *);
    252 int	sys_read(struct proc *, void *, register_t *);
    253 int	sys_write(struct proc *, void *, register_t *);
    254 int	sunos_sys_open(struct proc *, void *, register_t *);
    255 int	sys_close(struct proc *, void *, register_t *);
    256 int	sunos_sys_wait4(struct proc *, void *, register_t *);
    257 int	sunos_sys_creat(struct proc *, void *, register_t *);
    258 int	sys_link(struct proc *, void *, register_t *);
    259 int	sys_unlink(struct proc *, void *, register_t *);
    260 int	sunos_sys_execv(struct proc *, void *, register_t *);
    261 int	sys_chdir(struct proc *, void *, register_t *);
    262 int	sunos_sys_mknod(struct proc *, void *, register_t *);
    263 int	sys_chmod(struct proc *, void *, register_t *);
    264 int	sys_chown(struct proc *, void *, register_t *);
    265 int	sys_obreak(struct proc *, void *, register_t *);
    266 int	compat_43_sys_lseek(struct proc *, void *, register_t *);
    267 int	sys_getpid_with_ppid(struct proc *, void *, register_t *);
    268 int	sys_setuid(struct proc *, void *, register_t *);
    269 int	sys_getuid_with_euid(struct proc *, void *, register_t *);
    270 int	sunos_sys_stime(struct proc *, void *, register_t *);
    271 int	sunos_sys_ptrace(struct proc *, void *, register_t *);
    272 int	sunos_sys_access(struct proc *, void *, register_t *);
    273 int	sys_sync(struct proc *, void *, register_t *);
    274 int	sys_kill(struct proc *, void *, register_t *);
    275 int	sunos_sys_stat(struct proc *, void *, register_t *);
    276 int	sunos_sys_lstat(struct proc *, void *, register_t *);
    277 int	sys_dup(struct proc *, void *, register_t *);
    278 int	sys_pipe(struct proc *, void *, register_t *);
    279 int	sys_profil(struct proc *, void *, register_t *);
    280 int	sys_setgid(struct proc *, void *, register_t *);
    281 int	sys_getgid_with_egid(struct proc *, void *, register_t *);
    282 int	sys_acct(struct proc *, void *, register_t *);
    283 int	sunos_sys_mctl(struct proc *, void *, register_t *);
    284 int	sunos_sys_ioctl(struct proc *, void *, register_t *);
    285 int	sunos_sys_reboot(struct proc *, void *, register_t *);
    286 int	sys_symlink(struct proc *, void *, register_t *);
    287 int	sys_readlink(struct proc *, void *, register_t *);
    288 int	sunos_sys_execve(struct proc *, void *, register_t *);
    289 int	sys_umask(struct proc *, void *, register_t *);
    290 int	sys_chroot(struct proc *, void *, register_t *);
    291 int	compat_43_sys_fstat(struct proc *, void *, register_t *);
    292 int	compat_43_sys_getpagesize(struct proc *, void *, register_t *);
    293 int	sunos_sys_omsync(struct proc *, void *, register_t *);
    294 int	sys_vfork(struct proc *, void *, register_t *);
    295 int	sys_sbrk(struct proc *, void *, register_t *);
    296 int	sys_sstk(struct proc *, void *, register_t *);
    297 int	sunos_sys_mmap(struct proc *, void *, register_t *);
    298 int	sys_ovadvise(struct proc *, void *, register_t *);
    299 int	sys_munmap(struct proc *, void *, register_t *);
    300 int	sys_mprotect(struct proc *, void *, register_t *);
    301 int	sys_madvise(struct proc *, void *, register_t *);
    302 int	sunos_sys_vhangup(struct proc *, void *, register_t *);
    303 int	sys_mincore(struct proc *, void *, register_t *);
    304 int	sys_getgroups(struct proc *, void *, register_t *);
    305 int	sys_setgroups(struct proc *, void *, register_t *);
    306 int	sys_getpgrp(struct proc *, void *, register_t *);
    307 int	sunos_sys_setpgrp(struct proc *, void *, register_t *);
    308 int	sys_setitimer(struct proc *, void *, register_t *);
    309 int	compat_12_sys_swapon(struct proc *, void *, register_t *);
    310 int	sys_getitimer(struct proc *, void *, register_t *);
    311 int	compat_43_sys_gethostname(struct proc *, void *, register_t *);
    312 int	compat_43_sys_sethostname(struct proc *, void *, register_t *);
    313 int	compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
    314 int	sys_dup2(struct proc *, void *, register_t *);
    315 int	sunos_sys_fcntl(struct proc *, void *, register_t *);
    316 int	sys_select(struct proc *, void *, register_t *);
    317 int	sys_fsync(struct proc *, void *, register_t *);
    318 int	sys_setpriority(struct proc *, void *, register_t *);
    319 int	sunos_sys_socket(struct proc *, void *, register_t *);
    320 int	sys_connect(struct proc *, void *, register_t *);
    321 int	compat_43_sys_accept(struct proc *, void *, register_t *);
    322 int	sys_getpriority(struct proc *, void *, register_t *);
    323 int	compat_43_sys_send(struct proc *, void *, register_t *);
    324 int	compat_43_sys_recv(struct proc *, void *, register_t *);
    325 int	sys_bind(struct proc *, void *, register_t *);
    326 int	sunos_sys_setsockopt(struct proc *, void *, register_t *);
    327 int	sys_listen(struct proc *, void *, register_t *);
    328 int	sunos_sys_sigvec(struct proc *, void *, register_t *);
    329 int	compat_43_sys_sigblock(struct proc *, void *, register_t *);
    330 int	compat_43_sys_sigsetmask(struct proc *, void *, register_t *);
    331 int	sunos_sys_sigsuspend(struct proc *, void *, register_t *);
    332 int	compat_43_sys_sigstack(struct proc *, void *, register_t *);
    333 int	compat_43_sys_recvmsg(struct proc *, void *, register_t *);
    334 int	compat_43_sys_sendmsg(struct proc *, void *, register_t *);
    335 int	sys_gettimeofday(struct proc *, void *, register_t *);
    336 int	sys_getrusage(struct proc *, void *, register_t *);
    337 int	sys_getsockopt(struct proc *, void *, register_t *);
    338 int	sys_readv(struct proc *, void *, register_t *);
    339 int	sys_writev(struct proc *, void *, register_t *);
    340 int	sys_settimeofday(struct proc *, void *, register_t *);
    341 int	sys_fchown(struct proc *, void *, register_t *);
    342 int	sys_fchmod(struct proc *, void *, register_t *);
    343 int	compat_43_sys_recvfrom(struct proc *, void *, register_t *);
    344 int	sys_setreuid(struct proc *, void *, register_t *);
    345 int	sys_setregid(struct proc *, void *, register_t *);
    346 int	sys_rename(struct proc *, void *, register_t *);
    347 int	compat_43_sys_truncate(struct proc *, void *, register_t *);
    348 int	compat_43_sys_ftruncate(struct proc *, void *, register_t *);
    349 int	sys_flock(struct proc *, void *, register_t *);
    350 int	sys_sendto(struct proc *, void *, register_t *);
    351 int	sys_shutdown(struct proc *, void *, register_t *);
    352 int	sunos_sys_socketpair(struct proc *, void *, register_t *);
    353 int	sys_mkdir(struct proc *, void *, register_t *);
    354 int	sys_rmdir(struct proc *, void *, register_t *);
    355 int	sys_utimes(struct proc *, void *, register_t *);
    356 int	sunos_sys_sigreturn(struct proc *, void *, register_t *);
    357 int	sys_adjtime(struct proc *, void *, register_t *);
    358 int	compat_43_sys_getpeername(struct proc *, void *, register_t *);
    359 int	compat_43_sys_gethostid(struct proc *, void *, register_t *);
    360 int	sunos_sys_getrlimit(struct proc *, void *, register_t *);
    361 int	sunos_sys_setrlimit(struct proc *, void *, register_t *);
    362 int	compat_43_sys_killpg(struct proc *, void *, register_t *);
    363 int	compat_43_sys_getsockname(struct proc *, void *, register_t *);
    364 int	sys_poll(struct proc *, void *, register_t *);
    365 #ifdef NFSSERVER
    366 int	sunos_sys_nfssvc(struct proc *, void *, register_t *);
    367 #else
    368 #endif
    369 int	compat_12_sys_getdirentries(struct proc *, void *, register_t *);
    370 int	sunos_sys_statfs(struct proc *, void *, register_t *);
    371 int	sunos_sys_fstatfs(struct proc *, void *, register_t *);
    372 int	sunos_sys_unmount(struct proc *, void *, register_t *);
    373 #ifdef NFS
    374 int	async_daemon(struct proc *, void *, register_t *);
    375 int	sys_getfh(struct proc *, void *, register_t *);
    376 #else
    377 #endif
    378 int	compat_09_sys_getdomainname(struct proc *, void *, register_t *);
    379 int	compat_09_sys_setdomainname(struct proc *, void *, register_t *);
    380 int	sunos_sys_quotactl(struct proc *, void *, register_t *);
    381 int	sunos_sys_exportfs(struct proc *, void *, register_t *);
    382 int	sunos_sys_mount(struct proc *, void *, register_t *);
    383 int	sunos_sys_ustat(struct proc *, void *, register_t *);
    384 #ifdef SYSVSEM
    385 int	compat_10_sys_semsys(struct proc *, void *, register_t *);
    386 #else
    387 #endif
    388 #ifdef SYSVMSG
    389 int	compat_10_sys_msgsys(struct proc *, void *, register_t *);
    390 #else
    391 #endif
    392 #ifdef SYSVSHM
    393 int	compat_10_sys_shmsys(struct proc *, void *, register_t *);
    394 #else
    395 #endif
    396 int	sunos_sys_auditsys(struct proc *, void *, register_t *);
    397 int	sunos_sys_getdents(struct proc *, void *, register_t *);
    398 int	sys_setsid(struct proc *, void *, register_t *);
    399 int	sys_fchdir(struct proc *, void *, register_t *);
    400 int	sys_fchroot(struct proc *, void *, register_t *);
    401 int	sunos_sys_sigpending(struct proc *, void *, register_t *);
    402 int	sys_setpgid(struct proc *, void *, register_t *);
    403 int	sys_pathconf(struct proc *, void *, register_t *);
    404 int	sys_fpathconf(struct proc *, void *, register_t *);
    405 int	sunos_sys_sysconf(struct proc *, void *, register_t *);
    406 int	sunos_sys_uname(struct proc *, void *, register_t *);
    407 #endif /* _SUNOS_SYS__SYSCALLARGS_H_ */
    408