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