syscalls.master revision 1.102
1	$NetBSD: syscalls.master,v 1.102 2000/08/07 17:59:33 bjh21 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; types:
14;	STD	always included
15;	OBSOL	obsolete, not included in system
16;	UNIMPL	unimplemented, not included in system
17;	EXCL	implemented, but not included in system
18;	NODEF	included, but don't define the syscall number
19;	NOARGS	included, but don't define the syscall args structure
20;	INDIR	included, but don't define the syscall args structure,
21;		and allow it to be "really" varargs.
22;
23; The compat options are defined in the syscalls.conf file, and the
24; compat option name is prefixed to the syscall name.  Other than
25; that, they're like NODEF (for 'compat' options), or STD (for
26; 'libcompat' options).
27;
28; The type-dependent arguments are as follows:
29; For STD, NODEF, NOARGS, and compat syscalls:
30;	{ pseudo-proto } [alias]
31; For other syscalls:
32;	[comment]
33;
34; #ifdef's, etc. may be included, and are copied to the output files.
35; #include's are copied to the syscall names and switch definition files only.
36
37#include "opt_ktrace.h"
38#include "opt_nfsserver.h"
39#include "opt_ntp.h"
40#include "opt_compat_netbsd.h"
41#include "opt_sysv.h"
42#include "opt_compat_43.h"
43
44#include "fs_lfs.h"
45#include "fs_nfs.h"
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/signal.h>
50#include <sys/mount.h>
51#include <sys/syscallargs.h>
52
53; Reserved/unimplemented system calls in the range 0-150 inclusive
54; are reserved for use in future Berkeley releases.
55; Additional system calls implemented in vendor and other
56; redistributions should be placed in the reserved range at the end
57; of the current calls.
58
590	INDIR		{ int sys_syscall(int number, ...); }
601	STD		{ void sys_exit(int rval); }
612	STD		{ int sys_fork(void); }
623	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
634	STD		{ ssize_t sys_write(int fd, const void *buf, \
64			    size_t nbyte); }
655	STD		{ int sys_open(const char *path, \
66			    int flags, ... mode_t mode); }
676	STD		{ int sys_close(int fd); }
687	STD		{ int sys_wait4(int pid, int *status, int options, \
69			    struct rusage *rusage); }
708	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
719	STD		{ int sys_link(const char *path, const char *link); }
7210	STD		{ int sys_unlink(const char *path); }
7311	OBSOL		execv
7412	STD		{ int sys_chdir(const char *path); }
7513	STD		{ int sys_fchdir(int fd); }
7614	STD		{ int sys_mknod(const char *path, mode_t mode, \
77			    dev_t dev); }
7815	STD		{ int sys_chmod(const char *path, mode_t mode); }
7916	STD		{ int sys_chown(const char *path, uid_t uid, \
80			    gid_t gid); }
8117	STD		{ int sys_obreak(char *nsize); } break
8218	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
83			    int flags); }
8419	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
85			    olseek
8620	STD		{ pid_t sys_getpid(void); }
8721	STD		{ int sys_mount(const char *type, const char *path, \
88			    int flags, void *data); }
8922	STD		{ int sys_unmount(const char *path, int flags); }
9023	STD		{ int sys_setuid(uid_t uid); }
9124	STD		{ uid_t sys_getuid(void); }
9225	STD		{ uid_t sys_geteuid(void); }
9326	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
94			    int data); }
9527	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
96			    int flags); }
9728	STD		{ ssize_t sys_sendmsg(int s, \
98			    const struct msghdr *msg, int flags); }
9929	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
100			    int flags, struct sockaddr *from, \
101			    unsigned int *fromlenaddr); }
10230	STD		{ int sys_accept(int s, struct sockaddr *name, \
103			    unsigned int *anamelen); }
10431	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
105			    unsigned int *alen); }
10632	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
107			    unsigned int *alen); }
10833	STD		{ int sys_access(const char *path, int flags); }
10934	STD		{ int sys_chflags(const char *path, u_long flags); }
11035	STD		{ int sys_fchflags(int fd, u_long flags); }
11136	STD		{ void sys_sync(void); }
11237	STD		{ int sys_kill(int pid, int signum); }
11338	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
114			    stat43
11539	STD		{ pid_t sys_getppid(void); }
11640	COMPAT_43	{ int sys_lstat(const char *path, \
117			    struct stat43 *ub); } lstat43
11841	STD		{ int sys_dup(int fd); }
11942	STD		{ int sys_pipe(void); }
12043	STD		{ gid_t sys_getegid(void); }
12144	STD		{ int sys_profil(caddr_t samples, size_t size, \
122			    u_long offset, u_int scale); }
123#if defined(KTRACE) || !defined(_KERNEL)
12445	STD		{ int sys_ktrace(const char *fname, int ops, \
125			    int facs, int pid); }
126#else
12745	EXCL		ktrace
128#endif
12946	COMPAT_13	{ int sys_sigaction(int signum, \
130			    const struct sigaction13 *nsa, \
131			    struct sigaction13 *osa); } sigaction13
13247	STD		{ gid_t sys_getgid(void); }
13348	COMPAT_13	{ int sys_sigprocmask(int how, \
134			    int mask); } sigprocmask13
13549	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
13650	STD		{ int sys_setlogin(const char *namebuf); }
13751	STD		{ int sys_acct(const char *path); }
13852	COMPAT_13	{ int sys_sigpending(void); } sigpending13
13953	COMPAT_13	{ int sys_sigaltstack( \
140			    const struct sigaltstack13 *nss, \
141			    struct sigaltstack13 *oss); } sigaltstack13
14254	STD		{ int sys_ioctl(int fd, \
143			    u_long com, ... void *data); }
14455	COMPAT_12	{ int sys_reboot(int opt); } oreboot
14556	STD		{ int sys_revoke(const char *path); }
14657	STD		{ int sys_symlink(const char *path, \
147			    const char *link); }
14858	STD		{ int sys_readlink(const char *path, char *buf, \
149			    size_t count); }
15059	STD		{ int sys_execve(const char *path, \
151			    char * const *argp, char * const *envp); }
15260	STD		{ mode_t sys_umask(mode_t newmask); }
15361	STD		{ int sys_chroot(const char *path); }
15462	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
15563	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
156			    int arg); } ogetkerninfo
15764	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
15865	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
159; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
16066	STD		{ int sys_vfork(void); }
16167	OBSOL		vread
16268	OBSOL		vwrite
16369	STD		{ int sys_sbrk(intptr_t incr); }
16470	STD		{ int sys_sstk(int incr); }
16571	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
166			    int flags, int fd, long pos); } ommap
16772	STD		{ int sys_ovadvise(int anom); } vadvise
16873	STD		{ int sys_munmap(void *addr, size_t len); }
16974	STD		{ int sys_mprotect(void *addr, size_t len, \
170			    int prot); }
17175	STD		{ int sys_madvise(void *addr, size_t len, \
172			    int behav); }
17376	OBSOL		vhangup
17477	OBSOL		vlimit
17578	STD		{ int sys_mincore(void *addr, size_t len, \
176			    char *vec); }
17779	STD		{ int sys_getgroups(int gidsetsize, \
178			    gid_t *gidset); }
17980	STD		{ int sys_setgroups(int gidsetsize, \
180			    const gid_t *gidset); }
18181	STD		{ int sys_getpgrp(void); }
18282	STD		{ int sys_setpgid(int pid, int pgid); }
18383	STD		{ int sys_setitimer(int which, \
184			    const struct itimerval *itv, \
185			    struct itimerval *oitv); }
18684	COMPAT_43	{ int sys_wait(void); } owait
18785	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
18886	STD		{ int sys_getitimer(int which, \
189			    struct itimerval *itv); }
19087	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
191			    ogethostname
19288	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
193			    osethostname
19489	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
19590	STD		{ int sys_dup2(int from, int to); }
19691	UNIMPL		getdopt
19792	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
19893	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
199			    fd_set *ex, struct timeval *tv); }
20094	UNIMPL		setdopt
20195	STD		{ int sys_fsync(int fd); }
20296	STD		{ int sys_setpriority(int which, int who, int prio); }
20397	STD		{ int sys_socket(int domain, int type, int protocol); }
20498	STD		{ int sys_connect(int s, const struct sockaddr *name, \
205			    unsigned int namelen); }
20699	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
207			    int *anamelen); } oaccept
208100	STD		{ int sys_getpriority(int which, int who); }
209101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
210			    int flags); } osend
211102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
212			    int flags); } orecv
213103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
214			    sigreturn13
215104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
216			    unsigned int namelen); }
217105	STD		{ int sys_setsockopt(int s, int level, int name, \
218			    const void *val, unsigned int valsize); }
219106	STD		{ int sys_listen(int s, int backlog); }
220107	OBSOL		vtimes
221108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
222			    struct sigvec *osv); } osigvec
223109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
224110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
225111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
226112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
227			    struct sigstack *oss); } osigstack
228113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
229			    int flags); } orecvmsg
230114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
231			    osendmsg
232115	OBSOL		vtrace
233116	STD		{ int sys_gettimeofday(struct timeval *tp, \
234			    struct timezone *tzp); }
235117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
236118	STD		{ int sys_getsockopt(int s, int level, int name, \
237			    void *val, unsigned int *avalsize); }
238119	OBSOL		resuba
239120	STD		{ ssize_t sys_readv(int fd, \
240			    const struct iovec *iovp, int iovcnt); }
241121	STD		{ ssize_t sys_writev(int fd, \
242			    const struct iovec *iovp, int iovcnt); }
243122	STD		{ int sys_settimeofday(const struct timeval *tv, \
244			    const struct timezone *tzp); }
245123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
246124	STD		{ int sys_fchmod(int fd, mode_t mode); }
247125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
248			    int flags, caddr_t from, int *fromlenaddr); } \
249			    orecvfrom
250126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
251127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
252128	STD		{ int sys_rename(const char *from, const char *to); }
253129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
254			    otruncate
255130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
256131	STD		{ int sys_flock(int fd, int how); }
257132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
258133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
259			    size_t len, int flags, const struct sockaddr *to, \
260			    unsigned int tolen); }
261134	STD		{ int sys_shutdown(int s, int how); }
262135	STD		{ int sys_socketpair(int domain, int type, \
263			    int protocol, int *rsv); }
264136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
265137	STD		{ int sys_rmdir(const char *path); }
266138	STD		{ int sys_utimes(const char *path, \
267			    const struct timeval *tptr); }
268139	OBSOL		4.2 sigreturn
269140	STD		{ int sys_adjtime(const struct timeval *delta, \
270			    struct timeval *olddelta); }
271141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
272			    int *alen); } ogetpeername
273142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
274143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
275144	COMPAT_43	{ int sys_getrlimit(int which, \
276			    struct orlimit *rlp); } ogetrlimit
277145	COMPAT_43	{ int sys_setrlimit(int which, \
278			    const struct orlimit *rlp); } osetrlimit
279146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
280147	STD		{ int sys_setsid(void); }
281148	STD		{ int sys_quotactl(const char *path, int cmd, \
282			    int uid, caddr_t arg); }
283149	COMPAT_43	{ int sys_quota(void); } oquota
284150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
285			    int *alen); } ogetsockname
286
287; Syscalls 151-180 inclusive are reserved for vendor-specific
288; system calls.  (This includes various calls added for compatibity
289; with other Unix variants.)
290; Some of these calls are now supported by BSD...
291151	UNIMPL
292152	UNIMPL
293153	UNIMPL
294154	UNIMPL
295#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
296155	STD		{ int sys_nfssvc(int flag, void *argp); }
297#else
298155	EXCL		nfssvc
299#endif
300156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
301			    u_int count, long *basep); } ogetdirentries
302157	STD		{ int sys_statfs(const char *path, \
303			    struct statfs *buf); }
304158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
305159	UNIMPL
306160	UNIMPL
307161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
308162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
309			    ogetdomainname
310163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
311			    osetdomainname
312164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
313165	STD		{ int sys_sysarch(int op, void *parms); }
314166	UNIMPL
315167	UNIMPL
316168	UNIMPL
317; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
318#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
319169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
320			    int a5); } osemsys
321#else
322169	EXCL		1.0 semsys
323#endif
324; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
325#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
326170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
327			    int a5, int a6); } omsgsys
328#else
329170	EXCL		1.0 msgsys
330#endif
331; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
332#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
333171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
334			    oshmsys
335#else
336171	EXCL		1.0 shmsys
337#endif
338172	UNIMPL
339173	STD		{ ssize_t sys_pread(int fd, void *buf, \
340			    size_t nbyte, int pad, off_t offset); }
341174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
342			    size_t nbyte, int pad, off_t offset); }
343; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
344175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
345#if defined(NTP) || !defined(_KERNEL)
346176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
347#else
348176	EXCL		ntp_adjtime
349#endif
350177	UNIMPL
351178	UNIMPL
352179	UNIMPL
353180	UNIMPL
354
355; Syscalls 180-199 are used by/reserved for BSD
356181	STD		{ int sys_setgid(gid_t gid); }
357182	STD		{ int sys_setegid(gid_t egid); }
358183	STD		{ int sys_seteuid(uid_t euid); }
359#if defined(LFS) || !defined(_KERNEL)
360184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
361			    struct block_info *blkiov, int blkcnt); }
362185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
363			    struct block_info *blkiov, int blkcnt); }
364186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
365187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
366			    struct timeval *tv); }
367#else
368184	EXCL		lfs_bmapv
369185	EXCL		lfs_markv
370186	EXCL		lfs_segclean
371187	EXCL		lfs_segwait
372#endif
373188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
374			    stat12
375189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
376190	COMPAT_12	{ int sys_lstat(const char *path, \
377			    struct stat12 *ub); } lstat12
378191	STD		{ long sys_pathconf(const char *path, int name); }
379192	STD		{ long sys_fpathconf(int fd, int name); }
380193	UNIMPL
381194	STD		{ int sys_getrlimit(int which, \
382			    struct rlimit *rlp); }
383195	STD		{ int sys_setrlimit(int which, \
384			    const struct rlimit *rlp); }
385196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
386			    u_int count, long *basep); }
387197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
388			    int flags, int fd, long pad, off_t pos); }
389198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
390199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
391			    int whence); }
392200	STD		{ int sys_truncate(const char *path, int pad, \
393			    off_t length); }
394201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
395202	STD		{ int sys___sysctl(int *name, u_int namelen, \
396			    void *old, size_t *oldlenp, void *new, \
397			    size_t newlen); }
398203	STD		{ int sys_mlock(const void *addr, size_t len); }
399204	STD		{ int sys_munlock(const void *addr, size_t len); }
400205	STD		{ int sys_undelete(const char *path); }
401206	STD		{ int sys_futimes(int fd, \
402			    const struct timeval *tptr); }
403207	STD		{ pid_t sys_getpgid(pid_t pid); }
404208	STD		{ int sys_reboot(int opt, char *bootstr); }
405209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
406			    int timeout); }
407;
408; Syscalls 210-219 are reserved for dynamically loaded syscalls
409;
410#if defined(LKM) || !defined(_KERNEL)
411210	NODEF		{ int sys_lkmnosys(void); }
412211	NODEF		{ int sys_lkmnosys(void); }
413212	NODEF		{ int sys_lkmnosys(void); }
414213	NODEF		{ int sys_lkmnosys(void); }
415214	NODEF		{ int sys_lkmnosys(void); }
416215	NODEF		{ int sys_lkmnosys(void); }
417216	NODEF		{ int sys_lkmnosys(void); }
418217	NODEF		{ int sys_lkmnosys(void); }
419218	NODEF		{ int sys_lkmnosys(void); }
420219	NODEF		{ int sys_lkmnosys(void); }
421#else	/* !LKM */
422210	EXCL		lkmnosys
423211	EXCL		lkmnosys
424212	EXCL		lkmnosys
425213	EXCL		lkmnosys
426214	EXCL		lkmnosys
427215	EXCL		lkmnosys
428216	EXCL		lkmnosys
429217	EXCL		lkmnosys
430218	EXCL		lkmnosys
431219	EXCL		lkmnosys
432#endif	/* !LKM */
433; System calls 220-300 are reserved for use by NetBSD
434#if defined(SYSVSEM) || !defined(_KERNEL)
435220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
436			    union __semun *arg); }
437221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
438222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
439			    size_t nsops); }
440223	STD		{ int sys_semconfig(int flag); }
441#else
442220	EXCL		compat_14_semctl
443221	EXCL		semget
444222	EXCL		semop
445223	EXCL		semconfig
446#endif
447#if defined(SYSVMSG) || !defined(_KERNEL)
448224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
449			    struct msqid_ds14 *buf); }
450225	STD		{ int sys_msgget(key_t key, int msgflg); }
451226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
452			    size_t msgsz, int msgflg); }
453227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
454			    size_t msgsz, long msgtyp, int msgflg); }
455#else
456224	EXCL		compat_14_msgctl
457225	EXCL		msgget
458226	EXCL		msgsnd
459227	EXCL		msgrcv
460#endif
461#if defined(SYSVSHM) || !defined(_KERNEL)
462228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
463			    int shmflg); }
464229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
465			    struct shmid_ds14 *buf); }
466230	STD		{ int sys_shmdt(const void *shmaddr); }
467231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
468#else
469228	EXCL		shmat
470229	EXCL		compat_14_shmctl
471230	EXCL		shmdt
472231	EXCL		shmget
473#endif
474232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
475			    struct timespec *tp); }
476233	STD		{ int sys_clock_settime(clockid_t clock_id, \
477			    const struct timespec *tp); }
478234	STD		{ int sys_clock_getres(clockid_t clock_id, \
479			    struct timespec *tp); }
480235	UNIMPL		timer_create
481236	UNIMPL		timer_delete
482237	UNIMPL		timer_settime
483238	UNIMPL		timer_gettime
484239	UNIMPL		timer_getoverrun
485;
486; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
487;
488240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
489			    struct timespec *rmtp); }
490241	STD		{ int sys_fdatasync(int fd); }
491242	STD		{ int sys_mlockall(int flags); }
492243	STD		{ int sys_munlockall(void); }
493244	UNIMPL
494245	UNIMPL
495246	UNIMPL
496247	UNIMPL
497248	UNIMPL
498249	UNIMPL
499250	UNIMPL
500251	UNIMPL
501252	UNIMPL
502253	UNIMPL
503254	UNIMPL
504255	UNIMPL
505256	UNIMPL
506257	UNIMPL
507258	UNIMPL
508259	UNIMPL
509260	UNIMPL
510261	UNIMPL
511262	UNIMPL
512263	UNIMPL
513264	UNIMPL
514265	UNIMPL
515266	UNIMPL
516267	UNIMPL
517268	UNIMPL
518269	UNIMPL
519270	STD		{ int sys___posix_rename(const char *from, \
520			    const char *to); }
521271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
522272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
523273	STD		{ int sys_minherit(void *addr, size_t len, \
524			    int inherit); }
525274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
526275	STD		{ int sys_lchown(const char *path, uid_t uid, \
527			    gid_t gid); }
528276	STD		{ int sys_lutimes(const char *path, \
529			    const struct timeval *tptr); }
530277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
531278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
532279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
533280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
534281	STD		{ int sys___sigaltstack14( \
535			    const struct sigaltstack *nss, \
536			    struct sigaltstack *oss); }
537282	STD		{ int sys___vfork14(void); }
538283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
539			    gid_t gid); }
540284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
541			    gid_t gid); }
542285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
543			    gid_t gid); }
544286	STD		{ pid_t sys_getsid(pid_t pid); }
545287	UNIMPL
546#if defined(KTRACE) || !defined(_KERNEL)
547288	STD		{ int sys_fktrace(const int fd, int ops, \
548			    int facs, int pid); }
549#else
550288	EXCL		ktrace
551#endif
552289	STD		{ ssize_t sys_preadv(int fd, \
553			    const struct iovec *iovp, int iovcnt, \
554			    int pad, off_t offset); }
555290	STD		{ ssize_t sys_pwritev(int fd, \
556			    const struct iovec *iovp, int iovcnt, \
557			    int pad, off_t offset); }
558291	STD		{ int sys___sigaction14(int signum, \
559			    const struct sigaction *nsa, \
560			    struct sigaction *osa); }
561292	STD		{ int sys___sigpending14(sigset_t *set); }
562293	STD		{ int sys___sigprocmask14(int how, \
563			    const sigset_t *set, \
564			    sigset_t *oset); }
565294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
566295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
567296	STD		{ int sys___getcwd(char *bufp, size_t length); }
568297	STD		{ int sys_fchroot(int fd); }
569298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
570299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
571			    struct stat *sb); }
572300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
573			    struct statfs *buf); }
574#if defined(SYSVSEM) || !defined(_KERNEL)
575301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
576			    ... union __semun *arg); }
577#else
578301	EXCL		____semctl13
579#endif
580#if defined(SYSVMSG) || !defined(_KERNEL)
581302	STD		{ int sys___msgctl13(int msqid, int cmd, \
582			    struct msqid_ds *buf); }
583#else
584302	EXCL		__msgctl13
585#endif
586#if defined(SYSVSHM) || !defined(_KERNEL)
587303	STD		{ int sys___shmctl13(int shmid, int cmd, \
588			    struct shmid_ds *buf); }
589#else
590303	EXCL		__shmctl13
591#endif
592304	STD		{ int sys_lchflags(const char *path, u_long flags); }
593305	STD		{ int sys_issetugid(void); }
594