syscalls.master revision 1.103
1	$NetBSD: syscalls.master,v 1.103 2000/12/09 05:27:31 mycroft 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%%
54
55; Reserved/unimplemented system calls in the range 0-150 inclusive
56; are reserved for use in future Berkeley releases.
57; Additional system calls implemented in vendor and other
58; redistributions should be placed in the reserved range at the end
59; of the current calls.
60
610	INDIR		{ int sys_syscall(int number, ...); }
621	STD		{ void sys_exit(int rval); }
632	STD		{ int sys_fork(void); }
643	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
654	STD		{ ssize_t sys_write(int fd, const void *buf, \
66			    size_t nbyte); }
675	STD		{ int sys_open(const char *path, \
68			    int flags, ... mode_t mode); }
696	STD		{ int sys_close(int fd); }
707	STD		{ int sys_wait4(int pid, int *status, int options, \
71			    struct rusage *rusage); }
728	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
739	STD		{ int sys_link(const char *path, const char *link); }
7410	STD		{ int sys_unlink(const char *path); }
7511	OBSOL		execv
7612	STD		{ int sys_chdir(const char *path); }
7713	STD		{ int sys_fchdir(int fd); }
7814	STD		{ int sys_mknod(const char *path, mode_t mode, \
79			    dev_t dev); }
8015	STD		{ int sys_chmod(const char *path, mode_t mode); }
8116	STD		{ int sys_chown(const char *path, uid_t uid, \
82			    gid_t gid); }
8317	STD		{ int sys_obreak(char *nsize); } break
8418	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
85			    int flags); }
8619	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
87			    olseek
8820	STD		{ pid_t sys_getpid(void); }
8921	STD		{ int sys_mount(const char *type, const char *path, \
90			    int flags, void *data); }
9122	STD		{ int sys_unmount(const char *path, int flags); }
9223	STD		{ int sys_setuid(uid_t uid); }
9324	STD		{ uid_t sys_getuid(void); }
9425	STD		{ uid_t sys_geteuid(void); }
9526	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
96			    int data); }
9727	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
98			    int flags); }
9928	STD		{ ssize_t sys_sendmsg(int s, \
100			    const struct msghdr *msg, int flags); }
10129	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
102			    int flags, struct sockaddr *from, \
103			    unsigned int *fromlenaddr); }
10430	STD		{ int sys_accept(int s, struct sockaddr *name, \
105			    unsigned int *anamelen); }
10631	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
107			    unsigned int *alen); }
10832	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
109			    unsigned int *alen); }
11033	STD		{ int sys_access(const char *path, int flags); }
11134	STD		{ int sys_chflags(const char *path, u_long flags); }
11235	STD		{ int sys_fchflags(int fd, u_long flags); }
11336	STD		{ void sys_sync(void); }
11437	STD		{ int sys_kill(int pid, int signum); }
11538	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
116			    stat43
11739	STD		{ pid_t sys_getppid(void); }
11840	COMPAT_43	{ int sys_lstat(const char *path, \
119			    struct stat43 *ub); } lstat43
12041	STD		{ int sys_dup(int fd); }
12142	STD		{ int sys_pipe(void); }
12243	STD		{ gid_t sys_getegid(void); }
12344	STD		{ int sys_profil(caddr_t samples, size_t size, \
124			    u_long offset, u_int scale); }
125#if defined(KTRACE) || !defined(_KERNEL)
12645	STD		{ int sys_ktrace(const char *fname, int ops, \
127			    int facs, int pid); }
128#else
12945	EXCL		ktrace
130#endif
13146	COMPAT_13	{ int sys_sigaction(int signum, \
132			    const struct sigaction13 *nsa, \
133			    struct sigaction13 *osa); } sigaction13
13447	STD		{ gid_t sys_getgid(void); }
13548	COMPAT_13	{ int sys_sigprocmask(int how, \
136			    int mask); } sigprocmask13
13749	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
13850	STD		{ int sys_setlogin(const char *namebuf); }
13951	STD		{ int sys_acct(const char *path); }
14052	COMPAT_13	{ int sys_sigpending(void); } sigpending13
14153	COMPAT_13	{ int sys_sigaltstack( \
142			    const struct sigaltstack13 *nss, \
143			    struct sigaltstack13 *oss); } sigaltstack13
14454	STD		{ int sys_ioctl(int fd, \
145			    u_long com, ... void *data); }
14655	COMPAT_12	{ int sys_reboot(int opt); } oreboot
14756	STD		{ int sys_revoke(const char *path); }
14857	STD		{ int sys_symlink(const char *path, \
149			    const char *link); }
15058	STD		{ int sys_readlink(const char *path, char *buf, \
151			    size_t count); }
15259	STD		{ int sys_execve(const char *path, \
153			    char * const *argp, char * const *envp); }
15460	STD		{ mode_t sys_umask(mode_t newmask); }
15561	STD		{ int sys_chroot(const char *path); }
15662	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
15763	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
158			    int arg); } ogetkerninfo
15964	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
16065	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
161; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
16266	STD		{ int sys_vfork(void); }
16367	OBSOL		vread
16468	OBSOL		vwrite
16569	STD		{ int sys_sbrk(intptr_t incr); }
16670	STD		{ int sys_sstk(int incr); }
16771	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
168			    int flags, int fd, long pos); } ommap
16972	STD		{ int sys_ovadvise(int anom); } vadvise
17073	STD		{ int sys_munmap(void *addr, size_t len); }
17174	STD		{ int sys_mprotect(void *addr, size_t len, \
172			    int prot); }
17375	STD		{ int sys_madvise(void *addr, size_t len, \
174			    int behav); }
17576	OBSOL		vhangup
17677	OBSOL		vlimit
17778	STD		{ int sys_mincore(void *addr, size_t len, \
178			    char *vec); }
17979	STD		{ int sys_getgroups(int gidsetsize, \
180			    gid_t *gidset); }
18180	STD		{ int sys_setgroups(int gidsetsize, \
182			    const gid_t *gidset); }
18381	STD		{ int sys_getpgrp(void); }
18482	STD		{ int sys_setpgid(int pid, int pgid); }
18583	STD		{ int sys_setitimer(int which, \
186			    const struct itimerval *itv, \
187			    struct itimerval *oitv); }
18884	COMPAT_43	{ int sys_wait(void); } owait
18985	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
19086	STD		{ int sys_getitimer(int which, \
191			    struct itimerval *itv); }
19287	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
193			    ogethostname
19488	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
195			    osethostname
19689	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
19790	STD		{ int sys_dup2(int from, int to); }
19891	UNIMPL		getdopt
19992	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
20093	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
201			    fd_set *ex, struct timeval *tv); }
20294	UNIMPL		setdopt
20395	STD		{ int sys_fsync(int fd); }
20496	STD		{ int sys_setpriority(int which, int who, int prio); }
20597	STD		{ int sys_socket(int domain, int type, int protocol); }
20698	STD		{ int sys_connect(int s, const struct sockaddr *name, \
207			    unsigned int namelen); }
20899	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
209			    int *anamelen); } oaccept
210100	STD		{ int sys_getpriority(int which, int who); }
211101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
212			    int flags); } osend
213102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
214			    int flags); } orecv
215103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
216			    sigreturn13
217104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
218			    unsigned int namelen); }
219105	STD		{ int sys_setsockopt(int s, int level, int name, \
220			    const void *val, unsigned int valsize); }
221106	STD		{ int sys_listen(int s, int backlog); }
222107	OBSOL		vtimes
223108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
224			    struct sigvec *osv); } osigvec
225109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
226110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
227111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
228112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
229			    struct sigstack *oss); } osigstack
230113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
231			    int flags); } orecvmsg
232114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
233			    osendmsg
234115	OBSOL		vtrace
235116	STD		{ int sys_gettimeofday(struct timeval *tp, \
236			    struct timezone *tzp); }
237117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
238118	STD		{ int sys_getsockopt(int s, int level, int name, \
239			    void *val, unsigned int *avalsize); }
240119	OBSOL		resuba
241120	STD		{ ssize_t sys_readv(int fd, \
242			    const struct iovec *iovp, int iovcnt); }
243121	STD		{ ssize_t sys_writev(int fd, \
244			    const struct iovec *iovp, int iovcnt); }
245122	STD		{ int sys_settimeofday(const struct timeval *tv, \
246			    const struct timezone *tzp); }
247123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
248124	STD		{ int sys_fchmod(int fd, mode_t mode); }
249125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
250			    int flags, caddr_t from, int *fromlenaddr); } \
251			    orecvfrom
252126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
253127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
254128	STD		{ int sys_rename(const char *from, const char *to); }
255129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
256			    otruncate
257130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
258131	STD		{ int sys_flock(int fd, int how); }
259132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
260133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
261			    size_t len, int flags, const struct sockaddr *to, \
262			    unsigned int tolen); }
263134	STD		{ int sys_shutdown(int s, int how); }
264135	STD		{ int sys_socketpair(int domain, int type, \
265			    int protocol, int *rsv); }
266136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
267137	STD		{ int sys_rmdir(const char *path); }
268138	STD		{ int sys_utimes(const char *path, \
269			    const struct timeval *tptr); }
270139	OBSOL		4.2 sigreturn
271140	STD		{ int sys_adjtime(const struct timeval *delta, \
272			    struct timeval *olddelta); }
273141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
274			    int *alen); } ogetpeername
275142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
276143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
277144	COMPAT_43	{ int sys_getrlimit(int which, \
278			    struct orlimit *rlp); } ogetrlimit
279145	COMPAT_43	{ int sys_setrlimit(int which, \
280			    const struct orlimit *rlp); } osetrlimit
281146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
282147	STD		{ int sys_setsid(void); }
283148	STD		{ int sys_quotactl(const char *path, int cmd, \
284			    int uid, caddr_t arg); }
285149	COMPAT_43	{ int sys_quota(void); } oquota
286150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
287			    int *alen); } ogetsockname
288
289; Syscalls 151-180 inclusive are reserved for vendor-specific
290; system calls.  (This includes various calls added for compatibity
291; with other Unix variants.)
292; Some of these calls are now supported by BSD...
293151	UNIMPL
294152	UNIMPL
295153	UNIMPL
296154	UNIMPL
297#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
298155	STD		{ int sys_nfssvc(int flag, void *argp); }
299#else
300155	EXCL		nfssvc
301#endif
302156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
303			    u_int count, long *basep); } ogetdirentries
304157	STD		{ int sys_statfs(const char *path, \
305			    struct statfs *buf); }
306158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
307159	UNIMPL
308160	UNIMPL
309161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
310162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
311			    ogetdomainname
312163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
313			    osetdomainname
314164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
315165	STD		{ int sys_sysarch(int op, void *parms); }
316166	UNIMPL
317167	UNIMPL
318168	UNIMPL
319; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
320#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
321169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
322			    int a5); } osemsys
323#else
324169	EXCL		1.0 semsys
325#endif
326; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
327#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
328170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
329			    int a5, int a6); } omsgsys
330#else
331170	EXCL		1.0 msgsys
332#endif
333; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
334#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
335171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
336			    oshmsys
337#else
338171	EXCL		1.0 shmsys
339#endif
340172	UNIMPL
341173	STD		{ ssize_t sys_pread(int fd, void *buf, \
342			    size_t nbyte, int pad, off_t offset); }
343174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
344			    size_t nbyte, int pad, off_t offset); }
345; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
346175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
347#if defined(NTP) || !defined(_KERNEL)
348176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
349#else
350176	EXCL		ntp_adjtime
351#endif
352177	UNIMPL
353178	UNIMPL
354179	UNIMPL
355180	UNIMPL
356
357; Syscalls 180-199 are used by/reserved for BSD
358181	STD		{ int sys_setgid(gid_t gid); }
359182	STD		{ int sys_setegid(gid_t egid); }
360183	STD		{ int sys_seteuid(uid_t euid); }
361#if defined(LFS) || !defined(_KERNEL)
362184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
363			    struct block_info *blkiov, int blkcnt); }
364185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
365			    struct block_info *blkiov, int blkcnt); }
366186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
367187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
368			    struct timeval *tv); }
369#else
370184	EXCL		lfs_bmapv
371185	EXCL		lfs_markv
372186	EXCL		lfs_segclean
373187	EXCL		lfs_segwait
374#endif
375188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
376			    stat12
377189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
378190	COMPAT_12	{ int sys_lstat(const char *path, \
379			    struct stat12 *ub); } lstat12
380191	STD		{ long sys_pathconf(const char *path, int name); }
381192	STD		{ long sys_fpathconf(int fd, int name); }
382193	UNIMPL
383194	STD		{ int sys_getrlimit(int which, \
384			    struct rlimit *rlp); }
385195	STD		{ int sys_setrlimit(int which, \
386			    const struct rlimit *rlp); }
387196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
388			    u_int count, long *basep); }
389197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
390			    int flags, int fd, long pad, off_t pos); }
391198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
392199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
393			    int whence); }
394200	STD		{ int sys_truncate(const char *path, int pad, \
395			    off_t length); }
396201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
397202	STD		{ int sys___sysctl(int *name, u_int namelen, \
398			    void *old, size_t *oldlenp, void *new, \
399			    size_t newlen); }
400203	STD		{ int sys_mlock(const void *addr, size_t len); }
401204	STD		{ int sys_munlock(const void *addr, size_t len); }
402205	STD		{ int sys_undelete(const char *path); }
403206	STD		{ int sys_futimes(int fd, \
404			    const struct timeval *tptr); }
405207	STD		{ pid_t sys_getpgid(pid_t pid); }
406208	STD		{ int sys_reboot(int opt, char *bootstr); }
407209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
408			    int timeout); }
409;
410; Syscalls 210-219 are reserved for dynamically loaded syscalls
411;
412#if defined(LKM) || !defined(_KERNEL)
413210	NODEF		{ int sys_lkmnosys(void); }
414211	NODEF		{ int sys_lkmnosys(void); }
415212	NODEF		{ int sys_lkmnosys(void); }
416213	NODEF		{ int sys_lkmnosys(void); }
417214	NODEF		{ int sys_lkmnosys(void); }
418215	NODEF		{ int sys_lkmnosys(void); }
419216	NODEF		{ int sys_lkmnosys(void); }
420217	NODEF		{ int sys_lkmnosys(void); }
421218	NODEF		{ int sys_lkmnosys(void); }
422219	NODEF		{ int sys_lkmnosys(void); }
423#else	/* !LKM */
424210	EXCL		lkmnosys
425211	EXCL		lkmnosys
426212	EXCL		lkmnosys
427213	EXCL		lkmnosys
428214	EXCL		lkmnosys
429215	EXCL		lkmnosys
430216	EXCL		lkmnosys
431217	EXCL		lkmnosys
432218	EXCL		lkmnosys
433219	EXCL		lkmnosys
434#endif	/* !LKM */
435; System calls 220-300 are reserved for use by NetBSD
436#if defined(SYSVSEM) || !defined(_KERNEL)
437220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
438			    union __semun *arg); }
439221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
440222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
441			    size_t nsops); }
442223	STD		{ int sys_semconfig(int flag); }
443#else
444220	EXCL		compat_14_semctl
445221	EXCL		semget
446222	EXCL		semop
447223	EXCL		semconfig
448#endif
449#if defined(SYSVMSG) || !defined(_KERNEL)
450224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
451			    struct msqid_ds14 *buf); }
452225	STD		{ int sys_msgget(key_t key, int msgflg); }
453226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
454			    size_t msgsz, int msgflg); }
455227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
456			    size_t msgsz, long msgtyp, int msgflg); }
457#else
458224	EXCL		compat_14_msgctl
459225	EXCL		msgget
460226	EXCL		msgsnd
461227	EXCL		msgrcv
462#endif
463#if defined(SYSVSHM) || !defined(_KERNEL)
464228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
465			    int shmflg); }
466229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
467			    struct shmid_ds14 *buf); }
468230	STD		{ int sys_shmdt(const void *shmaddr); }
469231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
470#else
471228	EXCL		shmat
472229	EXCL		compat_14_shmctl
473230	EXCL		shmdt
474231	EXCL		shmget
475#endif
476232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
477			    struct timespec *tp); }
478233	STD		{ int sys_clock_settime(clockid_t clock_id, \
479			    const struct timespec *tp); }
480234	STD		{ int sys_clock_getres(clockid_t clock_id, \
481			    struct timespec *tp); }
482235	UNIMPL		timer_create
483236	UNIMPL		timer_delete
484237	UNIMPL		timer_settime
485238	UNIMPL		timer_gettime
486239	UNIMPL		timer_getoverrun
487;
488; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
489;
490240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
491			    struct timespec *rmtp); }
492241	STD		{ int sys_fdatasync(int fd); }
493242	STD		{ int sys_mlockall(int flags); }
494243	STD		{ int sys_munlockall(void); }
495244	UNIMPL
496245	UNIMPL
497246	UNIMPL
498247	UNIMPL
499248	UNIMPL
500249	UNIMPL
501250	UNIMPL
502251	UNIMPL
503252	UNIMPL
504253	UNIMPL
505254	UNIMPL
506255	UNIMPL
507256	UNIMPL
508257	UNIMPL
509258	UNIMPL
510259	UNIMPL
511260	UNIMPL
512261	UNIMPL
513262	UNIMPL
514263	UNIMPL
515264	UNIMPL
516265	UNIMPL
517266	UNIMPL
518267	UNIMPL
519268	UNIMPL
520269	UNIMPL
521270	STD		{ int sys___posix_rename(const char *from, \
522			    const char *to); }
523271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
524272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
525273	STD		{ int sys_minherit(void *addr, size_t len, \
526			    int inherit); }
527274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
528275	STD		{ int sys_lchown(const char *path, uid_t uid, \
529			    gid_t gid); }
530276	STD		{ int sys_lutimes(const char *path, \
531			    const struct timeval *tptr); }
532277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
533278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
534279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
535280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
536281	STD		{ int sys___sigaltstack14( \
537			    const struct sigaltstack *nss, \
538			    struct sigaltstack *oss); }
539282	STD		{ int sys___vfork14(void); }
540283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
541			    gid_t gid); }
542284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
543			    gid_t gid); }
544285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
545			    gid_t gid); }
546286	STD		{ pid_t sys_getsid(pid_t pid); }
547287	UNIMPL
548#if defined(KTRACE) || !defined(_KERNEL)
549288	STD		{ int sys_fktrace(const int fd, int ops, \
550			    int facs, int pid); }
551#else
552288	EXCL		ktrace
553#endif
554289	STD		{ ssize_t sys_preadv(int fd, \
555			    const struct iovec *iovp, int iovcnt, \
556			    int pad, off_t offset); }
557290	STD		{ ssize_t sys_pwritev(int fd, \
558			    const struct iovec *iovp, int iovcnt, \
559			    int pad, off_t offset); }
560291	STD		{ int sys___sigaction14(int signum, \
561			    const struct sigaction *nsa, \
562			    struct sigaction *osa); }
563292	STD		{ int sys___sigpending14(sigset_t *set); }
564293	STD		{ int sys___sigprocmask14(int how, \
565			    const sigset_t *set, \
566			    sigset_t *oset); }
567294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
568295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
569296	STD		{ int sys___getcwd(char *bufp, size_t length); }
570297	STD		{ int sys_fchroot(int fd); }
571298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
572299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
573			    struct stat *sb); }
574300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
575			    struct statfs *buf); }
576#if defined(SYSVSEM) || !defined(_KERNEL)
577301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
578			    ... union __semun *arg); }
579#else
580301	EXCL		____semctl13
581#endif
582#if defined(SYSVMSG) || !defined(_KERNEL)
583302	STD		{ int sys___msgctl13(int msqid, int cmd, \
584			    struct msqid_ds *buf); }
585#else
586302	EXCL		__msgctl13
587#endif
588#if defined(SYSVSHM) || !defined(_KERNEL)
589303	STD		{ int sys___shmctl13(int shmid, int cmd, \
590			    struct shmid_ds *buf); }
591#else
592303	EXCL		__shmctl13
593#endif
594304	STD		{ int sys_lchflags(const char *path, u_long flags); }
595305	STD		{ int sys_issetugid(void); }
596