xref: /netbsd/sys/kern/syscalls.master (revision c4a72b64)
1	$NetBSD: syscalls.master,v 1.116 2002/10/23 09:14:24 jdolecek Exp $
2
3;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
4
5; NetBSD system call name/number "master" file.
6; (See syscalls.conf to see what it is processed into.)
7;
8; Fields: number type [type-dependent ...]
9;	number	system call number, must be in order
10;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11;		the compatibility options defined in syscalls.conf.
12;
13; An optional field, MPSAFE, after the type field, indicates that
14; the system call is MP-safe.
15;
16; types:
17;	STD	always included
18;	OBSOL	obsolete, not included in system
19;	UNIMPL	unimplemented, not included in system
20;	EXCL	implemented, but not included in system
21;	NODEF	included, but don't define the syscall number
22;	NOARGS	included, but don't define the syscall args structure
23;	INDIR	included, but don't define the syscall args structure,
24;		and allow it to be "really" varargs.
25;
26; The compat options are defined in the syscalls.conf file, and the
27; compat option name is prefixed to the syscall name.  Other than
28; that, they're like NODEF (for 'compat' options), or STD (for
29; 'libcompat' options).
30;
31; The type-dependent arguments are as follows:
32; For STD, NODEF, NOARGS, and compat syscalls:
33;	{ pseudo-proto } [alias]
34; For other syscalls:
35;	[comment]
36;
37; #ifdef's, etc. may be included, and are copied to the output files.
38; #include's are copied to the syscall names and switch definition files only.
39
40#include "opt_ktrace.h"
41#include "opt_nfsserver.h"
42#include "opt_ntp.h"
43#include "opt_compat_netbsd.h"
44#include "opt_sysv.h"
45#include "opt_compat_43.h"
46
47#include "fs_lfs.h"
48#include "fs_nfs.h"
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/signal.h>
53#include <sys/mount.h>
54#include <sys/syscallargs.h>
55
56%%
57
58; Reserved/unimplemented system calls in the range 0-150 inclusive
59; are reserved for use in future Berkeley releases.
60; Additional system calls implemented in vendor and other
61; redistributions should be placed in the reserved range at the end
62; of the current calls.
63
640	INDIR		{ int sys_syscall(int number, ...); }
651	STD		{ void sys_exit(int rval); }
662	STD		{ int sys_fork(void); }
673	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
684	STD		{ ssize_t sys_write(int fd, const void *buf, \
69			    size_t nbyte); }
705	STD		{ int sys_open(const char *path, \
71			    int flags, ... mode_t mode); }
726	STD		{ int sys_close(int fd); }
737	STD		{ int sys_wait4(int pid, int *status, int options, \
74			    struct rusage *rusage); }
758	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
769	STD		{ int sys_link(const char *path, const char *link); }
7710	STD		{ int sys_unlink(const char *path); }
7811	OBSOL		execv
7912	STD		{ int sys_chdir(const char *path); }
8013	STD		{ int sys_fchdir(int fd); }
8114	STD		{ int sys_mknod(const char *path, mode_t mode, \
82			    dev_t dev); }
8315	STD		{ int sys_chmod(const char *path, mode_t mode); }
8416	STD		{ int sys_chown(const char *path, uid_t uid, \
85			    gid_t gid); }
8617	STD		{ int sys_obreak(char *nsize); } break
8718	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
88			    int flags); }
8919	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
90			    olseek
91#ifdef COMPAT_43
9220	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
93#else
9420	STD MPSAFE	{ pid_t sys_getpid(void); }
95#endif
9621	STD		{ int sys_mount(const char *type, const char *path, \
97			    int flags, void *data); }
9822	STD		{ int sys_unmount(const char *path, int flags); }
9923	STD		{ int sys_setuid(uid_t uid); }
100#ifdef COMPAT_43
10124	STD		{ uid_t sys_getuid_with_euid(void); } getuid
102#else
10324	STD		{ uid_t sys_getuid(void); }
104#endif
10525	STD		{ uid_t sys_geteuid(void); }
10626	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
107			    int data); }
10827	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
109			    int flags); }
11028	STD		{ ssize_t sys_sendmsg(int s, \
111			    const struct msghdr *msg, int flags); }
11229	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
113			    int flags, struct sockaddr *from, \
114			    unsigned int *fromlenaddr); }
11530	STD		{ int sys_accept(int s, struct sockaddr *name, \
116			    unsigned int *anamelen); }
11731	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
118			    unsigned int *alen); }
11932	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
120			    unsigned int *alen); }
12133	STD		{ int sys_access(const char *path, int flags); }
12234	STD		{ int sys_chflags(const char *path, u_long flags); }
12335	STD		{ int sys_fchflags(int fd, u_long flags); }
12436	STD		{ void sys_sync(void); }
12537	STD		{ int sys_kill(int pid, int signum); }
12638	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
127			    stat43
12839	STD		{ pid_t sys_getppid(void); }
12940	COMPAT_43	{ int sys_lstat(const char *path, \
130			    struct stat43 *ub); } lstat43
13141	STD		{ int sys_dup(int fd); }
13242	STD		{ int sys_pipe(void); }
13343	STD		{ gid_t sys_getegid(void); }
13444	STD		{ int sys_profil(caddr_t samples, size_t size, \
135			    u_long offset, u_int scale); }
136#if defined(KTRACE) || !defined(_KERNEL)
13745	STD		{ int sys_ktrace(const char *fname, int ops, \
138			    int facs, int pid); }
139#else
14045	EXCL		ktrace
141#endif
14246	COMPAT_13	{ int sys_sigaction(int signum, \
143			    const struct sigaction13 *nsa, \
144			    struct sigaction13 *osa); } sigaction13
145#ifdef COMPAT_43
14647	STD		{ gid_t sys_getgid_with_egid(void); } getgid
147#else
14847	STD		{ gid_t sys_getgid(void); }
149#endif
15048	COMPAT_13	{ int sys_sigprocmask(int how, \
151			    int mask); } sigprocmask13
15249	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
15350	STD		{ int sys_setlogin(const char *namebuf); }
15451	STD		{ int sys_acct(const char *path); }
15552	COMPAT_13	{ int sys_sigpending(void); } sigpending13
15653	COMPAT_13	{ int sys_sigaltstack( \
157			    const struct sigaltstack13 *nss, \
158			    struct sigaltstack13 *oss); } sigaltstack13
15954	STD		{ int sys_ioctl(int fd, \
160			    u_long com, ... void *data); }
16155	COMPAT_12	{ int sys_reboot(int opt); } oreboot
16256	STD		{ int sys_revoke(const char *path); }
16357	STD		{ int sys_symlink(const char *path, \
164			    const char *link); }
16558	STD		{ int sys_readlink(const char *path, char *buf, \
166			    size_t count); }
16759	STD		{ int sys_execve(const char *path, \
168			    char * const *argp, char * const *envp); }
16960	STD		{ mode_t sys_umask(mode_t newmask); }
17061	STD		{ int sys_chroot(const char *path); }
17162	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
17263	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
173			    int arg); } ogetkerninfo
17464	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
17565	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
176; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
17766	STD		{ int sys_vfork(void); }
17867	OBSOL		vread
17968	OBSOL		vwrite
18069	STD		{ int sys_sbrk(intptr_t incr); }
18170	STD		{ int sys_sstk(int incr); }
18271	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
183			    int flags, int fd, long pos); } ommap
18472	STD		{ int sys_ovadvise(int anom); } vadvise
18573	STD		{ int sys_munmap(void *addr, size_t len); }
18674	STD		{ int sys_mprotect(void *addr, size_t len, \
187			    int prot); }
18875	STD		{ int sys_madvise(void *addr, size_t len, \
189			    int behav); }
19076	OBSOL		vhangup
19177	OBSOL		vlimit
19278	STD		{ int sys_mincore(void *addr, size_t len, \
193			    char *vec); }
19479	STD		{ int sys_getgroups(int gidsetsize, \
195			    gid_t *gidset); }
19680	STD		{ int sys_setgroups(int gidsetsize, \
197			    const gid_t *gidset); }
19881	STD		{ int sys_getpgrp(void); }
19982	STD		{ int sys_setpgid(int pid, int pgid); }
20083	STD		{ int sys_setitimer(int which, \
201			    const struct itimerval *itv, \
202			    struct itimerval *oitv); }
20384	COMPAT_43	{ int sys_wait(void); } owait
20485	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
20586	STD		{ int sys_getitimer(int which, \
206			    struct itimerval *itv); }
20787	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
208			    ogethostname
20988	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
210			    osethostname
21189	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
21290	STD		{ int sys_dup2(int from, int to); }
21391	UNIMPL		getdopt
21492	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
21593	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
216			    fd_set *ex, struct timeval *tv); }
21794	UNIMPL		setdopt
21895	STD		{ int sys_fsync(int fd); }
21996	STD		{ int sys_setpriority(int which, int who, int prio); }
22097	STD		{ int sys_socket(int domain, int type, int protocol); }
22198	STD		{ int sys_connect(int s, const struct sockaddr *name, \
222			    unsigned int namelen); }
22399	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
224			    int *anamelen); } oaccept
225100	STD		{ int sys_getpriority(int which, int who); }
226101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
227			    int flags); } osend
228102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
229			    int flags); } orecv
230103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
231			    sigreturn13
232104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
233			    unsigned int namelen); }
234105	STD		{ int sys_setsockopt(int s, int level, int name, \
235			    const void *val, unsigned int valsize); }
236106	STD		{ int sys_listen(int s, int backlog); }
237107	OBSOL		vtimes
238108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
239			    struct sigvec *osv); } osigvec
240109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
241110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
242111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
243112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
244			    struct sigstack *oss); } osigstack
245113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
246			    int flags); } orecvmsg
247114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
248			    osendmsg
249115	OBSOL		vtrace
250116	STD		{ int sys_gettimeofday(struct timeval *tp, \
251			    struct timezone *tzp); }
252117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
253118	STD		{ int sys_getsockopt(int s, int level, int name, \
254			    void *val, unsigned int *avalsize); }
255119	OBSOL		resuba
256120	STD		{ ssize_t sys_readv(int fd, \
257			    const struct iovec *iovp, int iovcnt); }
258121	STD		{ ssize_t sys_writev(int fd, \
259			    const struct iovec *iovp, int iovcnt); }
260122	STD		{ int sys_settimeofday(const struct timeval *tv, \
261			    const struct timezone *tzp); }
262123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
263124	STD		{ int sys_fchmod(int fd, mode_t mode); }
264125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
265			    int flags, caddr_t from, int *fromlenaddr); } \
266			    orecvfrom
267126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
268127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
269128	STD		{ int sys_rename(const char *from, const char *to); }
270129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
271			    otruncate
272130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
273131	STD		{ int sys_flock(int fd, int how); }
274132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
275133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
276			    size_t len, int flags, const struct sockaddr *to, \
277			    unsigned int tolen); }
278134	STD		{ int sys_shutdown(int s, int how); }
279135	STD		{ int sys_socketpair(int domain, int type, \
280			    int protocol, int *rsv); }
281136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
282137	STD		{ int sys_rmdir(const char *path); }
283138	STD		{ int sys_utimes(const char *path, \
284			    const struct timeval *tptr); }
285139	OBSOL		4.2 sigreturn
286140	STD		{ int sys_adjtime(const struct timeval *delta, \
287			    struct timeval *olddelta); }
288141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
289			    int *alen); } ogetpeername
290142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
291143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
292144	COMPAT_43	{ int sys_getrlimit(int which, \
293			    struct orlimit *rlp); } ogetrlimit
294145	COMPAT_43	{ int sys_setrlimit(int which, \
295			    const struct orlimit *rlp); } osetrlimit
296146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
297147	STD		{ int sys_setsid(void); }
298148	STD		{ int sys_quotactl(const char *path, int cmd, \
299			    int uid, caddr_t arg); }
300149	COMPAT_43	{ int sys_quota(void); } oquota
301150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
302			    int *alen); } ogetsockname
303
304; Syscalls 151-180 inclusive are reserved for vendor-specific
305; system calls.  (This includes various calls added for compatibity
306; with other Unix variants.)
307; Some of these calls are now supported by BSD...
308151	UNIMPL
309152	UNIMPL
310153	UNIMPL
311154	UNIMPL
312#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
313155	STD		{ int sys_nfssvc(int flag, void *argp); }
314#else
315155	EXCL		nfssvc
316#endif
317156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
318			    u_int count, long *basep); } ogetdirentries
319157	STD		{ int sys_statfs(const char *path, \
320			    struct statfs *buf); }
321158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
322159	UNIMPL
323160	UNIMPL
324161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
325162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
326			    ogetdomainname
327163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
328			    osetdomainname
329164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
330165	STD		{ int sys_sysarch(int op, void *parms); }
331166	UNIMPL
332167	UNIMPL
333168	UNIMPL
334; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
335#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
336169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
337			    int a5); } osemsys
338#else
339169	EXCL		1.0 semsys
340#endif
341; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
342#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
343170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
344			    int a5, int a6); } omsgsys
345#else
346170	EXCL		1.0 msgsys
347#endif
348; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
349#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
350171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
351			    oshmsys
352#else
353171	EXCL		1.0 shmsys
354#endif
355172	UNIMPL
356173	STD		{ ssize_t sys_pread(int fd, void *buf, \
357			    size_t nbyte, int pad, off_t offset); }
358174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
359			    size_t nbyte, int pad, off_t offset); }
360; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
361175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
362#if defined(NTP) || !defined(_KERNEL)
363176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
364#else
365176	EXCL		ntp_adjtime
366#endif
367177	UNIMPL
368178	UNIMPL
369179	UNIMPL
370180	UNIMPL
371
372; Syscalls 180-199 are used by/reserved for BSD
373181	STD		{ int sys_setgid(gid_t gid); }
374182	STD		{ int sys_setegid(gid_t egid); }
375183	STD		{ int sys_seteuid(uid_t euid); }
376#if defined(LFS) || !defined(_KERNEL)
377184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
378			    struct block_info *blkiov, int blkcnt); }
379185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
380			    struct block_info *blkiov, int blkcnt); }
381186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
382187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
383			    struct timeval *tv); }
384#else
385184	EXCL		lfs_bmapv
386185	EXCL		lfs_markv
387186	EXCL		lfs_segclean
388187	EXCL		lfs_segwait
389#endif
390188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
391			    stat12
392189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
393190	COMPAT_12	{ int sys_lstat(const char *path, \
394			    struct stat12 *ub); } lstat12
395191	STD		{ long sys_pathconf(const char *path, int name); }
396192	STD		{ long sys_fpathconf(int fd, int name); }
397193	UNIMPL
398194	STD		{ int sys_getrlimit(int which, \
399			    struct rlimit *rlp); }
400195	STD		{ int sys_setrlimit(int which, \
401			    const struct rlimit *rlp); }
402196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
403			    u_int count, long *basep); }
404197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
405			    int flags, int fd, long pad, off_t pos); }
406198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
407199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
408			    int whence); }
409200	STD		{ int sys_truncate(const char *path, int pad, \
410			    off_t length); }
411201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
412202	STD		{ int sys___sysctl(int *name, u_int namelen, \
413			    void *old, size_t *oldlenp, void *new, \
414			    size_t newlen); }
415203	STD		{ int sys_mlock(const void *addr, size_t len); }
416204	STD		{ int sys_munlock(const void *addr, size_t len); }
417205	STD		{ int sys_undelete(const char *path); }
418206	STD		{ int sys_futimes(int fd, \
419			    const struct timeval *tptr); }
420207	STD		{ pid_t sys_getpgid(pid_t pid); }
421208	STD		{ int sys_reboot(int opt, char *bootstr); }
422209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
423			    int timeout); }
424;
425; Syscalls 210-219 are reserved for dynamically loaded syscalls
426;
427#if defined(LKM) || !defined(_KERNEL)
428210	NODEF		{ int sys_lkmnosys(void); }
429211	NODEF		{ int sys_lkmnosys(void); }
430212	NODEF		{ int sys_lkmnosys(void); }
431213	NODEF		{ int sys_lkmnosys(void); }
432214	NODEF		{ int sys_lkmnosys(void); }
433215	NODEF		{ int sys_lkmnosys(void); }
434216	NODEF		{ int sys_lkmnosys(void); }
435217	NODEF		{ int sys_lkmnosys(void); }
436218	NODEF		{ int sys_lkmnosys(void); }
437219	NODEF		{ int sys_lkmnosys(void); }
438#else	/* !LKM */
439210	EXCL		lkmnosys
440211	EXCL		lkmnosys
441212	EXCL		lkmnosys
442213	EXCL		lkmnosys
443214	EXCL		lkmnosys
444215	EXCL		lkmnosys
445216	EXCL		lkmnosys
446217	EXCL		lkmnosys
447218	EXCL		lkmnosys
448219	EXCL		lkmnosys
449#endif	/* !LKM */
450; System calls 220-300 are reserved for use by NetBSD
451#if defined(SYSVSEM) || !defined(_KERNEL)
452220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
453			    union __semun *arg); }
454221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
455222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
456			    size_t nsops); }
457223	STD		{ int sys_semconfig(int flag); }
458#else
459220	EXCL		compat_14_semctl
460221	EXCL		semget
461222	EXCL		semop
462223	EXCL		semconfig
463#endif
464#if defined(SYSVMSG) || !defined(_KERNEL)
465224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
466			    struct msqid_ds14 *buf); }
467225	STD		{ int sys_msgget(key_t key, int msgflg); }
468226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
469			    size_t msgsz, int msgflg); }
470227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
471			    size_t msgsz, long msgtyp, int msgflg); }
472#else
473224	EXCL		compat_14_msgctl
474225	EXCL		msgget
475226	EXCL		msgsnd
476227	EXCL		msgrcv
477#endif
478#if defined(SYSVSHM) || !defined(_KERNEL)
479228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
480			    int shmflg); }
481229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
482			    struct shmid_ds14 *buf); }
483230	STD		{ int sys_shmdt(const void *shmaddr); }
484231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
485#else
486228	EXCL		shmat
487229	EXCL		compat_14_shmctl
488230	EXCL		shmdt
489231	EXCL		shmget
490#endif
491232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
492			    struct timespec *tp); }
493233	STD		{ int sys_clock_settime(clockid_t clock_id, \
494			    const struct timespec *tp); }
495234	STD		{ int sys_clock_getres(clockid_t clock_id, \
496			    struct timespec *tp); }
497235	UNIMPL		timer_create
498236	UNIMPL		timer_delete
499237	UNIMPL		timer_settime
500238	UNIMPL		timer_gettime
501239	UNIMPL		timer_getoverrun
502;
503; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
504;
505240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
506			    struct timespec *rmtp); }
507241	STD		{ int sys_fdatasync(int fd); }
508242	STD		{ int sys_mlockall(int flags); }
509243	STD		{ int sys_munlockall(void); }
510244	UNIMPL
511245	UNIMPL
512246	UNIMPL
513247	UNIMPL
514248	UNIMPL
515249	UNIMPL
516250	UNIMPL
517251	UNIMPL
518252	UNIMPL
519253	UNIMPL
520254	UNIMPL
521255	UNIMPL
522256	UNIMPL
523257	UNIMPL
524258	UNIMPL
525259	UNIMPL
526260	UNIMPL
527261	UNIMPL
528262	UNIMPL
529263	UNIMPL
530264	UNIMPL
531265	UNIMPL
532266	UNIMPL
533267	UNIMPL
534268	UNIMPL
535269	UNIMPL
536270	STD		{ int sys___posix_rename(const char *from, \
537			    const char *to); }
538271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
539272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
540273	STD		{ int sys_minherit(void *addr, size_t len, \
541			    int inherit); }
542274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
543275	STD		{ int sys_lchown(const char *path, uid_t uid, \
544			    gid_t gid); }
545276	STD		{ int sys_lutimes(const char *path, \
546			    const struct timeval *tptr); }
547277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
548278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
549279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
550280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
551281	STD		{ int sys___sigaltstack14( \
552			    const struct sigaltstack *nss, \
553			    struct sigaltstack *oss); }
554282	STD		{ int sys___vfork14(void); }
555283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
556			    gid_t gid); }
557284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
558			    gid_t gid); }
559285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
560			    gid_t gid); }
561286	STD		{ pid_t sys_getsid(pid_t pid); }
562287	STD		{ pid_t sys___clone(int flags, void *stack); }
563#if defined(KTRACE) || !defined(_KERNEL)
564288	STD		{ int sys_fktrace(const int fd, int ops, \
565			    int facs, int pid); }
566#else
567288	EXCL		ktrace
568#endif
569289	STD		{ ssize_t sys_preadv(int fd, \
570			    const struct iovec *iovp, int iovcnt, \
571			    int pad, off_t offset); }
572290	STD		{ ssize_t sys_pwritev(int fd, \
573			    const struct iovec *iovp, int iovcnt, \
574			    int pad, off_t offset); }
575291	STD		{ int sys___sigaction14(int signum, \
576			    const struct sigaction *nsa, \
577			    struct sigaction *osa); }
578292	STD		{ int sys___sigpending14(sigset_t *set); }
579293	STD		{ int sys___sigprocmask14(int how, \
580			    const sigset_t *set, \
581			    sigset_t *oset); }
582294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
583295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
584296	STD		{ int sys___getcwd(char *bufp, size_t length); }
585297	STD		{ int sys_fchroot(int fd); }
586298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
587299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
588			    struct stat *sb); }
589300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
590			    struct statfs *buf); }
591#if defined(SYSVSEM) || !defined(_KERNEL)
592301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
593			    ... union __semun *arg); }
594#else
595301	EXCL		____semctl13
596#endif
597#if defined(SYSVMSG) || !defined(_KERNEL)
598302	STD		{ int sys___msgctl13(int msqid, int cmd, \
599			    struct msqid_ds *buf); }
600#else
601302	EXCL		__msgctl13
602#endif
603#if defined(SYSVSHM) || !defined(_KERNEL)
604303	STD		{ int sys___shmctl13(int shmid, int cmd, \
605			    struct shmid_ds *buf); }
606#else
607303	EXCL		__shmctl13
608#endif
609304	STD		{ int sys_lchflags(const char *path, u_long flags); }
610305	STD		{ int sys_issetugid(void); }
611306	STD		{ int sys_utrace(const char *label, void *addr, \
612			    size_t len); }
613;
614; Syscalls 307 and 308 are reserved for getcontext and setcontext
615;
616307	UNIMPL
617308	UNIMPL
618;
619; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls.
620;
621309	UNIMPL
622310	UNIMPL
623311	UNIMPL
624312	UNIMPL
625313	UNIMPL
626314	UNIMPL
627315	UNIMPL
628316	UNIMPL
629317	UNIMPL
630318	UNIMPL
631319	UNIMPL
632320	UNIMPL
633321	UNIMPL
634322	UNIMPL
635323	UNIMPL
636324	UNIMPL
637325	UNIMPL
638326	UNIMPL
639327	UNIMPL
640328	UNIMPL
641329	UNIMPL
642330	UNIMPL
643331	UNIMPL
644332	UNIMPL
645333	UNIMPL
646334	UNIMPL
647335	UNIMPL
648336	UNIMPL
649337	UNIMPL
650338	UNIMPL
651339	UNIMPL
652340	STD		{ int sys___sigaction_sigtramp(int signum, \
653			    const struct sigaction *nsa, \
654			    struct sigaction *osa, \
655			    void *tramp, int vers); }
656341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
657342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
658343	STD		{ int sys_rasctl(caddr_t addr, size_t len, int op); }
659344	STD		{ int sys_kqueue(void); }
660345	STD		{ int sys_kevent(int fd, \
661			    const struct kevent *changelist, size_t nchanges, \
662			    struct kevent *eventlist, size_t nevents, \
663			    const struct timespec *timeout); }
664