sysproto.h revision 33041
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * created from	Id: syscalls.master,v 1.48 1998/02/03 17:45:43 bde Exp
6 */
7
8#ifndef _SYS_SYSPROTO_H_
9#define	_SYS_SYSPROTO_H_
10
11#include <sys/signal.h>
12
13struct proc;
14
15struct	nosys_args {
16	int dummy;
17};
18struct	rexit_args {
19	int rval;
20};
21struct	fork_args {
22	int dummy;
23};
24struct	read_args {
25	int fd;
26	char * buf;
27	u_int nbyte;
28};
29struct	write_args {
30	int fd;
31	char * buf;
32	u_int nbyte;
33};
34struct	open_args {
35	char * path;
36	int flags;
37	int mode;
38};
39struct	close_args {
40	int fd;
41};
42struct	wait_args {
43	int pid;
44	int * status;
45	int options;
46	struct rusage * rusage;
47};
48struct	link_args {
49	char * path;
50	char * link;
51};
52struct	unlink_args {
53	char * path;
54};
55struct	chdir_args {
56	char * path;
57};
58struct	fchdir_args {
59	int fd;
60};
61struct	mknod_args {
62	char * path;
63	int mode;
64	int dev;
65};
66struct	chmod_args {
67	char * path;
68	int mode;
69};
70struct	chown_args {
71	char * path;
72	int uid;
73	int gid;
74};
75struct	obreak_args {
76	char * nsize;
77};
78struct	getfsstat_args {
79	struct statfs * buf;
80	long bufsize;
81	int flags;
82};
83struct	getpid_args {
84	int dummy;
85};
86struct	mount_args {
87	char * type;
88	char * path;
89	int flags;
90	caddr_t data;
91};
92struct	unmount_args {
93	char * path;
94	int flags;
95};
96struct	setuid_args {
97	uid_t uid;
98};
99struct	getuid_args {
100	int dummy;
101};
102struct	geteuid_args {
103	int dummy;
104};
105struct	ptrace_args {
106	int req;
107	pid_t pid;
108	caddr_t addr;
109	int data;
110};
111struct	recvmsg_args {
112	int s;
113	struct msghdr * msg;
114	int flags;
115};
116struct	sendmsg_args {
117	int s;
118	caddr_t msg;
119	int flags;
120};
121struct	recvfrom_args {
122	int s;
123	caddr_t buf;
124	size_t len;
125	int flags;
126	caddr_t from;
127	int * fromlenaddr;
128};
129struct	accept_args {
130	int s;
131	caddr_t name;
132	int * anamelen;
133};
134struct	getpeername_args {
135	int fdes;
136	caddr_t asa;
137	int * alen;
138};
139struct	getsockname_args {
140	int fdes;
141	caddr_t asa;
142	int * alen;
143};
144struct	access_args {
145	char * path;
146	int flags;
147};
148struct	chflags_args {
149	char * path;
150	int flags;
151};
152struct	fchflags_args {
153	int fd;
154	int flags;
155};
156struct	sync_args {
157	int dummy;
158};
159struct	kill_args {
160	int pid;
161	int signum;
162};
163struct	getppid_args {
164	int dummy;
165};
166struct	dup_args {
167	u_int fd;
168};
169struct	pipe_args {
170	int dummy;
171};
172struct	getegid_args {
173	int dummy;
174};
175struct	profil_args {
176	caddr_t samples;
177	u_int size;
178	u_int offset;
179	u_int scale;
180};
181struct	ktrace_args {
182	char * fname;
183	int ops;
184	int facs;
185	int pid;
186};
187struct	sigaction_args {
188	int signum;
189	struct sigaction * nsa;
190	struct sigaction * osa;
191};
192struct	getgid_args {
193	int dummy;
194};
195struct	sigprocmask_args {
196	int how;
197	sigset_t mask;
198};
199struct	getlogin_args {
200	char * namebuf;
201	u_int namelen;
202};
203struct	setlogin_args {
204	char * namebuf;
205};
206struct	acct_args {
207	char * path;
208};
209struct	sigpending_args {
210	int dummy;
211};
212struct	sigaltstack_args {
213	struct sigaltstack * nss;
214	struct sigaltstack * oss;
215};
216struct	ioctl_args {
217	int fd;
218	u_long com;
219	caddr_t data;
220};
221struct	reboot_args {
222	int opt;
223};
224struct	revoke_args {
225	char * path;
226};
227struct	symlink_args {
228	char * path;
229	char * link;
230};
231struct	readlink_args {
232	char * path;
233	char * buf;
234	int count;
235};
236struct	execve_args {
237	char * fname;
238	char ** argv;
239	char ** envv;
240};
241struct	umask_args {
242	int newmask;
243};
244struct	chroot_args {
245	char * path;
246};
247struct	getpagesize_args {
248	int dummy;
249};
250struct	msync_args {
251	void * addr;
252	size_t len;
253	int flags;
254};
255struct	vfork_args {
256	int dummy;
257};
258struct	sbrk_args {
259	int incr;
260};
261struct	sstk_args {
262	int incr;
263};
264struct	ovadvise_args {
265	int anom;
266};
267struct	munmap_args {
268	void * addr;
269	size_t len;
270};
271struct	mprotect_args {
272	const void * addr;
273	size_t len;
274	int prot;
275};
276struct	madvise_args {
277	void * addr;
278	size_t len;
279	int behav;
280};
281struct	mincore_args {
282	const void * addr;
283	size_t len;
284	char * vec;
285};
286struct	getgroups_args {
287	u_int gidsetsize;
288	gid_t * gidset;
289};
290struct	setgroups_args {
291	u_int gidsetsize;
292	gid_t * gidset;
293};
294struct	getpgrp_args {
295	int dummy;
296};
297struct	setpgid_args {
298	int pid;
299	int pgid;
300};
301struct	setitimer_args {
302	u_int which;
303	struct itimerval * itv;
304	struct itimerval * oitv;
305};
306struct	owait_args {
307	int dummy;
308};
309struct	swapon_args {
310	char * name;
311};
312struct	getitimer_args {
313	u_int which;
314	struct itimerval * itv;
315};
316struct	getdtablesize_args {
317	int dummy;
318};
319struct	dup2_args {
320	u_int from;
321	u_int to;
322};
323struct	fcntl_args {
324	int fd;
325	int cmd;
326	int arg;
327};
328struct	select_args {
329	int nd;
330	fd_set * in;
331	fd_set * ou;
332	fd_set * ex;
333	struct timeval * tv;
334};
335struct	fsync_args {
336	int fd;
337};
338struct	setpriority_args {
339	int which;
340	int who;
341	int prio;
342};
343struct	socket_args {
344	int domain;
345	int type;
346	int protocol;
347};
348struct	connect_args {
349	int s;
350	caddr_t name;
351	int namelen;
352};
353struct	getpriority_args {
354	int which;
355	int who;
356};
357struct	sigreturn_args {
358	struct sigcontext * sigcntxp;
359};
360struct	bind_args {
361	int s;
362	caddr_t name;
363	int namelen;
364};
365struct	setsockopt_args {
366	int s;
367	int level;
368	int name;
369	caddr_t val;
370	int valsize;
371};
372struct	listen_args {
373	int s;
374	int backlog;
375};
376struct	sigsuspend_args {
377	sigset_t mask;
378};
379struct	gettimeofday_args {
380	struct timeval * tp;
381	struct timezone * tzp;
382};
383struct	getrusage_args {
384	int who;
385	struct rusage * rusage;
386};
387struct	getsockopt_args {
388	int s;
389	int level;
390	int name;
391	caddr_t val;
392	int * avalsize;
393};
394struct	readv_args {
395	int fd;
396	struct iovec * iovp;
397	u_int iovcnt;
398};
399struct	writev_args {
400	int fd;
401	struct iovec * iovp;
402	u_int iovcnt;
403};
404struct	settimeofday_args {
405	struct timeval * tv;
406	struct timezone * tzp;
407};
408struct	fchown_args {
409	int fd;
410	int uid;
411	int gid;
412};
413struct	fchmod_args {
414	int fd;
415	int mode;
416};
417struct	setreuid_args {
418	int ruid;
419	int euid;
420};
421struct	setregid_args {
422	int rgid;
423	int egid;
424};
425struct	rename_args {
426	char * from;
427	char * to;
428};
429struct	flock_args {
430	int fd;
431	int how;
432};
433struct	mkfifo_args {
434	char * path;
435	int mode;
436};
437struct	sendto_args {
438	int s;
439	caddr_t buf;
440	size_t len;
441	int flags;
442	caddr_t to;
443	int tolen;
444};
445struct	shutdown_args {
446	int s;
447	int how;
448};
449struct	socketpair_args {
450	int domain;
451	int type;
452	int protocol;
453	int * rsv;
454};
455struct	mkdir_args {
456	char * path;
457	int mode;
458};
459struct	rmdir_args {
460	char * path;
461};
462struct	utimes_args {
463	char * path;
464	struct timeval * tptr;
465};
466struct	adjtime_args {
467	struct timeval * delta;
468	struct timeval * olddelta;
469};
470struct	ogethostid_args {
471	int dummy;
472};
473struct	setsid_args {
474	int dummy;
475};
476struct	quotactl_args {
477	char * path;
478	int cmd;
479	int uid;
480	caddr_t arg;
481};
482struct	oquota_args {
483	int dummy;
484};
485struct	nfssvc_args {
486	int flag;
487	caddr_t argp;
488};
489struct	statfs_args {
490	char * path;
491	struct statfs * buf;
492};
493struct	fstatfs_args {
494	int fd;
495	struct statfs * buf;
496};
497struct	getfh_args {
498	char * fname;
499	struct fhandle * fhp;
500};
501struct	getdomainname_args {
502	char * domainname;
503	int len;
504};
505struct	setdomainname_args {
506	char * domainname;
507	int len;
508};
509struct	uname_args {
510	struct utsname * name;
511};
512struct	sysarch_args {
513	int op;
514	char * parms;
515};
516struct	rtprio_args {
517	int function;
518	pid_t pid;
519	struct rtprio * rtp;
520};
521struct	semsys_args {
522	int which;
523	int a2;
524	int a3;
525	int a4;
526	int a5;
527};
528struct	msgsys_args {
529	int which;
530	int a2;
531	int a3;
532	int a4;
533	int a5;
534	int a6;
535};
536struct	shmsys_args {
537	int which;
538	int a2;
539	int a3;
540	int a4;
541};
542struct	ntp_adjtime_args {
543	struct timex * tp;
544};
545struct	setgid_args {
546	gid_t gid;
547};
548struct	setegid_args {
549	gid_t egid;
550};
551struct	seteuid_args {
552	uid_t euid;
553};
554struct	stat_args {
555	char * path;
556	struct stat * ub;
557};
558struct	fstat_args {
559	int fd;
560	struct stat * sb;
561};
562struct	lstat_args {
563	char * path;
564	struct stat * ub;
565};
566struct	pathconf_args {
567	char * path;
568	int name;
569};
570struct	fpathconf_args {
571	int fd;
572	int name;
573};
574struct	__getrlimit_args {
575	u_int which;
576	struct orlimit * rlp;
577};
578struct	__setrlimit_args {
579	u_int which;
580	struct orlimit * rlp;
581};
582struct	getdirentries_args {
583	int fd;
584	char * buf;
585	u_int count;
586	long * basep;
587};
588struct	mmap_args {
589	caddr_t addr;
590	size_t len;
591	int prot;
592	int flags;
593	int fd;
594	long pad;
595	off_t pos;
596};
597struct	lseek_args {
598	int fd;
599	int pad;
600	off_t offset;
601	int whence;
602};
603struct	truncate_args {
604	char * path;
605	int pad;
606	off_t length;
607};
608struct	ftruncate_args {
609	int fd;
610	int pad;
611	off_t length;
612};
613struct	sysctl_args {
614	int * name;
615	u_int namelen;
616	void * old;
617	size_t * oldlenp;
618	void * new;
619	size_t newlen;
620};
621struct	mlock_args {
622	const void * addr;
623	size_t len;
624};
625struct	munlock_args {
626	const void * addr;
627	size_t len;
628};
629struct	utrace_args {
630	caddr_t addr;
631	size_t len;
632};
633struct	undelete_args {
634	char * path;
635};
636struct	getpgid_args {
637	pid_t pid;
638};
639struct	poll_args {
640	struct pollfd * fds;
641	u_int nfds;
642	int timeout;
643};
644struct	__semctl_args {
645	int semid;
646	int semnum;
647	int cmd;
648	union semun * arg;
649};
650struct	semget_args {
651	key_t key;
652	int nsems;
653	int semflg;
654};
655struct	semop_args {
656	int semid;
657	struct sembuf * sops;
658	u_int nsops;
659};
660struct	semconfig_args {
661	int flag;
662};
663struct	msgctl_args {
664	int msqid;
665	int cmd;
666	struct msqid_ds * buf;
667};
668struct	msgget_args {
669	key_t key;
670	int msgflg;
671};
672struct	msgsnd_args {
673	int msqid;
674	void * msgp;
675	size_t msgsz;
676	int msgflg;
677};
678struct	msgrcv_args {
679	int msqid;
680	void * msgp;
681	size_t msgsz;
682	long msgtyp;
683	int msgflg;
684};
685struct	shmat_args {
686	int shmid;
687	void * shmaddr;
688	int shmflg;
689};
690struct	shmctl_args {
691	int shmid;
692	int cmd;
693	struct shmid_ds * buf;
694};
695struct	shmdt_args {
696	void * shmaddr;
697};
698struct	shmget_args {
699	key_t key;
700	int size;
701	int shmflg;
702};
703struct	clock_gettime_args {
704	clockid_t clock_id;
705	struct timespec * tp;
706};
707struct	clock_settime_args {
708	clockid_t clock_id;
709	const struct timespec * tp;
710};
711struct	clock_getres_args {
712	clockid_t clock_id;
713	struct timespec * tp;
714};
715struct	nanosleep_args {
716	const struct timespec * rqtp;
717	struct timespec * rmtp;
718};
719struct	minherit_args {
720	void * addr;
721	size_t len;
722	int inherit;
723};
724struct	rfork_args {
725	int flags;
726};
727struct	openbsd_poll_args {
728	struct pollfd * fds;
729	u_int nfds;
730	int timeout;
731};
732struct	issetugid_args {
733	int dummy;
734};
735struct	lchown_args {
736	char * path;
737	int uid;
738	int gid;
739};
740struct	modnext_args {
741	int modid;
742};
743struct	modstat_args {
744	int modid;
745	struct module_stat * stat;
746};
747struct	modfnext_args {
748	int modid;
749};
750struct	modfind_args {
751	char * name;
752};
753struct	kldload_args {
754	const char * file;
755};
756struct	kldunload_args {
757	int fileid;
758};
759struct	kldfind_args {
760	const char * file;
761};
762struct	kldnext_args {
763	int fileid;
764};
765struct	kldstat_args {
766	int fileid;
767	struct kld_file_stat * stat;
768};
769struct	kldfirstmod_args {
770	int fileid;
771};
772struct	getsid_args {
773	pid_t pid;
774};
775struct	signanosleep_args {
776	const struct timespec * rqtp;
777	struct timespec * rmtp;
778	sigset_t * mask;
779};
780struct	aio_return_args {
781	struct aiocb * aiocbp;
782};
783struct	aio_suspend_args {
784	struct aiocb *const * aiocbp;
785	int nent;
786	const struct timespec * timeout;
787};
788struct	aio_cancel_args {
789	int fd;
790	struct aiocb * aiocbp;
791};
792struct	aio_error_args {
793	struct aiocb * aiocbp;
794};
795struct	aio_read_args {
796	struct aiocb * aiocbp;
797};
798struct	aio_write_args {
799	struct aiocb * aiocbp;
800};
801struct	lio_listio_args {
802	int mode;
803	struct aiocb *const * acb_list;
804	int nent;
805	struct sigevent * sig;
806};
807struct	yield_args {
808	int dummy;
809};
810struct	thr_sleep_args {
811	const struct timespec * timeout;
812};
813struct	thr_wakeup_args {
814	pid_t pid;
815};
816struct	mlockall_args {
817	int how;
818};
819struct	munlockall_args {
820	int dummy;
821};
822struct	__getcwd_args {
823	u_char * buf;
824	u_int buflen;
825};
826int	nosys __P((struct proc *, struct nosys_args *));
827void	exit __P((struct proc *, struct rexit_args *)) __dead2;
828int	fork __P((struct proc *, struct fork_args *));
829int	read __P((struct proc *, struct read_args *));
830int	write __P((struct proc *, struct write_args *));
831int	open __P((struct proc *, struct open_args *));
832int	close __P((struct proc *, struct close_args *));
833int	wait4 __P((struct proc *, struct wait_args *));
834int	link __P((struct proc *, struct link_args *));
835int	unlink __P((struct proc *, struct unlink_args *));
836int	chdir __P((struct proc *, struct chdir_args *));
837int	fchdir __P((struct proc *, struct fchdir_args *));
838int	mknod __P((struct proc *, struct mknod_args *));
839int	chmod __P((struct proc *, struct chmod_args *));
840int	chown __P((struct proc *, struct chown_args *));
841int	obreak __P((struct proc *, struct obreak_args *));
842int	getfsstat __P((struct proc *, struct getfsstat_args *));
843int	getpid __P((struct proc *, struct getpid_args *));
844int	mount __P((struct proc *, struct mount_args *));
845int	unmount __P((struct proc *, struct unmount_args *));
846int	setuid __P((struct proc *, struct setuid_args *));
847int	getuid __P((struct proc *, struct getuid_args *));
848int	geteuid __P((struct proc *, struct geteuid_args *));
849int	ptrace __P((struct proc *, struct ptrace_args *));
850int	recvmsg __P((struct proc *, struct recvmsg_args *));
851int	sendmsg __P((struct proc *, struct sendmsg_args *));
852int	recvfrom __P((struct proc *, struct recvfrom_args *));
853int	accept __P((struct proc *, struct accept_args *));
854int	getpeername __P((struct proc *, struct getpeername_args *));
855int	getsockname __P((struct proc *, struct getsockname_args *));
856int	access __P((struct proc *, struct access_args *));
857int	chflags __P((struct proc *, struct chflags_args *));
858int	fchflags __P((struct proc *, struct fchflags_args *));
859int	sync __P((struct proc *, struct sync_args *));
860int	kill __P((struct proc *, struct kill_args *));
861int	getppid __P((struct proc *, struct getppid_args *));
862int	dup __P((struct proc *, struct dup_args *));
863int	pipe __P((struct proc *, struct pipe_args *));
864int	getegid __P((struct proc *, struct getegid_args *));
865int	profil __P((struct proc *, struct profil_args *));
866int	ktrace __P((struct proc *, struct ktrace_args *));
867int	sigaction __P((struct proc *, struct sigaction_args *));
868int	getgid __P((struct proc *, struct getgid_args *));
869int	sigprocmask __P((struct proc *, struct sigprocmask_args *));
870int	getlogin __P((struct proc *, struct getlogin_args *));
871int	setlogin __P((struct proc *, struct setlogin_args *));
872int	acct __P((struct proc *, struct acct_args *));
873int	sigpending __P((struct proc *, struct sigpending_args *));
874int	sigaltstack __P((struct proc *, struct sigaltstack_args *));
875int	ioctl __P((struct proc *, struct ioctl_args *));
876int	reboot __P((struct proc *, struct reboot_args *));
877int	revoke __P((struct proc *, struct revoke_args *));
878int	symlink __P((struct proc *, struct symlink_args *));
879int	readlink __P((struct proc *, struct readlink_args *));
880int	execve __P((struct proc *, struct execve_args *));
881int	umask __P((struct proc *, struct umask_args *));
882int	chroot __P((struct proc *, struct chroot_args *));
883int	msync __P((struct proc *, struct msync_args *));
884int	vfork __P((struct proc *, struct vfork_args *));
885int	sbrk __P((struct proc *, struct sbrk_args *));
886int	sstk __P((struct proc *, struct sstk_args *));
887int	ovadvise __P((struct proc *, struct ovadvise_args *));
888int	munmap __P((struct proc *, struct munmap_args *));
889int	mprotect __P((struct proc *, struct mprotect_args *));
890int	madvise __P((struct proc *, struct madvise_args *));
891int	mincore __P((struct proc *, struct mincore_args *));
892int	getgroups __P((struct proc *, struct getgroups_args *));
893int	setgroups __P((struct proc *, struct setgroups_args *));
894int	getpgrp __P((struct proc *, struct getpgrp_args *));
895int	setpgid __P((struct proc *, struct setpgid_args *));
896int	setitimer __P((struct proc *, struct setitimer_args *));
897int	swapon __P((struct proc *, struct swapon_args *));
898int	getitimer __P((struct proc *, struct getitimer_args *));
899int	getdtablesize __P((struct proc *, struct getdtablesize_args *));
900int	dup2 __P((struct proc *, struct dup2_args *));
901int	fcntl __P((struct proc *, struct fcntl_args *));
902int	select __P((struct proc *, struct select_args *));
903int	fsync __P((struct proc *, struct fsync_args *));
904int	setpriority __P((struct proc *, struct setpriority_args *));
905int	socket __P((struct proc *, struct socket_args *));
906int	connect __P((struct proc *, struct connect_args *));
907int	getpriority __P((struct proc *, struct getpriority_args *));
908int	sigreturn __P((struct proc *, struct sigreturn_args *));
909int	bind __P((struct proc *, struct bind_args *));
910int	setsockopt __P((struct proc *, struct setsockopt_args *));
911int	listen __P((struct proc *, struct listen_args *));
912int	sigsuspend __P((struct proc *, struct sigsuspend_args *));
913int	gettimeofday __P((struct proc *, struct gettimeofday_args *));
914int	getrusage __P((struct proc *, struct getrusage_args *));
915int	getsockopt __P((struct proc *, struct getsockopt_args *));
916int	readv __P((struct proc *, struct readv_args *));
917int	writev __P((struct proc *, struct writev_args *));
918int	settimeofday __P((struct proc *, struct settimeofday_args *));
919int	fchown __P((struct proc *, struct fchown_args *));
920int	fchmod __P((struct proc *, struct fchmod_args *));
921int	setreuid __P((struct proc *, struct setreuid_args *));
922int	setregid __P((struct proc *, struct setregid_args *));
923int	rename __P((struct proc *, struct rename_args *));
924int	flock __P((struct proc *, struct flock_args *));
925int	mkfifo __P((struct proc *, struct mkfifo_args *));
926int	sendto __P((struct proc *, struct sendto_args *));
927int	shutdown __P((struct proc *, struct shutdown_args *));
928int	socketpair __P((struct proc *, struct socketpair_args *));
929int	mkdir __P((struct proc *, struct mkdir_args *));
930int	rmdir __P((struct proc *, struct rmdir_args *));
931int	utimes __P((struct proc *, struct utimes_args *));
932int	adjtime __P((struct proc *, struct adjtime_args *));
933int	setsid __P((struct proc *, struct setsid_args *));
934int	quotactl __P((struct proc *, struct quotactl_args *));
935int	nfssvc __P((struct proc *, struct nfssvc_args *));
936int	statfs __P((struct proc *, struct statfs_args *));
937int	fstatfs __P((struct proc *, struct fstatfs_args *));
938int	getfh __P((struct proc *, struct getfh_args *));
939int	getdomainname __P((struct proc *, struct getdomainname_args *));
940int	setdomainname __P((struct proc *, struct setdomainname_args *));
941int	uname __P((struct proc *, struct uname_args *));
942int	sysarch __P((struct proc *, struct sysarch_args *));
943int	rtprio __P((struct proc *, struct rtprio_args *));
944int	semsys __P((struct proc *, struct semsys_args *));
945int	msgsys __P((struct proc *, struct msgsys_args *));
946int	shmsys __P((struct proc *, struct shmsys_args *));
947int	ntp_adjtime __P((struct proc *, struct ntp_adjtime_args *));
948int	setgid __P((struct proc *, struct setgid_args *));
949int	setegid __P((struct proc *, struct setegid_args *));
950int	seteuid __P((struct proc *, struct seteuid_args *));
951int	stat __P((struct proc *, struct stat_args *));
952int	fstat __P((struct proc *, struct fstat_args *));
953int	lstat __P((struct proc *, struct lstat_args *));
954int	pathconf __P((struct proc *, struct pathconf_args *));
955int	fpathconf __P((struct proc *, struct fpathconf_args *));
956int	getrlimit __P((struct proc *, struct __getrlimit_args *));
957int	setrlimit __P((struct proc *, struct __setrlimit_args *));
958int	getdirentries __P((struct proc *, struct getdirentries_args *));
959int	mmap __P((struct proc *, struct mmap_args *));
960int	lseek __P((struct proc *, struct lseek_args *));
961int	truncate __P((struct proc *, struct truncate_args *));
962int	ftruncate __P((struct proc *, struct ftruncate_args *));
963int	__sysctl __P((struct proc *, struct sysctl_args *));
964int	mlock __P((struct proc *, struct mlock_args *));
965int	munlock __P((struct proc *, struct munlock_args *));
966int	utrace __P((struct proc *, struct utrace_args *));
967int	undelete __P((struct proc *, struct undelete_args *));
968int	getpgid __P((struct proc *, struct getpgid_args *));
969int	poll __P((struct proc *, struct poll_args *));
970int	lkmnosys __P((struct proc *, struct nosys_args *));
971int	__semctl __P((struct proc *, struct __semctl_args *));
972int	semget __P((struct proc *, struct semget_args *));
973int	semop __P((struct proc *, struct semop_args *));
974int	semconfig __P((struct proc *, struct semconfig_args *));
975int	msgctl __P((struct proc *, struct msgctl_args *));
976int	msgget __P((struct proc *, struct msgget_args *));
977int	msgsnd __P((struct proc *, struct msgsnd_args *));
978int	msgrcv __P((struct proc *, struct msgrcv_args *));
979int	shmat __P((struct proc *, struct shmat_args *));
980int	shmctl __P((struct proc *, struct shmctl_args *));
981int	shmdt __P((struct proc *, struct shmdt_args *));
982int	shmget __P((struct proc *, struct shmget_args *));
983int	clock_gettime __P((struct proc *, struct clock_gettime_args *));
984int	clock_settime __P((struct proc *, struct clock_settime_args *));
985int	clock_getres __P((struct proc *, struct clock_getres_args *));
986int	nanosleep __P((struct proc *, struct nanosleep_args *));
987int	minherit __P((struct proc *, struct minherit_args *));
988int	rfork __P((struct proc *, struct rfork_args *));
989int	openbsd_poll __P((struct proc *, struct openbsd_poll_args *));
990int	issetugid __P((struct proc *, struct issetugid_args *));
991int	lchown __P((struct proc *, struct lchown_args *));
992int	modnext __P((struct proc *, struct modnext_args *));
993int	modstat __P((struct proc *, struct modstat_args *));
994int	modfnext __P((struct proc *, struct modfnext_args *));
995int	modfind __P((struct proc *, struct modfind_args *));
996int	kldload __P((struct proc *, struct kldload_args *));
997int	kldunload __P((struct proc *, struct kldunload_args *));
998int	kldfind __P((struct proc *, struct kldfind_args *));
999int	kldnext __P((struct proc *, struct kldnext_args *));
1000int	kldstat __P((struct proc *, struct kldstat_args *));
1001int	kldfirstmod __P((struct proc *, struct kldfirstmod_args *));
1002int	getsid __P((struct proc *, struct getsid_args *));
1003int	signanosleep __P((struct proc *, struct signanosleep_args *));
1004int	aio_return __P((struct proc *, struct aio_return_args *));
1005int	aio_suspend __P((struct proc *, struct aio_suspend_args *));
1006int	aio_cancel __P((struct proc *, struct aio_cancel_args *));
1007int	aio_error __P((struct proc *, struct aio_error_args *));
1008int	aio_read __P((struct proc *, struct aio_read_args *));
1009int	aio_write __P((struct proc *, struct aio_write_args *));
1010int	lio_listio __P((struct proc *, struct lio_listio_args *));
1011int	yield __P((struct proc *, struct yield_args *));
1012int	thr_sleep __P((struct proc *, struct thr_sleep_args *));
1013int	thr_wakeup __P((struct proc *, struct thr_wakeup_args *));
1014int	mlockall __P((struct proc *, struct mlockall_args *));
1015int	munlockall __P((struct proc *, struct munlockall_args *));
1016int	__getcwd __P((struct proc *, struct __getcwd_args *));
1017
1018#ifdef COMPAT_43
1019
1020struct	ocreat_args {
1021	char * path;
1022	int mode;
1023};
1024struct	olseek_args {
1025	int fd;
1026	long offset;
1027	int whence;
1028};
1029struct	ostat_args {
1030	char * path;
1031	struct ostat * ub;
1032};
1033struct	olstat_args {
1034	char * path;
1035	struct ostat * ub;
1036};
1037struct	ofstat_args {
1038	int fd;
1039	struct ostat * sb;
1040};
1041struct	getkerninfo_args {
1042	int op;
1043	char * where;
1044	int * size;
1045	int arg;
1046};
1047struct	ommap_args {
1048	void * addr;
1049	int len;
1050	int prot;
1051	int flags;
1052	int fd;
1053	long pos;
1054};
1055struct	gethostname_args {
1056	char * hostname;
1057	u_int len;
1058};
1059struct	sethostname_args {
1060	char * hostname;
1061	u_int len;
1062};
1063struct	osend_args {
1064	int s;
1065	caddr_t buf;
1066	int len;
1067	int flags;
1068};
1069struct	orecv_args {
1070	int s;
1071	caddr_t buf;
1072	int len;
1073	int flags;
1074};
1075struct	osigvec_args {
1076	int signum;
1077	struct sigvec * nsv;
1078	struct sigvec * osv;
1079};
1080struct	osigblock_args {
1081	int mask;
1082};
1083struct	osigsetmask_args {
1084	int mask;
1085};
1086struct	osigstack_args {
1087	struct sigstack * nss;
1088	struct sigstack * oss;
1089};
1090struct	orecvmsg_args {
1091	int s;
1092	struct omsghdr * msg;
1093	int flags;
1094};
1095struct	osendmsg_args {
1096	int s;
1097	caddr_t msg;
1098	int flags;
1099};
1100struct	otruncate_args {
1101	char * path;
1102	long length;
1103};
1104struct	oftruncate_args {
1105	int fd;
1106	long length;
1107};
1108struct	ogetpeername_args {
1109	int fdes;
1110	caddr_t asa;
1111	int * alen;
1112};
1113struct	osethostid_args {
1114	long hostid;
1115};
1116struct	ogetrlimit_args {
1117	u_int which;
1118	struct ogetrlimit * rlp;
1119};
1120struct	osetrlimit_args {
1121	u_int which;
1122	struct ogetrlimit * rlp;
1123};
1124struct	okillpg_args {
1125	int pgid;
1126	int signum;
1127};
1128struct	ogetdirentries_args {
1129	int fd;
1130	char * buf;
1131	u_int count;
1132	long * basep;
1133};
1134int	ocreat __P((struct proc *, struct ocreat_args *));
1135int	olseek __P((struct proc *, struct olseek_args *));
1136int	ostat __P((struct proc *, struct ostat_args *));
1137int	olstat __P((struct proc *, struct olstat_args *));
1138int	ofstat __P((struct proc *, struct ofstat_args *));
1139int	ogetkerninfo __P((struct proc *, struct getkerninfo_args *));
1140int	ogetpagesize __P((struct proc *, struct getpagesize_args *));
1141int	ommap __P((struct proc *, struct ommap_args *));
1142int	owait __P((struct proc *, struct owait_args *));
1143int	ogethostname __P((struct proc *, struct gethostname_args *));
1144int	osethostname __P((struct proc *, struct sethostname_args *));
1145int	oaccept __P((struct proc *, struct accept_args *));
1146int	osend __P((struct proc *, struct osend_args *));
1147int	orecv __P((struct proc *, struct orecv_args *));
1148int	osigvec __P((struct proc *, struct osigvec_args *));
1149int	osigblock __P((struct proc *, struct osigblock_args *));
1150int	osigsetmask __P((struct proc *, struct osigsetmask_args *));
1151int	osigstack __P((struct proc *, struct osigstack_args *));
1152int	orecvmsg __P((struct proc *, struct orecvmsg_args *));
1153int	osendmsg __P((struct proc *, struct osendmsg_args *));
1154int	orecvfrom __P((struct proc *, struct recvfrom_args *));
1155int	otruncate __P((struct proc *, struct otruncate_args *));
1156int	oftruncate __P((struct proc *, struct oftruncate_args *));
1157int	ogetpeername __P((struct proc *, struct ogetpeername_args *));
1158int	ogethostid __P((struct proc *, struct ogethostid_args *));
1159int	osethostid __P((struct proc *, struct osethostid_args *));
1160int	ogetrlimit __P((struct proc *, struct ogetrlimit_args *));
1161int	osetrlimit __P((struct proc *, struct osetrlimit_args *));
1162int	okillpg __P((struct proc *, struct okillpg_args *));
1163int	oquota __P((struct proc *, struct oquota_args *));
1164int	ogetsockname __P((struct proc *, struct getsockname_args *));
1165int	ogetdirentries __P((struct proc *, struct ogetdirentries_args *));
1166
1167#endif /* COMPAT_43 */
1168
1169#endif /* !_SYS_SYSPROTO_H_ */
1170