aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sysproto.h
blob: 58cd124210b57b611841336360ba2739b0c378a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
/*
 * System call prototypes.
 *
 * DO NOT EDIT-- this file is automatically generated.
 * created from	Id: syscalls.master,v 1.17 1995/10/07 06:24:08 swallace Exp 
 */

#ifndef _SYS_SYSPROTO_H_
#define	_SYS_SYSPROTO_H_

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

struct	nosys_args {
	int dummy;
};
struct	rexit_args {
	int rval;
};
struct	fork_args {
	int dummy;
};
struct	read_args {
	int fd;
	char * buf;
	u_int nbyte;
};
struct	write_args {
	int fd;
	char * buf;
	u_int nbyte;
};
struct	open_args {
	char * path;
	int flags;
	int mode;
};
struct	close_args {
	int fd;
};
struct	wait_args {
	int pid;
	int * status;
	int options;
	struct rusage * rusage;
};
struct	link_args {
	char * path;
	char * link;
};
struct	unlink_args {
	char * path;
};
struct	chdir_args {
	char * path;
};
struct	fchdir_args {
	int fd;
};
struct	mknod_args {
	char * path;
	int mode;
	int dev;
};
struct	chmod_args {
	char * path;
	int mode;
};
struct	chown_args {
	char * path;
	int uid;
	int gid;
};
struct	obreak_args {
	char * nsize;
};
struct	getfsstat_args {
	struct statfs * buf;
	long bufsize;
	int flags;
};
struct	getpid_args {
	int dummy;
};
struct	mount_args {
	char * type;
	char * path;
	int flags;
	caddr_t data;
};
struct	unmount_args {
	char * path;
	int flags;
};
struct	setuid_args {
	uid_t uid;
};
struct	getuid_args {
	int dummy;
};
struct	geteuid_args {
	int dummy;
};
struct	ptrace_args {
	int req;
	pid_t pid;
	caddr_t addr;
	int data;
};
struct	recvmsg_args {
	int s;
	struct msghdr * msg;
	int flags;
};
struct	sendmsg_args {
	int s;
	caddr_t msg;
	int flags;
};
struct	recvfrom_args {
	int s;
	caddr_t buf;
	size_t len;
	int flags;
	caddr_t from;
	int * fromlenaddr;
};
struct	accept_args {
	int s;
	caddr_t name;
	int * anamelen;
};
struct	getpeername_args {
	int fdes;
	caddr_t asa;
	int * alen;
};
struct	getsockname_args {
	int fdes;
	caddr_t asa;
	int * alen;
};
struct	access_args {
	char * path;
	int flags;
};
struct	chflags_args {
	char * path;
	int flags;
};
struct	fchflags_args {
	int fd;
	int flags;
};
struct	sync_args {
	int dummy;
};
struct	kill_args {
	int pid;
	int signum;
};
struct	getppid_args {
	int dummy;
};
struct	dup_args {
	u_int fd;
};
struct	pipe_args {
	int dummy;
};
struct	getegid_args {
	int dummy;
};
struct	profil_args {
	caddr_t samples;
	u_int size;
	u_int offset;
	u_int scale;
};
#ifdef KTRACE
struct	ktrace_args {
	char * fname;
	int ops;
	int facs;
	int pid;
};
#else
#endif
struct	sigaction_args {
	int signum;
	struct sigaction * nsa;
	struct sigaction * osa;
};
struct	getgid_args {
	int dummy;
};
struct	sigprocmask_args {
	int how;
	sigset_t mask;
};
struct	getlogin_args {
	char * namebuf;
	u_int namelen;
};
struct	setlogin_args {
	char * namebuf;
};
struct	acct_args {
	char * path;
};
struct	sigpending_args {
	int dummy;
};
struct	sigaltstack_args {
	struct sigaltstack * nss;
	struct sigaltstack * oss;
};
struct	ioctl_args {
	int fd;
	u_long com;
	caddr_t data;
};
struct	reboot_args {
	int opt;
};
struct	revoke_args {
	char * path;
};
struct	symlink_args {
	char * path;
	char * link;
};
struct	readlink_args {
	char * path;
	char * buf;
	int count;
};
struct	execve_args {
	char * fname;
	char ** argv;
	char ** envv;
};
struct	umask_args {
	int newmask;
};
struct	chroot_args {
	char * path;
};
struct	getpagesize_args {
	int dummy;
};
struct	msync_args {
	caddr_t addr;
	size_t len;
	int flags;
};
struct	sbrk_args {
	int incr;
};
struct	sstk_args {
	int incr;
};
struct	ovadvise_args {
	int anom;
};
struct	munmap_args {
	caddr_t addr;
	size_t len;
};
struct	mprotect_args {
	caddr_t addr;
	size_t len;
	int prot;
};
struct	madvise_args {
	caddr_t addr;
	size_t len;
	int behav;
};
struct	mincore_args {
	caddr_t addr;
	size_t len;
	char * vec;
};
struct	getgroups_args {
	u_int gidsetsize;
	gid_t * gidset;
};
struct	setgroups_args {
	u_int gidsetsize;
	gid_t * gidset;
};
struct	getpgrp_args {
	int dummy;
};
struct	setpgid_args {
	int pid;
	int pgid;
};
struct	setitimer_args {
	u_int which;
	struct itimerval * itv;
	struct itimerval * oitv;
};
struct	owait_args {
	int dummy;
};
struct	swapon_args {
	char * name;
};
struct	getitimer_args {
	u_int which;
	struct itimerval * itv;
};
struct	getdtablesize_args {
	int dummy;
};
struct	dup2_args {
	u_int from;
	u_int to;
};
struct	fcntl_args {
	int fd;
	int cmd;
	void * arg;
};
struct	select_args {
	u_int nd;
	fd_set * in;
	fd_set * ou;
	fd_set * ex;
	struct timeval * tv;
};
struct	fsync_args {
	int fd;
};
struct	setpriority_args {
	int which;
	int who;
	int prio;
};
struct	socket_args {
	int domain;
	int type;
	int protocol;
};
struct	connect_args {
	int s;
	caddr_t name;
	int namelen;
};
struct	getpriority_args {
	int which;
	int who;
};
struct	sigreturn_args {
	struct sigcontext * sigcntxp;
};
struct	bind_args {
	int s;
	caddr_t name;
	int namelen;
};
struct	setsockopt_args {
	int s;
	int level;
	int name;
	caddr_t val;
	int valsize;
};
struct	listen_args {
	int s;
	int backlog;
};
struct	sigsuspend_args {
	int mask;
};
struct	gettimeofday_args {
	struct timeval * tp;
	struct timezone * tzp;
};
struct	getrusage_args {
	int who;
	struct rusage * rusage;
};
struct	getsockopt_args {
	int s;
	int level;
	int name;
	caddr_t val;
	int * avalsize;
};
struct	readv_args {
	int fd;
	struct iovec * iovp;
	u_int iovcnt;
};
struct	writev_args {
	int fd;
	struct iovec * iovp;
	u_int iovcnt;
};
struct	settimeofday_args {
	struct timeval * tv;
	struct timezone * tzp;
};
struct	fchown_args {
	int fd;
	int uid;
	int gid;
};
struct	fchmod_args {
	int fd;
	int mode;
};
struct	setreuid_args {
	int ruid;
	int euid;
};
struct	setregid_args {
	int rgid;
	int egid;
};
struct	rename_args {
	char * from;
	char * to;
};
struct	flock_args {
	int fd;
	int how;
};
struct	mkfifo_args {
	char * path;
	int mode;
};
struct	sendto_args {
	int s;
	caddr_t buf;
	size_t len;
	int flags;
	caddr_t to;
	int tolen;
};
struct	shutdown_args {
	int s;
	int how;
};
struct	socketpair_args {
	int domain;
	int type;
	int protocol;
	int * rsv;
};
struct	mkdir_args {
	char * path;
	int mode;
};
struct	rmdir_args {
	char * path;
};
struct	utimes_args {
	char * path;
	struct timeval * tptr;
};
struct	adjtime_args {
	struct timeval * delta;
	struct timeval * olddelta;
};
struct	ogethostid_args {
	int dummy;
};
struct	setsid_args {
	int dummy;
};
struct	quotactl_args {
	char * path;
	int cmd;
	int uid;
	caddr_t arg;
};
struct	oquota_args {
	int dummy;
};
#ifdef NFS
struct	nfssvc_args {
	int flag;
	caddr_t argp;
};
#else
#endif
struct	statfs_args {
	char * path;
	struct statfs * buf;
};
struct	fstatfs_args {
	int fd;
	struct statfs * buf;
};
#ifdef NFS
struct	getfh_args {
	char * fname;
	fhandle_t * fhp;
};
#else
#endif
struct	getdomainname_args {
	char * domainname;
	int len;
};
struct	setdomainname_args {
	char * domainname;
	int len;
};
struct	uname_args {
	struct outsname * name;
};
struct	sysarch_args {
	int op;
	char * parms;
};
struct	rtprio_args {
	int function;
	pid_t pid;
	struct rtprio * rtp;
};
#ifdef SYSVSEM
struct	semsys_args {
	int which;
	int a2;
	int a3;
	int a4;
	int a5;
};
#else
#endif
#ifdef SYSVMSG
struct	msgsys_args {
	int which;
	int a2;
	int a3;
	int a4;
	int a5;
	int a6;
};
#else
#endif
#ifdef SYSVSHM
struct	shmsys_args {
	int which;
	int a2;
	int a3;
	int a4;
};
#else
#endif
struct	ntp_adjtime_args {
	struct timex * tp;
};
struct	setgid_args {
	gid_t gid;
};
struct	setegid_args {
	gid_t egid;
};
struct	seteuid_args {
	uid_t euid;
};
#ifdef LFS
struct	lfs_bmapv_args {
	fsid_t * fsidp;
	struct block_info * blkiov;
	int blkcnt;
};
struct	lfs_markv_args {
	fsid_t * fsidp;
	struct block_info * blkiov;
	int blkcnt;
};
struct	lfs_segclean_args {
	fsid_t * fsidp;
	u_long segment;
};
struct	lfs_segwait_args {
	fsid_t * fsidp;
	struct timeval * tv;
};
#else
#endif
struct	stat_args {
	char * path;
	struct stat * ub;
};
struct	fstat_args {
	int fd;
	struct stat * sb;
};
struct	lstat_args {
	char * path;
	struct stat * ub;
};
struct	pathconf_args {
	char * path;
	int name;
};
struct	fpathconf_args {
	int fd;
	int name;
};
struct	__getrlimit_args {
	u_int which;
	struct orlimit * rlp;
};
struct	__setrlimit_args {
	u_int which;
	struct orlimit * rlp;
};
struct	getdirentries_args {
	int fd;
	char * buf;
	u_int count;
	long * basep;
};
struct	mmap_args {
	caddr_t addr;
	size_t len;
	int prot;
	int flags;
	int fd;
	long pad;
	off_t pos;
};
struct	lseek_args {
	int fd;
	int pad;
	off_t offset;
	int whence;
};
struct	truncate_args {
	char * path;
	int pad;
	off_t length;
};
struct	ftruncate_args {
	int fd;
	int pad;
	off_t length;
};
struct	sysctl_args {
	int * name;
	u_int namelen;
	void * old;
	size_t * oldlenp;
	void * new;
	size_t newlen;
};
struct	mlock_args {
	caddr_t addr;
	size_t len;
};
struct	munlock_args {
	caddr_t addr;
	size_t len;
};
int	nosys __P((struct proc *, struct nosys_args *, int []));
__dead void	exit __P((struct proc *, struct rexit_args *, int []));
int	fork __P((struct proc *, struct fork_args *, int []));
int	read __P((struct proc *, struct read_args *, int []));
int	write __P((struct proc *, struct write_args *, int []));
int	open __P((struct proc *, struct open_args *, int []));
int	close __P((struct proc *, struct close_args *, int []));
int	wait4 __P((struct proc *, struct wait_args *, int []));
int	link __P((struct proc *, struct link_args *, int []));
int	unlink __P((struct proc *, struct unlink_args *, int []));
int	chdir __P((struct proc *, struct chdir_args *, int []));
int	fchdir __P((struct proc *, struct fchdir_args *, int []));
int	mknod __P((struct proc *, struct mknod_args *, int []));
int	chmod __P((struct proc *, struct chmod_args *, int []));
int	chown __P((struct proc *, struct chown_args *, int []));
int	obreak __P((struct proc *, struct obreak_args *, int []));
int	getfsstat __P((struct proc *, struct getfsstat_args *, int []));
int	getpid __P((struct proc *, struct getpid_args *, int []));
int	mount __P((struct proc *, struct mount_args *, int []));
int	unmount __P((struct proc *, struct unmount_args *, int []));
int	setuid __P((struct proc *, struct setuid_args *, int []));
int	getuid __P((struct proc *, struct getuid_args *, int []));
int	geteuid __P((struct proc *, struct geteuid_args *, int []));
int	ptrace __P((struct proc *, struct ptrace_args *, int []));
int	recvmsg __P((struct proc *, struct recvmsg_args *, int []));
int	sendmsg __P((struct proc *, struct sendmsg_args *, int []));
int	recvfrom __P((struct proc *, struct recvfrom_args *, int []));
int	accept __P((struct proc *, struct accept_args *, int []));
int	getpeername __P((struct proc *, struct getpeername_args *, int []));
int	getsockname __P((struct proc *, struct getsockname_args *, int []));
int	access __P((struct proc *, struct access_args *, int []));
int	chflags __P((struct proc *, struct chflags_args *, int []));
int	fchflags __P((struct proc *, struct fchflags_args *, int []));
int	sync __P((struct proc *, struct sync_args *, int []));
int	kill __P((struct proc *, struct kill_args *, int []));
int	getppid __P((struct proc *, struct getppid_args *, int []));
int	dup __P((struct proc *, struct dup_args *, int []));
int	pipe __P((struct proc *, struct pipe_args *, int []));
int	getegid __P((struct proc *, struct getegid_args *, int []));
int	profil __P((struct proc *, struct profil_args *, int []));
#ifdef KTRACE
int	ktrace __P((struct proc *, struct ktrace_args *, int []));
#else
#endif
int	sigaction __P((struct proc *, struct sigaction_args *, int []));
int	getgid __P((struct proc *, struct getgid_args *, int []));
int	sigprocmask __P((struct proc *, struct sigprocmask_args *, int []));
int	getlogin __P((struct proc *, struct getlogin_args *, int []));
int	setlogin __P((struct proc *, struct setlogin_args *, int []));
int	acct __P((struct proc *, struct acct_args *, int []));
int	sigpending __P((struct proc *, struct sigpending_args *, int []));
int	sigaltstack __P((struct proc *, struct sigaltstack_args *, int []));
int	ioctl __P((struct proc *, struct ioctl_args *, int []));
int	reboot __P((struct proc *, struct reboot_args *, int []));
int	revoke __P((struct proc *, struct revoke_args *, int []));
int	symlink __P((struct proc *, struct symlink_args *, int []));
int	readlink __P((struct proc *, struct readlink_args *, int []));
int	execve __P((struct proc *, struct execve_args *, int []));
mode_t	umask __P((struct proc *, struct umask_args *, int []));
int	chroot __P((struct proc *, struct chroot_args *, int []));
int	msync __P((struct proc *, struct msync_args *, int []));
int	vfork __P((struct proc *, struct fork_args *, int []));
int	sbrk __P((struct proc *, struct sbrk_args *, int []));
int	sstk __P((struct proc *, struct sstk_args *, int []));
int	ovadvise __P((struct proc *, struct ovadvise_args *, int []));
int	munmap __P((struct proc *, struct munmap_args *, int []));
int	mprotect __P((struct proc *, struct mprotect_args *, int []));
int	madvise __P((struct proc *, struct madvise_args *, int []));
int	mincore __P((struct proc *, struct mincore_args *, int []));
int	getgroups __P((struct proc *, struct getgroups_args *, int []));
int	setgroups __P((struct proc *, struct setgroups_args *, int []));
int	getpgrp __P((struct proc *, struct getpgrp_args *, int []));
int	setpgid __P((struct proc *, struct setpgid_args *, int []));
int	setitimer __P((struct proc *, struct setitimer_args *, int []));
int	swapon __P((struct proc *, struct swapon_args *, int []));
int	getitimer __P((struct proc *, struct getitimer_args *, int []));
int	getdtablesize __P((struct proc *, struct getdtablesize_args *, int []));
int	dup2 __P((struct proc *, struct dup2_args *, int []));
int	fcntl __P((struct proc *, struct fcntl_args *, int []));
int	select __P((struct proc *, struct select_args *, int []));
int	fsync __P((struct proc *, struct fsync_args *, int []));
int	setpriority __P((struct proc *, struct setpriority_args *, int []));
int	socket __P((struct proc *, struct socket_args *, int []));
int	connect __P((struct proc *, struct connect_args *, int []));
int	getpriority __P((struct proc *, struct getpriority_args *, int []));
int	sigreturn __P((struct proc *, struct sigreturn_args *, int []));
int	bind __P((struct proc *, struct bind_args *, int []));
int	setsockopt __P((struct proc *, struct setsockopt_args *, int []));
int	listen __P((struct proc *, struct listen_args *, int []));
int	sigsuspend __P((struct proc *, struct sigsuspend_args *, int []));
int	gettimeofday __P((struct proc *, struct gettimeofday_args *, int []));
int	getrusage __P((struct proc *, struct getrusage_args *, int []));
int	getsockopt __P((struct proc *, struct getsockopt_args *, int []));
int	readv __P((struct proc *, struct readv_args *, int []));
int	writev __P((struct proc *, struct writev_args *, int []));
int	settimeofday __P((struct proc *, struct settimeofday_args *, int []));
int	fchown __P((struct proc *, struct fchown_args *, int []));
int	fchmod __P((struct proc *, struct fchmod_args *, int []));
int	setreuid __P((struct proc *, struct setreuid_args *, int []));
int	setregid __P((struct proc *, struct setregid_args *, int []));
int	rename __P((struct proc *, struct rename_args *, int []));
int	flock __P((struct proc *, struct flock_args *, int []));
int	mkfifo __P((struct proc *, struct mkfifo_args *, int []));
int	sendto __P((struct proc *, struct sendto_args *, int []));
int	shutdown __P((struct proc *, struct shutdown_args *, int []));
int	socketpair __P((struct proc *, struct socketpair_args *, int []));
int	mkdir __P((struct proc *, struct mkdir_args *, int []));
int	rmdir __P((struct proc *, struct rmdir_args *, int []));
int	utimes __P((struct proc *, struct utimes_args *, int []));
int	adjtime __P((struct proc *, struct adjtime_args *, int []));
int	setsid __P((struct proc *, struct setsid_args *, int []));
int	quotactl __P((struct proc *, struct quotactl_args *, int []));
#ifdef NFS
int	nfssvc __P((struct proc *, struct nfssvc_args *, int []));
#else
#endif
int	statfs __P((struct proc *, struct statfs_args *, int []));
int	fstatfs __P((struct proc *, struct fstatfs_args *, int []));
#ifdef NFS
int	getfh __P((struct proc *, struct getfh_args *, int []));
#else
#endif
int	getdomainname __P((struct proc *, struct getdomainname_args *, int []));
int	setdomainname __P((struct proc *, struct setdomainname_args *, int []));
int	uname __P((struct proc *, struct uname_args *, int []));
int	sysarch __P((struct proc *, struct sysarch_args *, int []));
int	rtprio __P((struct proc *, struct rtprio_args *, int []));
#ifdef SYSVSEM
int	semsys __P((struct proc *, struct semsys_args *, int []));
#else
#endif
#ifdef SYSVMSG
int	msgsys __P((struct proc *, struct msgsys_args *, int []));
#else
#endif
#ifdef SYSVSHM
int	shmsys __P((struct proc *, struct shmsys_args *, int []));
#else
#endif
int	ntp_adjtime __P((struct proc *, struct ntp_adjtime_args *, int []));
int	setgid __P((struct proc *, struct setgid_args *, int []));
int	setegid __P((struct proc *, struct setegid_args *, int []));
int	seteuid __P((struct proc *, struct seteuid_args *, int []));
#ifdef LFS
int	lfs_bmapv __P((struct proc *, struct lfs_bmapv_args *, int []));
int	lfs_markv __P((struct proc *, struct lfs_markv_args *, int []));
int	lfs_segclean __P((struct proc *, struct lfs_segclean_args *, int []));
int	lfs_segwait __P((struct proc *, struct lfs_segwait_args *, int []));
#else
#endif
int	stat __P((struct proc *, struct stat_args *, int []));
int	fstat __P((struct proc *, struct fstat_args *, int []));
int	lstat __P((struct proc *, struct lstat_args *, int []));
int	pathconf __P((struct proc *, struct pathconf_args *, int []));
int	fpathconf __P((struct proc *, struct fpathconf_args *, int []));
int	getrlimit __P((struct proc *, struct __getrlimit_args *, int []));
int	setrlimit __P((struct proc *, struct __setrlimit_args *, int []));
int	getdirentries __P((struct proc *, struct getdirentries_args *, int []));
int	mmap __P((struct proc *, struct mmap_args *, int []));
int	lseek __P((struct proc *, struct lseek_args *, int []));
int	truncate __P((struct proc *, struct truncate_args *, int []));
int	ftruncate __P((struct proc *, struct ftruncate_args *, int []));
int	__sysctl __P((struct proc *, struct sysctl_args *, int []));
int	mlock __P((struct proc *, struct mlock_args *, int []));
int	munlock __P((struct proc *, struct munlock_args *, int []));
int	lkmnosys __P((struct proc *, struct nosys_args *, int []));

#ifdef COMPAT_43

struct	ocreat_args {
	char * path;
	int mode;
};
struct	olseek_args {
	int fd;
	long offset;
	int whence;
};
struct	ostat_args {
	char * path;
	struct ostat * ub;
};
struct	olstat_args {
	char * path;
	struct ostat * ub;
};
#ifdef KTRACE
#else
#endif
struct	ofstat_args {
	int fd;
	struct ostat * sb;
};
struct	getkerninfo_args {
	int op;
	char * where;
	int * size;
	int arg;
};
struct	ommap_args {
	caddr_t addr;
	size_t len;
	int prot;
	int flags;
	int fd;
	long pos;
};
struct	gethostname_args {
	char * hostname;
	u_int len;
};
struct	sethostname_args {
	char * hostname;
	u_int len;
};
struct	osend_args {
	int s;
	caddr_t buf;
	int len;
	int flags;
};
struct	orecv_args {
	int s;
	caddr_t buf;
	int len;
	int flags;
};
struct	osigvec_args {
	int signum;
	struct sigvec * nsv;
	struct sigvec * osv;
};
struct	osigblock_args {
	int mask;
};
struct	osigsetmask_args {
	int mask;
};
struct	osigstack_args {
	struct sigstack * nss;
	struct sigstack * oss;
};
struct	orecvmsg_args {
	int s;
	struct omsghdr * msg;
	int flags;
};
struct	osendmsg_args {
	int s;
	caddr_t msg;
	int flags;
};
struct	otruncate_args {
	char * path;
	long length;
};
struct	oftruncate_args {
	int fd;
	long length;
};
struct	ogetpeername_args {
	int fdes;
	caddr_t asa;
	int * alen;
};
struct	osethostid_args {
	long hostid;
};
struct	ogetrlimit_args {
	u_int which;
	struct ogetrlimit * rlp;
};
struct	osetrlimit_args {
	u_int which;
	struct ogetrlimit * rlp;
};
struct	okillpg_args {
	int pgid;
	int signum;
};
#ifdef NFS
#else
#endif
struct	ogetdirentries_args {
	int fd;
	char * buf;
	u_int count;
	long * basep;
};
#ifdef NFS
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#ifdef LFS
#else
#endif
int	ocreat __P((struct proc *, struct ocreat_args *, int []));
int	olseek __P((struct proc *, struct olseek_args *, int []));
int	ostat __P((struct proc *, struct ostat_args *, int []));
int	olstat __P((struct proc *, struct olstat_args *, int []));
int	ofstat __P((struct proc *, struct ofstat_args *, int []));
int	ogetkerninfo __P((struct proc *, struct getkerninfo_args *, int []));
int	ogetpagesize __P((struct proc *, struct getpagesize_args *, int []));
int	ommap __P((struct proc *, struct ommap_args *, int []));
int	owait __P((struct proc *, struct owait_args *, int []));
int	ogethostname __P((struct proc *, struct gethostname_args *, int []));
int	osethostname __P((struct proc *, struct sethostname_args *, int []));
int	oaccept __P((struct proc *, struct accept_args *, int []));
int	osend __P((struct proc *, struct osend_args *, int []));
int	orecv __P((struct proc *, struct orecv_args *, int []));
int	osigvec __P((struct proc *, struct osigvec_args *, int []));
int	osigblock __P((struct proc *, struct osigblock_args *, int []));
int	osigsetmask __P((struct proc *, struct osigsetmask_args *, int []));
int	osigstack __P((struct proc *, struct osigstack_args *, int []));
int	orecvmsg __P((struct proc *, struct orecvmsg_args *, int []));
int	osendmsg __P((struct proc *, struct osendmsg_args *, int []));
int	orecvfrom __P((struct proc *, struct recvfrom_args *, int []));
int	otruncate __P((struct proc *, struct otruncate_args *, int []));
int	oftruncate __P((struct proc *, struct oftruncate_args *, int []));
int	ogetpeername __P((struct proc *, struct ogetpeername_args *, int []));
int	ogethostid __P((struct proc *, struct ogethostid_args *, int []));
int	osethostid __P((struct proc *, struct osethostid_args *, int []));
int	ogetrlimit __P((struct proc *, struct ogetrlimit_args *, int []));
int	osetrlimit __P((struct proc *, struct osetrlimit_args *, int []));
int	okillpg __P((struct proc *, struct okillpg_args *, int []));
int	oquota __P((struct proc *, struct oquota_args *, int []));
int	ogetsockname __P((struct proc *, struct getsockname_args *, int []));
int	ogetdirentries __P((struct proc *, struct ogetdirentries_args *, int []));

#endif /* COMPAT_43 */

#endif /* !_SYS_SYSPROTO_H_ */