syscalls.master revision 12216
1193323Sed	$Id: syscalls.master,v 1.18 1995/10/07 23:56:20 swallace Exp $
2193323Sed;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3193323Sed;
4193323Sed; System call name/number master file.
5193323Sed; Processed to created init_sysent.c, syscalls.c and syscall.h.
6193323Sed
7193323Sed; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments
8193323Sed;	number	system call number, must be in order
9193323Sed;	type	one of STD, OBSOL, UNIMPL, COMPAT
10193323Sed;	namespc one of POSIX, BSD, NOHIDE
11193323Sed;	name	psuedo-prototype of syscall routine
12193323Sed;		If one of the following alts is different, then all appear:
13193323Sed;	altname	name of system call if different
14193323Sed;	alttag	name of args struct tag if different from [o]`name'"_args"
15193323Sed;	altrtyp	return type if not int (bogus - syscalls always return int)
16193323Sed;		for UNIMPL/OBSOL, name continues with comments
17193323Sed
18193323Sed; types:
19193323Sed;	STD	always included
20193323Sed;	COMPAT	included on COMPAT #ifdef
21193323Sed;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
22193323Sed;	OBSOL	obsolete, not included in system, only specifies name
23193323Sed;	UNIMPL	not implemented, placeholder only
24193323Sed
25193323Sed; #ifdef's, etc. may be included, and are copied to the output files.
26207618Srdivacky
27193323Sed#include <sys/types.h>
28198892Srdivacky#include <sys/param.h>
29193323Sed#include <sys/mount.h>
30198892Srdivacky#include <sys/sysent.h>
31224145Sdim#include <sys/sysproto.h>
32218893Sdim
33193323Sed; Reserved/unimplemented system calls in the range 0-150 inclusive
34193323Sed; are reserved for use in future Berkeley releases.
35193323Sed; Additional system calls implemented in vendor and other
36198090Srdivacky; redistributions should be placed in the reserved range at the end
37193323Sed; of the current calls.
38207618Srdivacky
39193323Sed0	STD	NOHIDE	{ int nosys(void); } syscall nosys_args int
40226633Sdim1	STD	NOHIDE	{ void exit(int rval); } exit rexit_args void
41193323Sed2	STD	POSIX	{ int fork(void); }
42198090Srdivacky3	STD	POSIX	{ int read(int fd, char *buf, u_int nbyte); }
43193323Sed4	STD	POSIX	{ int write(int fd, char *buf, u_int nbyte); }
44193323Sed5	STD	POSIX	{ int open(char *path, int flags, int mode); }
45226633Sdim; XXX should be		{ int open(const char *path, int flags, ...); }
46226633Sdim; but we're not ready for `const' or varargs.
47226633Sdim; XXX man page says `mode_t mode'.
48234353Sdim6	STD	POSIX	{ int close(int fd); }
49226633Sdim7	STD	BSD	{ int wait4(int pid, int *status, int options, \
50218893Sdim			    struct rusage *rusage); } wait4 wait_args int
51218893Sdim8	COMPAT	BSD	{ int creat(char *path, int mode); }
52218893Sdim9	STD	POSIX	{ int link(char *path, char *link); }
53218893Sdim10	STD	POSIX	{ int unlink(char *path); }
54218893Sdim11	OBSOL	NOHIDE	execv
55218893Sdim12	STD	POSIX	{ int chdir(char *path); }
56218893Sdim13	STD	BSD	{ int fchdir(int fd); }
57218893Sdim14	STD	POSIX	{ int mknod(char *path, int mode, int dev); }
58207618Srdivacky15	STD	POSIX	{ int chmod(char *path, int mode); }
59207618Srdivacky16	STD	POSIX	{ int chown(char *path, int uid, int gid); }
60193323Sed17	STD	BSD	{ int obreak(char *nsize); } break obreak_args int
61193323Sed18	STD	BSD	{ int getfsstat(struct statfs *buf, long bufsize, \
62198892Srdivacky			    int flags); }
63193323Sed19	COMPAT	POSIX	{ long lseek(int fd, long offset, int whence); }
64193323Sed20	STD	POSIX	{ pid_t getpid(void); }
65218893Sdim21	STD	BSD	{ int mount(int type, char *path, int flags, \
66198090Srdivacky			    caddr_t data); }
67207618Srdivacky; XXX 4.4lite2 uses `char *type' but we're not ready for that.
68218893Sdim; XXX `path' should have type `const char *' but we're not ready for that.
69218893Sdim22	STD	BSD	{ int unmount(char *path, int flags); }
70234353Sdim23	STD	POSIX	{ int setuid(uid_t uid); }
71193323Sed24	STD	POSIX	{ uid_t getuid(void); }
72193323Sed25	STD	POSIX	{ uid_t geteuid(void); }
73198090Srdivacky26	STD	BSD	{ int ptrace(int req, pid_t pid, caddr_t addr, \
74207618Srdivacky			    int data); }
75193323Sed27	STD	BSD	{ int recvmsg(int s, struct msghdr *msg, int flags); }
76193323Sed28	STD	BSD	{ int sendmsg(int s, caddr_t msg, int flags); }
77193323Sed29	STD	BSD	{ int recvfrom(int s, caddr_t buf, size_t len, \
78193323Sed			    int flags, caddr_t from, int *fromlenaddr); }
79210299Sed30	STD	BSD	{ int accept(int s, caddr_t name, int *anamelen); }
80193323Sed31	STD	BSD	{ int getpeername(int fdes, caddr_t asa, int *alen); }
81193323Sed32	STD	BSD	{ int getsockname(int fdes, caddr_t asa, int *alen); }
82193323Sed33	STD	POSIX	{ int access(char *path, int flags); }
83234353Sdim34	STD	BSD	{ int chflags(char *path, int flags); }
84234353Sdim35	STD	BSD	{ int fchflags(int fd, int flags); }
85207618Srdivacky36	STD	BSD	{ int sync(void); }
86234353Sdim37	STD	POSIX	{ int kill(int pid, int signum); }
87234353Sdim38	COMPAT	POSIX	{ int stat(char *path, struct ostat *ub); }
88234353Sdim39	STD	POSIX	{ pid_t getppid(void); }
89234353Sdim40	COMPAT	POSIX	{ int lstat(char *path, struct ostat *ub); }
90234353Sdim41	STD	POSIX	{ int dup(u_int fd); }
91218893Sdim42	STD	POSIX	{ int pipe(void); }
92218893Sdim43	STD	POSIX	{ gid_t getegid(void); }
93218893Sdim44	STD	BSD	{ int profil(caddr_t samples, u_int size, \
94218893Sdim			    u_int offset, u_int scale); }
95218893Sdim#ifdef KTRACE
96218893Sdim45	STD	BSD	{ int ktrace(char *fname, int ops, int facs, \
97218893Sdim			    int pid); }
98218893Sdim#else
99218893Sdim45	UNIMPL	BSD	ktrace
100218893Sdim#endif
101218893Sdim46	STD	POSIX	{ int sigaction(int signum, struct sigaction *nsa, \
102212904Sdim			    struct sigaction *osa); }
103198892Srdivacky47	STD	POSIX	{ gid_t getgid(void); }
104207618Srdivacky48	STD	POSIX	{ int sigprocmask(int how, sigset_t mask); }
105226633Sdim49	STD	BSD	{ int getlogin(char *namebuf, u_int namelen); }
106226633Sdim50	STD	BSD	{ int setlogin(char *namebuf); }
107226633Sdim51	STD	BSD	{ int acct(char *path); }
108226633Sdim52	STD	POSIX	{ int sigpending(void); }
109226633Sdim53	STD	BSD	{ int sigaltstack(struct sigaltstack *nss, \
110226633Sdim			    struct sigaltstack *oss); }
111226633Sdim54	STD	POSIX	{ int ioctl(int fd, u_long com, caddr_t data); }
112226633Sdim55	STD	BSD	{ int reboot(int opt); }
113226633Sdim56	STD	POSIX	{ int revoke(char *path); }
114226633Sdim57	STD	POSIX	{ int symlink(char *path, char *link); }
115226633Sdim58	STD	POSIX	{ int readlink(char *path, char *buf, int count); }
116193323Sed59	STD	POSIX	{ int execve(char *fname, char **argv, char **envv); }
117193323Sed60	STD	POSIX	{ int umask(int newmask); } umask umask_args mode_t
118207618Srdivacky61	STD	BSD	{ int chroot(char *path); }
119218893Sdim62	COMPAT	POSIX	{ int fstat(int fd, struct ostat *sb); }
120218893Sdim63	COMPAT	BSD	{ int getkerninfo(int op, char *where, int *size, \
121218893Sdim			    int arg); } getkerninfo getkerninfo_args int
122193323Sed64	COMPAT	BSD	{ int getpagesize(void); } \
123207618Srdivacky			    getpagesize getpagesize_args int
124218893Sdim65	STD	BSD	{ int msync(caddr_t addr, int len, int flags); }
125218893Sdim; XXX should be		{ int msync(caddr_t addr, size_t len, int flags); }
126218893Sdim; but man page and old args struct have `int len'.
127207618Srdivacky66	NOARGS	BSD	{ int vfork(void); } vfork fork_args int
128193323Sed67	OBSOL	NOHIDE	vread
129193323Sed68	OBSOL	NOHIDE	vwrite
130193323Sed69	STD	BSD	{ int sbrk(int incr); }
131193323Sed70	STD	BSD	{ int sstk(int incr); }
132193323Sed71	COMPAT	BSD	{ int mmap(caddr_t addr, int len, int prot, \
133198090Srdivacky			    int flags, int fd, long pos); }
134193323Sed; XXX should be		{ int mmap(caddr_t addr, size_t len, int prot,
135193323Sed;			    int flags, int fd, long pos); }
136193323Sed; but old args struct has `int len'.
137193323Sed72	STD	BSD	{ int ovadvise(int anom); } vadvise ovadvise_args int
138193323Sed73	STD	BSD	{ int munmap(caddr_t addr, int len); }
139193323Sed; XXX should be		{ int munmap(caddr_t addr, size_t len); }
140218893Sdim; but man page and old args struct have `int len'.
141218893Sdim74	STD	BSD	{ int mprotect(caddr_t addr, int len, int prot); }
142218893Sdim; XXX should be		{ int mprotect(caddr_t addr, size_t len, int prot); }
143218893Sdim; but man page and old args struct have `int len'.
144218893Sdim75	STD	BSD	{ int madvise(caddr_t addr, int len, int behav); }
145218893Sdim; XXX should be		{ int madvise(caddr_t addr, size_t len, int behav); }
146218893Sdim; but man page, madvise() prototype and old args struct have `int len'.
147193323Sed76	OBSOL	NOHIDE	vhangup
148193323Sed77	OBSOL	NOHIDE	vlimit
149193323Sed78	STD	BSD	{ int mincore(caddr_t addr, int len, char *vec); }
150193323Sed; XXX should be		{ int mincore(caddr_t addr, size_t len, char *vec); }
151207618Srdivacky; but man page, and old args struct have `int len'.
152207618Srdivacky; XXX mincore() prototype isn't in <sys/mman.h>.
153207618Srdivacky79	STD	POSIX	{ int getgroups(u_int gidsetsize, gid_t *gidset); }
154207618Srdivacky80	STD	POSIX	{ int setgroups(u_int gidsetsize, gid_t *gidset); }
155207618Srdivacky81	STD	POSIX	{ int getpgrp(void); }
156207618Srdivacky82	STD	POSIX	{ int setpgid(int pid, int pgid); }
157207618Srdivacky83	STD	BSD	{ int setitimer(u_int which, struct itimerval *itv, \
158207618Srdivacky			    struct itimerval *oitv); }
159207618Srdivacky84	COMPAT	BSD	{ int wait(void); }
160207618Srdivacky85	STD	BSD	{ int swapon(char *name); }
161207618Srdivacky86	STD	BSD	{ int getitimer(u_int which, struct itimerval *itv); }
162207618Srdivacky87	COMPAT	BSD	{ int gethostname(char *hostname, u_int len); } \
163207618Srdivacky			    gethostname gethostname_args int
164207618Srdivacky88	COMPAT	BSD	{ int sethostname(char *hostname, u_int len); } \
165207618Srdivacky			    sethostname sethostname_args int
166207618Srdivacky89	STD	BSD	{ int getdtablesize(void); }
167207618Srdivacky90	STD	POSIX	{ int dup2(u_int from, u_int to); }
168207618Srdivacky91	UNIMPL	BSD	getdopt
169207618Srdivacky92	STD	POSIX	{ int fcntl(int fd, int cmd, int arg); }
170207618Srdivacky; XXX should be		{ int fcntl(int fd, int cmd, ...); }
171234353Sdim; but we're not ready for varargs.
172234353Sdim; XXX man page says `int arg' too.
173234353Sdim93	STD	BSD	{ int select(u_int nd, fd_set *in, fd_set *ou, \
174207618Srdivacky			    fd_set *ex, struct timeval *tv); }
175207618Srdivacky94	UNIMPL	BSD	setdopt
176207618Srdivacky95	STD	POSIX	{ int fsync(int fd); }
177207618Srdivacky96	STD	BSD	{ int setpriority(int which, int who, int prio); }
178207618Srdivacky97	STD	BSD	{ int socket(int domain, int type, int protocol); }
179207618Srdivacky98	STD	BSD	{ int connect(int s, caddr_t name, int namelen); }
180207618Srdivacky99	CPT_NOA	BSD	{ int accept(int s, caddr_t name, int *anamelen); } \
181207618Srdivacky			    accept accept_args int
182210299Sed100	STD	BSD	{ int getpriority(int which, int who); }
183210299Sed101	COMPAT	BSD	{ int send(int s, caddr_t buf, int len, int flags); }
184207618Srdivacky102	COMPAT	BSD	{ int recv(int s, caddr_t buf, int len, int flags); }
185207618Srdivacky103	STD	BSD	{ int sigreturn(struct sigcontext *sigcntxp); }
186193323Sed104	STD	BSD	{ int bind(int s, caddr_t name, int namelen); }
187193323Sed105	STD	BSD	{ int setsockopt(int s, int level, int name, \
188193323Sed			    caddr_t val, int valsize); }
189193323Sed106	STD	BSD	{ int listen(int s, int backlog); }
190234353Sdim107	OBSOL	NOHIDE	vtimes
191193323Sed108	COMPAT	BSD	{ int sigvec(int signum, struct sigvec *nsv, \
192193323Sed			    struct sigvec *osv); }
193234353Sdim109	COMPAT	BSD	{ int sigblock(int mask); }
194234353Sdim110	COMPAT	BSD	{ int sigsetmask(int mask); }
195234353Sdim111	STD	POSIX	{ int sigsuspend(int mask); }
196221345Sdim112	COMPAT	BSD	{ int sigstack(struct sigstack *nss, \
197218893Sdim			    struct sigstack *oss); }
198218893Sdim113	COMPAT	BSD	{ int recvmsg(int s, struct omsghdr *msg, int flags); }
199218893Sdim114	COMPAT	BSD	{ int sendmsg(int s, caddr_t msg, int flags); }
200218893Sdim115	OBSOL	NOHIDE	vtrace
201218893Sdim116	STD	BSD	{ int gettimeofday(struct timeval *tp, \
202218893Sdim			    struct timezone *tzp); }
203218893Sdim117	STD	BSD	{ int getrusage(int who, struct rusage *rusage); }
204218893Sdim118	STD	BSD	{ int getsockopt(int s, int level, int name, \
205218893Sdim			    caddr_t val, int *avalsize); }
206218893Sdim119	UNIMPL	NOHIDE	nosys
207218893Sdim120	STD	BSD	{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
208234353Sdim121	STD	BSD	{ int writev(int fd, struct iovec *iovp, \
209218893Sdim			    u_int iovcnt); }
210218893Sdim122	STD	BSD	{ int settimeofday(struct timeval *tv, \
211218893Sdim			    struct timezone *tzp); }
212218893Sdim123	STD	BSD	{ int fchown(int fd, int uid, int gid); }
213218893Sdim124	STD	BSD	{ int fchmod(int fd, int mode); }
214218893Sdim125	CPT_NOA	BSD	{ int recvfrom(int s, caddr_t buf, size_t len, \
215193323Sed			    int flags, caddr_t from, int *fromlenaddr); } \
216193323Sed			    recvfrom recvfrom_args int
217193323Sed126	STD	BSD	{ int setreuid(int ruid, int euid); }
218193323Sed127	STD	BSD	{ int setregid(int rgid, int egid); }
219226633Sdim128	STD	POSIX	{ int rename(char *from, char *to); }
220226633Sdim129	COMPAT	BSD	{ int truncate(char *path, long length); }
221226633Sdim130	COMPAT	BSD	{ int ftruncate(int fd, long length); }
222226633Sdim131	STD	BSD	{ int flock(int fd, int how); }
223234353Sdim132	STD	POSIX	{ int mkfifo(char *path, int mode); }
224234353Sdim133	STD	BSD	{ int sendto(int s, caddr_t buf, size_t len, \
225234353Sdim			    int flags, caddr_t to, int tolen); }
226234353Sdim134	STD	BSD	{ int shutdown(int s, int how); }
227234353Sdim135	STD	BSD	{ int socketpair(int domain, int type, int protocol, \
228234353Sdim			    int *rsv); }
229234353Sdim136	STD	POSIX	{ int mkdir(char *path, int mode); }
230234353Sdim137	STD	POSIX	{ int rmdir(char *path); }
231234353Sdim138	STD	BSD	{ int utimes(char *path, struct timeval *tptr); }
232234353Sdim139	OBSOL	NOHIDE	4.2 sigreturn
233234353Sdim140	STD	BSD	{ int adjtime(struct timeval *delta, \
234234353Sdim			    struct timeval *olddelta); }
235234353Sdim141	COMPAT	BSD	{ int getpeername(int fdes, caddr_t asa, int *alen); }
236234353Sdim142	COMPAT	BSD	{ long gethostid(void); }
237234353Sdim143	COMPAT	BSD	{ int sethostid(long hostid); }
238234353Sdim144	COMPAT	BSD	{ int getrlimit(u_int which, struct ogetrlimit *rlp); }
239193323Sed145	COMPAT	BSD	{ int setrlimit(u_int which, struct ogetrlimit *rlp); }
240234353Sdim146	COMPAT	BSD	{ int killpg(int pgid, int signum); }
241234353Sdim147	STD	POSIX	{ int setsid(void); }
242193323Sed148	STD	BSD	{ int quotactl(char *path, int cmd, int uid, \
243226633Sdim			    caddr_t arg); }
244226633Sdim149	COMPAT	BSD	{ int quota(void); }
245226633Sdim150	CPT_NOA	BSD	{ int getsockname(int fdec, caddr_t asa, int *alen); }\
246226633Sdim			    getsockname getsockname_args int
247226633Sdim
248226633Sdim; Syscalls 151-180 inclusive are reserved for vendor-specific
249226633Sdim; system calls.  (This includes various calls added for compatibity
250218893Sdim; with other Unix variants.)
251218893Sdim; Some of these calls are now supported by BSD...
252218893Sdim151	UNIMPL	NOHIDE	nosys
253218893Sdim152	UNIMPL	NOHIDE	nosys
254199989Srdivacky153	UNIMPL	NOHIDE	nosys
255218893Sdim154	UNIMPL	NOHIDE	nosys
256218893Sdim#ifdef NFS
257218893Sdim155	STD	BSD	{ int nfssvc(int flag, caddr_t argp); }
258218893Sdim#else
259198892Srdivacky155	UNIMPL	BSD	nosys
260198892Srdivacky#endif
261198892Srdivacky156	COMPAT	BSD	{ int getdirentries(int fd, char *buf, u_int count, \
262198892Srdivacky			    long *basep); }
263198892Srdivacky157	STD	BSD	{ int statfs(char *path, struct statfs *buf); }
264198892Srdivacky158	STD	BSD	{ int fstatfs(int fd, struct statfs *buf); }
265199481Srdivacky159	UNIMPL	NOHIDE	nosys
266199481Srdivacky160	UNIMPL	NOHIDE	nosys
267199481Srdivacky#ifdef NFS
268199481Srdivacky161	STD	BSD	{ int getfh(char *fname, fhandle_t *fhp); }
269199481Srdivacky#else
270198953Srdivacky161	UNIMPL	BSD	nosys
271198953Srdivacky#endif
272198953Srdivacky162	STD	BSD	{ int getdomainname(char *domainname, int len); }
273198953Srdivacky163	STD	BSD	{ int setdomainname(char *domainname, int len); }
274198953Srdivacky164	STD	BSD	{ int uname(struct utsname *name); }
275198953Srdivacky165	STD	BSD	{ int sysarch(int op, char *parms); }
276198953Srdivacky166	STD	BSD	{ int rtprio(int function, pid_t pid, \
277226633Sdim			    struct rtprio *rtp); }
278226633Sdim167	UNIMPL	NOHIDE	nosys
279226633Sdim168	UNIMPL	NOHIDE	nosys
280226633Sdim#ifdef SYSVSEM
281193323Sed169	STD	BSD	{ int semsys(int which, int a2, int a3, int a4, \
282193323Sed			    int a5); }
283218893Sdim; XXX should be		{ int semsys(int which, ...); }
284218893Sdim#else
285198892Srdivacky169	UNIMPL	NOHIDE	nosys
286198892Srdivacky#endif
287198892Srdivacky#ifdef SYSVMSG
288198892Srdivacky170	STD	BSD	{ int msgsys(int which, int a2, int a3, int a4, \
289198892Srdivacky			    int a5, int a6); }
290210299Sed; XXX should be		{ int msgsys(int which, ...); }
291210299Sed#else
292210299Sed170	UNIMPL	NOHIDE nosys
293210299Sed#endif
294193323Sed#ifdef SYSVSHM
295193323Sed171	STD	BSD	{ int shmsys(int which, int a2, int a3, int a4); }
296193323Sed; XXX should be		{ int shmsys(int which, ...); }
297193323Sed#else
298234353Sdim171	UNIMPL	BSD	nosys
299218893Sdim#endif
300218893Sdim172	UNIMPL	NOHIDE	nosys
301218893Sdim173	UNIMPL	NOHIDE	nosys
302218893Sdim174	UNIMPL	NOHIDE	nosys
303218893Sdim175	UNIMPL	NOHIDE	nosys
304218893Sdim176	STD	BSD	{ int ntp_adjtime(struct timex *tp); }
305218893Sdim177	UNIMPL	NOHIDE	nosys
306193323Sed178	UNIMPL	NOHIDE	nosys
307210299Sed179	UNIMPL	NOHIDE	nosys
308210299Sed180	UNIMPL	NOHIDE	nosys
309210299Sed
310210299Sed; Syscalls 180-199 are used by/reserved for BSD
311210299Sed181	STD	POSIX	{ int setgid(gid_t gid); }
312210299Sed182	STD	BSD	{ int setegid(gid_t egid); }
313210299Sed183	STD	BSD	{ int seteuid(uid_t euid); }
314193323Sed#ifdef LFS
315210299Sed184	STD	BSD	{ int lfs_bmapv(fsid_t *fsidp, \
316193323Sed			    struct block_info *blkiov, int blkcnt); }
317210299Sed185	STD	BSD	{ int lfs_markv(fsid_t *fsidp, \
318193323Sed			    struct block_info *blkiov, int blkcnt); }
319193323Sed186	STD	BSD	{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
320193323Sed187	STD	BSD	{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
321193323Sed#else
322210299Sed184	UNIMPL	BSD	nosys
323193323Sed185	UNIMPL	BSD	nosys
324193323Sed186	UNIMPL	BSD	nosys
325218893Sdim187	UNIMPL	BSD	nosys
326198090Srdivacky#endif
327207618Srdivacky188	STD	POSIX	{ int stat(char *path, struct stat *ub); }
328218893Sdim189	STD	POSIX	{ int fstat(int fd, struct stat *sb); }
329218893Sdim190	STD	POSIX	{ int lstat(char *path, struct stat *ub); }
330193323Sed191	STD	POSIX	{ int pathconf(char *path, int name); }
331234353Sdim192	STD	POSIX	{ int fpathconf(int fd, int name); }
332234353Sdim193	UNIMPL	NOHIDE	nosys
333234353Sdim194	STD	BSD	{ int getrlimit(u_int which, \
334234353Sdim			    struct orlimit *rlp); } \
335234353Sdim			    getrlimit __getrlimit_args int
336234353Sdim195	STD	BSD	{ int setrlimit(u_int which, \
337234353Sdim			    struct orlimit *rlp); } \
338234353Sdim			    setrlimit __setrlimit_args int
339218893Sdim196	STD	BSD	{ int getdirentries(int fd, char *buf, u_int count, \
340218893Sdim			    long *basep); }
341218893Sdim197	STD	BSD	{ caddr_t mmap(caddr_t addr, size_t len, int prot, \
342218893Sdim			    int flags, int fd, long pad, off_t pos); }
343218893Sdim198	STD	NOHIDE	{ int nosys(void); } __syscall __syscall_args int
344218893Sdim199	STD	POSIX	{ off_t lseek(int fd, int pad, off_t offset, \
345218893Sdim			    int whence); }
346218893Sdim200	STD	BSD	{ int truncate(char *path, int pad, off_t length); }
347221345Sdim201	STD	BSD	{ int ftruncate(int fd, int pad, off_t length); }
348218893Sdim202	STD	BSD	{ int __sysctl(int *name, u_int namelen, void *old, \
349218893Sdim			    size_t *oldlenp, void *new, size_t newlen); } \
350193323Sed			    __sysctl sysctl_args int
351207618Srdivacky; properly, __sysctl should be a NOHIDE, but making an exception
352207618Srdivacky; here allows to avoid one in libc/sys/Makefile.inc.
353207618Srdivacky203	STD	BSD	{ int mlock(caddr_t addr, size_t len); }
354193323Sed204	STD	BSD	{ int munlock(caddr_t addr, size_t len); }
355210299Sed205	UNIMPL	NOHIDE	nosys
356210299Sed206	UNIMPL	NOHIDE	nosys
357210299Sed207	UNIMPL	NOHIDE	nosys
358210299Sed208	UNIMPL	NOHIDE	nosys
359234353Sdim209	UNIMPL	NOHIDE	nosys
360193323Sed
361207618Srdivacky;
362207618Srdivacky; The following are reserved for loadable syscalls
363210299Sed;
364210299Sed210	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
365193323Sed211	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
366210299Sed212	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
367193323Sed213	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
368234353Sdim214	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
369234353Sdim215	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
370207618Srdivacky216	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
371207618Srdivacky217	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
372207618Srdivacky218	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
373207618Srdivacky219	NODEF	NOHIDE	lkmnosys lkmnosys nosys_args int
374207618Srdivacky