Home | History | Annotate | Line # | Download | only in sunos
sunos_syscallargs.h revision 1.15
      1 /*
      2  * System call argument lists.
      3  *
      4  * DO NOT EDIT-- this file is automatically generated.
      5  * created from	NetBSD: syscalls.master,v 1.31 1995/07/05 13:14:17 pk Exp
      6  */
      7 
      8 #define	syscallarg(x)	union { x datum; register_t pad; }
      9 
     10 struct sunos_open_args {
     11 	syscallarg(char *) path;
     12 	syscallarg(int) flags;
     13 	syscallarg(int) mode;
     14 };
     15 
     16 struct sunos_wait4_args {
     17 	syscallarg(int) pid;
     18 	syscallarg(int *) status;
     19 	syscallarg(int) options;
     20 	syscallarg(struct rusage *) rusage;
     21 };
     22 
     23 struct sunos_creat_args {
     24 	syscallarg(char *) path;
     25 	syscallarg(int) mode;
     26 };
     27 
     28 struct sunos_execv_args {
     29 	syscallarg(char *) path;
     30 	syscallarg(char **) argp;
     31 };
     32 
     33 struct sunos_mknod_args {
     34 	syscallarg(char *) path;
     35 	syscallarg(int) mode;
     36 	syscallarg(int) dev;
     37 };
     38 
     39 struct sunos_ptrace_args {
     40 	syscallarg(int) req;
     41 	syscallarg(int) pid;
     42 	syscallarg(char *) addr;
     43 	syscallarg(int) data;
     44 	syscallarg(char *) addr2;
     45 };
     46 
     47 struct sunos_access_args {
     48 	syscallarg(char *) path;
     49 	syscallarg(int) flags;
     50 };
     51 
     52 struct sunos_stat_args {
     53 	syscallarg(char *) path;
     54 	syscallarg(struct ostat *) ub;
     55 };
     56 
     57 struct sunos_lstat_args {
     58 	syscallarg(char *) path;
     59 	syscallarg(struct ostat *) ub;
     60 };
     61 
     62 struct sunos_mctl_args {
     63 	syscallarg(caddr_t) addr;
     64 	syscallarg(int) len;
     65 	syscallarg(int) func;
     66 	syscallarg(void *) arg;
     67 };
     68 
     69 struct sunos_ioctl_args {
     70 	syscallarg(int) fd;
     71 	syscallarg(u_long) com;
     72 	syscallarg(caddr_t) data;
     73 };
     74 
     75 struct sunos_reboot_args {
     76 	syscallarg(int) howto;
     77 	syscallarg(char *) bootstr;
     78 };
     79 
     80 struct sunos_omsync_args {
     81 	syscallarg(caddr_t) addr;
     82 	syscallarg(int) len;
     83 	syscallarg(int) flags;
     84 };
     85 
     86 struct sunos_mmap_args {
     87 	syscallarg(caddr_t) addr;
     88 	syscallarg(int) len;
     89 	syscallarg(int) prot;
     90 	syscallarg(u_int) flags;
     91 	syscallarg(int) fd;
     92 	syscallarg(long) pos;
     93 };
     94 
     95 struct sunos_setpgid_args {
     96 	syscallarg(int) pid;
     97 	syscallarg(int) pgid;
     98 };
     99 
    100 struct sunos_setsockopt_args {
    101 	syscallarg(int) s;
    102 	syscallarg(int) level;
    103 	syscallarg(int) name;
    104 	syscallarg(caddr_t) val;
    105 	syscallarg(int) valsize;
    106 };
    107 
    108 struct sunos_sigvec_args {
    109 	syscallarg(int) signum;
    110 	syscallarg(struct sigvec *) nsv;
    111 	syscallarg(struct sigvec *) osv;
    112 };
    113 
    114 struct sunos_sigreturn_args {
    115 	syscallarg(struct sigcontext *) sigcntxp;
    116 };
    117 
    118 struct sunos_getrlimit_args {
    119 	syscallarg(u_int) which;
    120 	syscallarg(struct orlimit *) rlp;
    121 };
    122 
    123 struct sunos_setrlimit_args {
    124 	syscallarg(u_int) which;
    125 	syscallarg(struct orlimit *) rlp;
    126 };
    127 
    128 struct sunos_poll_args {
    129 	syscallarg(struct sunos_pollfd *) fds;
    130 	syscallarg(long) nfds;
    131 	syscallarg(int) timeout;
    132 };
    133 
    134 struct sunos_nfssvc_args {
    135 	syscallarg(int) fd;
    136 };
    137 
    138 struct sunos_statfs_args {
    139 	syscallarg(char *) path;
    140 	syscallarg(struct sunos_statfs *) buf;
    141 };
    142 
    143 struct sunos_fstatfs_args {
    144 	syscallarg(int) fd;
    145 	syscallarg(struct sunos_statfs *) buf;
    146 };
    147 
    148 struct sunos_unmount_args {
    149 	syscallarg(char *) path;
    150 	syscallarg(int) flags;
    151 };
    152 
    153 struct sunos_quotactl_args {
    154 	syscallarg(int) cmd;
    155 	syscallarg(char *) special;
    156 	syscallarg(int) uid;
    157 	syscallarg(caddr_t) addr;
    158 };
    159 
    160 struct sunos_exportfs_args {
    161 	syscallarg(char *) path;
    162 	syscallarg(char *) ex;
    163 };
    164 
    165 struct sunos_mount_args {
    166 	syscallarg(char *) type;
    167 	syscallarg(char *) dir;
    168 	syscallarg(int) flags;
    169 	syscallarg(caddr_t) data;
    170 };
    171 
    172 struct sunos_ustat_args {
    173 	syscallarg(int) dev;
    174 	syscallarg(struct sunos_ustat *) buf;
    175 };
    176 
    177 struct sunos_auditsys_args {
    178 	syscallarg(char *) record;
    179 };
    180 
    181 struct sunos_getdents_args {
    182 	syscallarg(int) fd;
    183 	syscallarg(char *) buf;
    184 	syscallarg(int) nbytes;
    185 };
    186 
    187 struct sunos_fchroot_args {
    188 	syscallarg(int) fd;
    189 };
    190 
    191 struct sunos_sigpending_args {
    192 	syscallarg(int *) mask;
    193 };
    194 
    195 struct sunos_sysconf_args {
    196 	syscallarg(int) name;
    197 };
    198 
    199 struct sunos_uname_args {
    200 	syscallarg(struct sunos_utsname *) name;
    201 };
    202 
    203 #undef	syscallarg
    204 
    205 /*
    206  * System call prototypes.
    207  */
    208 
    209 int	nosys	__P((struct proc *, void *, register_t *));
    210 int	exit	__P((struct proc *, void *, register_t *));
    211 int	fork	__P((struct proc *, void *, register_t *));
    212 int	read	__P((struct proc *, void *, register_t *));
    213 int	write	__P((struct proc *, void *, register_t *));
    214 int	sunos_open	__P((struct proc *, void *, register_t *));
    215 int	close	__P((struct proc *, void *, register_t *));
    216 int	sunos_wait4	__P((struct proc *, void *, register_t *));
    217 int	sunos_creat	__P((struct proc *, void *, register_t *));
    218 int	link	__P((struct proc *, void *, register_t *));
    219 int	unlink	__P((struct proc *, void *, register_t *));
    220 int	sunos_execv	__P((struct proc *, void *, register_t *));
    221 int	chdir	__P((struct proc *, void *, register_t *));
    222 int	sunos_mknod	__P((struct proc *, void *, register_t *));
    223 int	chmod	__P((struct proc *, void *, register_t *));
    224 int	chown	__P((struct proc *, void *, register_t *));
    225 int	obreak	__P((struct proc *, void *, register_t *));
    226 int	compat_43_lseek	__P((struct proc *, void *, register_t *));
    227 int	getpid	__P((struct proc *, void *, register_t *));
    228 int	setuid	__P((struct proc *, void *, register_t *));
    229 int	getuid	__P((struct proc *, void *, register_t *));
    230 int	sunos_ptrace	__P((struct proc *, void *, register_t *));
    231 int	sunos_access	__P((struct proc *, void *, register_t *));
    232 int	sync	__P((struct proc *, void *, register_t *));
    233 int	kill	__P((struct proc *, void *, register_t *));
    234 int	sunos_stat	__P((struct proc *, void *, register_t *));
    235 int	sunos_lstat	__P((struct proc *, void *, register_t *));
    236 int	dup	__P((struct proc *, void *, register_t *));
    237 int	pipe	__P((struct proc *, void *, register_t *));
    238 int	profil	__P((struct proc *, void *, register_t *));
    239 int	setgid	__P((struct proc *, void *, register_t *));
    240 int	getgid	__P((struct proc *, void *, register_t *));
    241 int	acct	__P((struct proc *, void *, register_t *));
    242 int	sunos_mctl	__P((struct proc *, void *, register_t *));
    243 int	sunos_ioctl	__P((struct proc *, void *, register_t *));
    244 int	sunos_reboot	__P((struct proc *, void *, register_t *));
    245 int	symlink	__P((struct proc *, void *, register_t *));
    246 int	readlink	__P((struct proc *, void *, register_t *));
    247 int	execve	__P((struct proc *, void *, register_t *));
    248 int	umask	__P((struct proc *, void *, register_t *));
    249 int	chroot	__P((struct proc *, void *, register_t *));
    250 int	compat_43_fstat	__P((struct proc *, void *, register_t *));
    251 int	compat_43_getpagesize	__P((struct proc *, void *, register_t *));
    252 int	sunos_omsync	__P((struct proc *, void *, register_t *));
    253 int	vfork	__P((struct proc *, void *, register_t *));
    254 int	sbrk	__P((struct proc *, void *, register_t *));
    255 int	sstk	__P((struct proc *, void *, register_t *));
    256 int	sunos_mmap	__P((struct proc *, void *, register_t *));
    257 int	ovadvise	__P((struct proc *, void *, register_t *));
    258 int	munmap	__P((struct proc *, void *, register_t *));
    259 int	mprotect	__P((struct proc *, void *, register_t *));
    260 int	madvise	__P((struct proc *, void *, register_t *));
    261 int	sunos_vhangup	__P((struct proc *, void *, register_t *));
    262 int	mincore	__P((struct proc *, void *, register_t *));
    263 int	getgroups	__P((struct proc *, void *, register_t *));
    264 int	setgroups	__P((struct proc *, void *, register_t *));
    265 int	getpgrp	__P((struct proc *, void *, register_t *));
    266 int	sunos_setpgid	__P((struct proc *, void *, register_t *));
    267 int	setitimer	__P((struct proc *, void *, register_t *));
    268 int	swapon	__P((struct proc *, void *, register_t *));
    269 int	getitimer	__P((struct proc *, void *, register_t *));
    270 int	compat_43_gethostname	__P((struct proc *, void *, register_t *));
    271 int	compat_43_sethostname	__P((struct proc *, void *, register_t *));
    272 int	compat_43_getdtablesize	__P((struct proc *, void *, register_t *));
    273 int	dup2	__P((struct proc *, void *, register_t *));
    274 int	fcntl	__P((struct proc *, void *, register_t *));
    275 int	select	__P((struct proc *, void *, register_t *));
    276 int	fsync	__P((struct proc *, void *, register_t *));
    277 int	setpriority	__P((struct proc *, void *, register_t *));
    278 int	socket	__P((struct proc *, void *, register_t *));
    279 int	connect	__P((struct proc *, void *, register_t *));
    280 int	compat_43_accept	__P((struct proc *, void *, register_t *));
    281 int	getpriority	__P((struct proc *, void *, register_t *));
    282 int	compat_43_send	__P((struct proc *, void *, register_t *));
    283 int	compat_43_recv	__P((struct proc *, void *, register_t *));
    284 int	bind	__P((struct proc *, void *, register_t *));
    285 int	sunos_setsockopt	__P((struct proc *, void *, register_t *));
    286 int	listen	__P((struct proc *, void *, register_t *));
    287 int	sunos_sigvec	__P((struct proc *, void *, register_t *));
    288 int	compat_43_sigblock	__P((struct proc *, void *, register_t *));
    289 int	compat_43_sigsetmask	__P((struct proc *, void *, register_t *));
    290 int	sigsuspend	__P((struct proc *, void *, register_t *));
    291 int	compat_43_sigstack	__P((struct proc *, void *, register_t *));
    292 int	compat_43_recvmsg	__P((struct proc *, void *, register_t *));
    293 int	compat_43_sendmsg	__P((struct proc *, void *, register_t *));
    294 int	gettimeofday	__P((struct proc *, void *, register_t *));
    295 int	getrusage	__P((struct proc *, void *, register_t *));
    296 int	getsockopt	__P((struct proc *, void *, register_t *));
    297 int	readv	__P((struct proc *, void *, register_t *));
    298 int	writev	__P((struct proc *, void *, register_t *));
    299 int	settimeofday	__P((struct proc *, void *, register_t *));
    300 int	fchown	__P((struct proc *, void *, register_t *));
    301 int	fchmod	__P((struct proc *, void *, register_t *));
    302 int	compat_43_recvfrom	__P((struct proc *, void *, register_t *));
    303 int	compat_43_setreuid	__P((struct proc *, void *, register_t *));
    304 int	compat_43_setregid	__P((struct proc *, void *, register_t *));
    305 int	rename	__P((struct proc *, void *, register_t *));
    306 int	compat_43_truncate	__P((struct proc *, void *, register_t *));
    307 int	compat_43_ftruncate	__P((struct proc *, void *, register_t *));
    308 int	flock	__P((struct proc *, void *, register_t *));
    309 int	sendto	__P((struct proc *, void *, register_t *));
    310 int	shutdown	__P((struct proc *, void *, register_t *));
    311 int	socketpair	__P((struct proc *, void *, register_t *));
    312 int	mkdir	__P((struct proc *, void *, register_t *));
    313 int	rmdir	__P((struct proc *, void *, register_t *));
    314 int	utimes	__P((struct proc *, void *, register_t *));
    315 int	sunos_sigreturn	__P((struct proc *, void *, register_t *));
    316 int	adjtime	__P((struct proc *, void *, register_t *));
    317 int	compat_43_getpeername	__P((struct proc *, void *, register_t *));
    318 int	compat_43_gethostid	__P((struct proc *, void *, register_t *));
    319 int	sunos_getrlimit	__P((struct proc *, void *, register_t *));
    320 int	sunos_setrlimit	__P((struct proc *, void *, register_t *));
    321 int	compat_43_killpg	__P((struct proc *, void *, register_t *));
    322 int	compat_43_getsockname	__P((struct proc *, void *, register_t *));
    323 int	sunos_poll	__P((struct proc *, void *, register_t *));
    324 #ifdef NFSSERVER
    325 int	sunos_nfssvc	__P((struct proc *, void *, register_t *));
    326 #else
    327 #endif
    328 int	getdirentries	__P((struct proc *, void *, register_t *));
    329 int	sunos_statfs	__P((struct proc *, void *, register_t *));
    330 int	sunos_fstatfs	__P((struct proc *, void *, register_t *));
    331 int	sunos_unmount	__P((struct proc *, void *, register_t *));
    332 #ifdef NFSCLIENT
    333 int	async_daemon	__P((struct proc *, void *, register_t *));
    334 int	getfh	__P((struct proc *, void *, register_t *));
    335 #else
    336 #endif
    337 int	compat_09_getdomainname	__P((struct proc *, void *, register_t *));
    338 int	compat_09_setdomainname	__P((struct proc *, void *, register_t *));
    339 int	sunos_quotactl	__P((struct proc *, void *, register_t *));
    340 int	sunos_exportfs	__P((struct proc *, void *, register_t *));
    341 int	sunos_mount	__P((struct proc *, void *, register_t *));
    342 int	sunos_ustat	__P((struct proc *, void *, register_t *));
    343 #ifdef SYSVSEM
    344 int	compat_10_semsys	__P((struct proc *, void *, register_t *));
    345 #else
    346 #endif
    347 #ifdef SYSVMSG
    348 int	compat_10_msgsys	__P((struct proc *, void *, register_t *));
    349 #else
    350 #endif
    351 #ifdef SYSVSHM
    352 int	compat_10_shmsys	__P((struct proc *, void *, register_t *));
    353 #else
    354 #endif
    355 int	sunos_auditsys	__P((struct proc *, void *, register_t *));
    356 int	sunos_getdents	__P((struct proc *, void *, register_t *));
    357 int	setsid	__P((struct proc *, void *, register_t *));
    358 int	fchdir	__P((struct proc *, void *, register_t *));
    359 int	sunos_fchroot	__P((struct proc *, void *, register_t *));
    360 int	sunos_sigpending	__P((struct proc *, void *, register_t *));
    361 int	setpgid	__P((struct proc *, void *, register_t *));
    362 int	pathconf	__P((struct proc *, void *, register_t *));
    363 int	fpathconf	__P((struct proc *, void *, register_t *));
    364 int	sunos_sysconf	__P((struct proc *, void *, register_t *));
    365 int	sunos_uname	__P((struct proc *, void *, register_t *));
    366 
    367 #ifdef COMPAT_43
    368 #define compat_43(func) __CONCAT(compat_43_,func)
    369 
    370 #ifdef NFSSERVER
    371 #else
    372 #endif
    373 #ifdef NFSCLIENT
    374 #else
    375 #endif
    376 #ifdef SYSVSEM
    377 #else
    378 #endif
    379 #ifdef SYSVMSG
    380 #else
    381 #endif
    382 #ifdef SYSVSHM
    383 #else
    384 #endif
    385 
    386 #else /* COMPAT_43 */
    387 #define compat_43(func) nosys
    388 #endif /* COMPAT_43 */
    389 
    390 
    391 #ifdef COMPAT_09
    392 #define compat_09(func) __CONCAT(compat_09_,func)
    393 
    394 #ifdef NFSSERVER
    395 #else
    396 #endif
    397 #ifdef NFSCLIENT
    398 #else
    399 #endif
    400 #ifdef SYSVSEM
    401 #else
    402 #endif
    403 #ifdef SYSVMSG
    404 #else
    405 #endif
    406 #ifdef SYSVSHM
    407 #else
    408 #endif
    409 
    410 #else /* COMPAT_09 */
    411 #define compat_09(func) nosys
    412 #endif /* COMPAT_09 */
    413 
    414 
    415 #ifdef COMPAT_10
    416 #define compat_10(func) __CONCAT(compat_10_,func)
    417 
    418 #ifdef NFSSERVER
    419 #else
    420 #endif
    421 #ifdef NFSCLIENT
    422 #else
    423 #endif
    424 #ifdef SYSVSEM
    425 #else
    426 #endif
    427 #ifdef SYSVMSG
    428 #else
    429 #endif
    430 #ifdef SYSVSHM
    431 #else
    432 #endif
    433 
    434 #else /* COMPAT_10 */
    435 #define compat_10(func) nosys
    436 #endif /* COMPAT_10 */
    437 
    438