syscalls.master revision 1.28
1	$NetBSD: syscalls.master,v 1.28 2000/07/18 14:15:05 onoe Exp $
2
3;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
4
5; NetBSD COMPAT_FREEBSD 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;	NODEF	included, but don't define the syscall number
18;	NOARGS	included, but don't define the syscall args structure
19;
20; The compat options are defined in the syscalls.conf file, and the
21; compat option name is prefixed to the syscall name.  Other than
22; that, they're like NODEF (for 'compat' options), or STD (for
23; 'libcompat' options).
24;
25; The type-dependent arguments are as follows:
26; For STD, NODEF, NOARGS, and compat syscalls:
27;	{ pseudo-proto } [alias]
28; For other syscalls:
29;	[comment]
30;
31; #ifdef's, etc. may be included, and are copied to the output files.
32; #include's are copied to the syscall names and switch definition files only.
33
34#include "opt_ktrace.h"
35#include "opt_nfsserver.h"
36#include "opt_sysv.h"
37#include "opt_compat_43.h"
38
39#include "fs_lfs.h"
40#include "fs_nfs.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/signal.h>
45#include <sys/mount.h>
46#include <sys/syscallargs.h>
47
48#include <compat/freebsd/freebsd_syscallargs.h>
49
50#include <machine/freebsd_machdep.h>
51
52; Reserved/unimplemented system calls in the range 0-150 inclusive
53; are reserved for use in future Berkeley releases.
54; Additional system calls implemented in vendor and other
55; redistributions should be placed in the reserved range at the end
56; of the current calls.
57
580	NOARGS		{ int sys_nosys(void); } syscall
591	NOARGS		{ int sys_exit(int rval); }
602	NOARGS		{ int sys_fork(void); }
613	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
624	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
635	STD		{ int freebsd_sys_open(const char *path, int flags, \
64			    int mode); }
656	NOARGS		{ int sys_close(int fd); }
667	NOARGS		{ int sys_wait4(int pid, int *status, int options, \
67			    struct rusage *rusage); }
688	STD		{ int compat_43_freebsd_sys_creat(const char *path, \
69			    int mode); } ocreat
709	STD		{ int freebsd_sys_link(const char *path, \
71			    const char *link); }
7210	STD		{ int freebsd_sys_unlink(const char *path); }
7311	OBSOL		execv
7412	STD		{ int freebsd_sys_chdir(const char *path); }
7513	NOARGS		{ int sys_fchdir(int fd); }
7614	STD		{ int freebsd_sys_mknod(const char *path, int mode, \
77			    int dev); }
7815	STD		{ int freebsd_sys_chmod(const char *path, int mode); }
7916	STD		{ int freebsd_sys_chown(const char *path, int uid, \
80			    int gid); }
8117	NOARGS		{ int sys_obreak(char *nsize); } break
8218	NOARGS		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
83			    int flags); }
8419	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
85			    int whence); } olseek
8620	NOARGS		{ pid_t sys_getpid(void); }
8721	STD		{ int freebsd_sys_mount(int type, const char *path, \
88			    int flags, caddr_t data); }
8922	STD		{ int freebsd_sys_unmount(const char *path, \
90			    int flags); }
9123	NOARGS		{ int sys_setuid(uid_t uid); }
9224	NOARGS		{ uid_t sys_getuid(void); }
9325	NOARGS		{ uid_t sys_geteuid(void); }
9426	STD		{ int freebsd_sys_ptrace(int req, pid_t pid, \
95			    caddr_t addr, int data); }
9627	NOARGS		{ int sys_recvmsg(int s, struct msghdr *msg, \
97			    int flags); }
9828	NOARGS		{ int sys_sendmsg(int s, caddr_t msg, int flags); }
9929	NOARGS		{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
100			    int flags, caddr_t from, int *fromlenaddr); }
10130	NOARGS		{ int sys_accept(int s, caddr_t name, int *anamelen); }
10231	NOARGS		{ int sys_getpeername(int fdes, caddr_t asa, \
103			    int *alen); }
10432	NOARGS		{ int sys_getsockname(int fdes, caddr_t asa, \
105			    int *alen); }
10633	STD		{ int freebsd_sys_access(const char *path, int flags); }
10734	STD		{ int freebsd_sys_chflags(const char *path, \
108			    int flags); }
10935	NOARGS		{ int sys_fchflags(int fd, int flags); }
11036	NOARGS		{ int sys_sync(void); }
11137	NOARGS		{ int sys_kill(int pid, int signum); }
11238	STD		{ int compat_43_freebsd_sys_stat(const char *path, \
113			    struct stat43 *ub); } stat43
11439	NOARGS		{ pid_t sys_getppid(void); }
11540	STD		{ int compat_43_freebsd_sys_lstat(const char *path, \
116			    struct stat43 *ub); } lstat43
11741	NOARGS		{ int sys_dup(u_int fd); }
11842	NOARGS		{ int sys_pipe(void); }
11943	NOARGS		{ gid_t sys_getegid(void); }
12044	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
121			    u_int offset, u_int scale); }
122#ifdef KTRACE
12345	NOARGS		{ int sys_ktrace(char *fname, int ops, int facs, \
124			    int pid); }
125#else
12645	UNIMPL		ktrace
127#endif
12846	NOARGS		{ int compat_13_sys_sigaction(int signum, \
129			    const struct sigaction13 *nsa, \
130			    struct sigaction13 *osa); }
13147	NOARGS		{ gid_t sys_getgid(void); }
13248	NOARGS		{ int compat_13_sys_sigprocmask(int how, \
133			    int mask); }
13449	NOARGS		{ int sys___getlogin(char *namebuf, u_int namelen); }
13550	NOARGS		{ int sys_setlogin(char *namebuf); }
13651	NOARGS		{ int sys_acct(char *path); }
13752	NOARGS		{ int compat_13_sys_sigpending(void); }
13853	NOARGS		{ int compat_13_sys_sigaltstack( \
139			    const struct sigaltstack13 *nss, \
140			    struct sigaltstack13 *oss); }
14154	STD		{ int freebsd_sys_ioctl(int fd, u_long com, \
142			    caddr_t data); }
14355	NOARGS		{ int sys_reboot(int opt); } oreboot
14456	STD		{ int freebsd_sys_revoke(const char *path); }
14557	STD		{ int freebsd_sys_symlink(const char *path, \
146			    const char *link); }
14758	STD		{ int freebsd_sys_readlink(const char *path, \
148			    char *buf, int count); }
14959	STD		{ int freebsd_sys_execve(const char *path, \
150			    char **argp, char **envp); }
15160	NOARGS		{ int sys_umask(int newmask); }
15261	STD		{ int freebsd_sys_chroot(const char *path); }
15362	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); } \
154			    fstat43
15563	NOARGS		{ int compat_43_sys_getkerninfo(int op, char *where, \
156			    int *size, int arg); } ogetkerninfo
15764	NOARGS		{ int compat_43_sys_getpagesize(void); } ogetpagesize
15865	STD		{ int freebsd_sys_msync(caddr_t addr, size_t len, \
159			    int flags); }
16066	NOARGS		{ int sys_vfork(void); }
16167	OBSOL		vread
16268	OBSOL		vwrite
16369	NOARGS		{ int sys_sbrk(intptr_t incr); }
16470	NOARGS		{ int sys_sstk(int incr); }
16571	NOARGS		{ int compat_43_sys_mmap(caddr_t addr, size_t len, \
166			    int prot, int flags, int fd, long pos); } ommap
16772	NOARGS		{ int sys_ovadvise(int anom); } vadvise
16873	NOARGS		{ int sys_munmap(caddr_t addr, size_t len); }
16974	NOARGS		{ int sys_mprotect(caddr_t addr, size_t len, \
170			    int prot); }
17175	NOARGS		{ int sys_madvise(caddr_t addr, size_t len, \
172			    int behav); }
17376	OBSOL		vhangup
17477	OBSOL		vlimit
17578	NOARGS		{ int sys_mincore(caddr_t addr, size_t len, char *vec); }
17679	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
17780	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
17881	NOARGS		{ int sys_getpgrp(void); }
17982	NOARGS		{ int sys_setpgid(int pid, int pgid); }
18083	NOARGS		{ int sys_setitimer(u_int which, \
181			    struct itimerval *itv, struct itimerval *oitv); }
18284	NOARGS		{ int compat_43_sys_wait(void); } owait
18385	NOARGS		{ int compat_12_sys_swapon(char *name); }
18486	NOARGS		{ int sys_getitimer(u_int which, \
185			    struct itimerval *itv); }
18687	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
187			    u_int len); } ogethostname
18888	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
189			    u_int len); } osethostname
19089	NOARGS		{ int compat_43_sys_getdtablesize(void); } \
191			    ogetdtablesize
19290	NOARGS		{ int sys_dup2(u_int from, u_int to); }
19391	UNIMPL		getdopt
19492	NOARGS		{ int sys_fcntl(int fd, int cmd, void *arg); }
19593	NOARGS		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
196			    fd_set *ex, struct timeval *tv); }
19794	UNIMPL		setdopt
19895	NOARGS		{ int sys_fsync(int fd); }
19996	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
20097	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
20198	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
20299	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
203			    int *anamelen); } oaccept
204100	NOARGS		{ int sys_getpriority(int which, int who); }
205101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
206			    int flags); } osend
207102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
208			    int flags); } orecv
209103	STD		{ int freebsd_sys_sigreturn( \
210			    struct freebsd_sigcontext *scp); }
211104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
212105	NOARGS		{ int sys_setsockopt(int s, int level, int name, \
213			    caddr_t val, int valsize); }
214106	NOARGS		{ int sys_listen(int s, int backlog); }
215107	OBSOL		vtimes
216108	NOARGS		{ int compat_43_sys_sigvec(int signum, \
217			    struct sigvec *nsv, struct sigvec *osv); } osigvec
218109	NOARGS		{ int compat_43_sys_sigblock(int mask); } osigblock
219110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); } osigsetmask
220111	NOARGS		{ int compat_13_sys_sigsuspend(int mask); }
221112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
222			    struct sigstack *oss); } osigstack
223113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
224			    struct omsghdr *msg, int flags); } orecvmsg
225114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
226			    int flags); } osendmsg
227#ifdef TRACE
228115	NOARGS		{ int sys_vtrace(int request, int value); }
229#else
230115	OBSOL		vtrace
231#endif
232116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
233			    struct timezone *tzp); }
234117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
235118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
236			    caddr_t val, int *avalsize); }
237119	OBSOL		resuba
238120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
239			    u_int iovcnt); }
240121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
241			    u_int iovcnt); }
242122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
243			    struct timezone *tzp); }
244123	NOARGS		{ int sys_fchown(int fd, int uid, int gid); }
245124	NOARGS		{ int sys_fchmod(int fd, int mode); }
246125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
247			    size_t len, int flags, caddr_t from, \
248			    int *fromlenaddr); } orecvfrom
249126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
250127	NOARGS		{ int sys_setregid(int rgid, int egid); }
251128	STD		{ int freebsd_sys_rename(const char *from, \
252			    const char *to); }
253129	STD		{ int compat_43_freebsd_sys_truncate(const char *path, \
254			    long length); } otruncate
255130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); } \
256			    oftruncate
257131	NOARGS		{ int sys_flock(int fd, int how); }
258132	STD		{ int freebsd_sys_mkfifo(const char *path, int mode); }
259133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
260			    int flags, caddr_t to, int tolen); }
261134	NOARGS		{ int sys_shutdown(int s, int how); }
262135	NOARGS		{ int sys_socketpair(int domain, int type, \
263			    int protocol, int *rsv); }
264136	STD		{ int freebsd_sys_mkdir(const char *path, int mode); }
265137	STD		{ int freebsd_sys_rmdir(const char *path); }
266138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
267139	OBSOL		4.2 sigreturn
268140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
269			    struct timeval *olddelta); }
270141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
271			    int *alen); } ogetpeername
272142	NOARGS		{ int32_t compat_43_sys_gethostid(void); } ogethostid
273143	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); } \
274			    osethostid
275144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
276			    struct orlimit *rlp); } ogetrlimit
277145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
278			    struct orlimit *rlp); } osetrlimit
279146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); } \
280			    okillpg
281147	NOARGS		{ int sys_setsid(void); }
282148	NOARGS		{ int sys_quotactl(char *path, int cmd, int uid, \
283			    caddr_t arg); }
284149	NOARGS		{ int compat_43_sys_quota(void); } oquota
285150	NOARGS		{ int compat_43_sys_getsockname(int fdec, caddr_t asa, \
286			    int *alen); } ogetsockname
287
288; Syscalls 151-180 inclusive are reserved for vendor-specific
289; system calls.  (This includes various calls added for compatibity
290; with other Unix variants.)
291; Some of these calls are now supported by BSD...
292151	UNIMPL		sem_lock
293152	UNIMPL		sem_wakeup
294153	UNIMPL		asyncdaemon
295154	UNIMPL
296#if defined(NFS) || defined(NFSSERVER)
297155	NOARGS		{ int sys_nfssvc(int flag, caddr_t argp); }
298#else
299155	UNIMPL		nfssvc
300#endif
301156	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
302			    u_int count, long *basep); } ogetdirentries
303157	STD		{ int freebsd_sys_statfs(const char *path, \
304			    struct statfs *buf); }
305158	NOARGS		{ int sys_fstatfs(int fd, struct statfs *buf); }
306159	UNIMPL
307160	UNIMPL
308#ifdef NFS
309161	STD		{ int freebsd_sys_getfh(const char *fname, \
310			    fhandle_t *fhp); }
311#else
312161	UNIMPL		getfh
313#endif
314162	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
315			    int len); }
316163	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
317			    int len); }
318164	NOARGS		{ int compat_09_sys_uname(struct outsname *name); }
319165	NOARGS		{ int sys_sysarch(int op, char *parms); }
320166	STD		{ int freebsd_sys_rtprio(int function, pid_t pid, \
321			    struct freebsd_rtprio *rtp); }
322167	UNIMPL
323168	UNIMPL
324; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
325#if defined(SYSVSEM) && !defined(alpha)
326169	STD		{ int freebsd_sys_semsys(int which, int a2, int a3, \
327			    int a4, int a5); }
328#else
329169	UNIMPL		1.0 semsys
330#endif
331; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
332#if defined(SYSVMSG) && !defined(alpha)
333170	STD		{ int freebsd_sys_msgsys(int which, int a2, int a3, \
334			    int a4, int a5, int a6); }
335#else
336170	UNIMPL		1.0 msgsys
337#endif
338; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
339#if defined(SYSVSHM) && !defined(alpha)
340171	STD		{ int freebsd_sys_shmsys(int which, int a2, int a3, \
341			    int a4); }
342#else
343171	UNIMPL		1.0 shmsys
344#endif
345172	UNIMPL
346173	NOARGS		{ ssize_t sys_pread(int fd, void *buf, \
347			    size_t nbyte, int pad, off_t offset); }
348174	NOARGS		{ ssize_t sys_pwrite(int fd, const void *buf, \
349			    size_t nbyte, int pad, off_t offset); }
350175	UNIMPL
351176	STD		{ int freebsd_ntp_adjtime(struct freebsd_timex *tp); }
352177	UNIMPL		sfork
353178	UNIMPL		getdescriptor
354179	UNIMPL		setdescriptor
355180	UNIMPL
356
357; Syscalls 180-199 are used by/reserved for BSD
358181	NOARGS		{ int sys_setgid(gid_t gid); }
359182	NOARGS		{ int sys_setegid(gid_t egid); }
360183	NOARGS		{ int sys_seteuid(uid_t euid); }
361#ifdef LFS
362184	NOARGS		{ int sys_lfs_bmapv(fsid_t *fsidp, \
363			    struct block_info *blkiov, int blkcnt); }
364185	NOARGS		{ int sys_lfs_markv(fsid_t *fsidp, \
365			    struct block_info *blkiov, int blkcnt); }
366186	NOARGS		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
367187	NOARGS		{ int sys_lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
368#else
369184	UNIMPL
370185	UNIMPL
371186	UNIMPL
372187	UNIMPL
373#endif
374188	STD		{ int freebsd_sys_stat(const char *path, \
375			    struct stat12 *ub); }
376189	NOARGS		{ int compat_12_sys_fstat(int fd, \
377			    struct stat12 *sb); }
378190	STD		{ int freebsd_sys_lstat(const char *path, \
379			    struct stat12 *ub); }
380191	STD		{ int freebsd_sys_pathconf(const char *path, \
381			    int name); }
382192	NOARGS		{ int sys_fpathconf(int fd, int name); }
383193	UNIMPL
384194	NOARGS		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
385195	NOARGS		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
386196	NOARGS		{ int compat_12_sys_getdirentries(int fd, char *buf, \
387			    u_int count, long *basep); }
388197	NOARGS		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
389			    int flags, int fd, long pad, off_t pos); }
390198	NOARGS		{ int sys_nosys(void); } __syscall
391199	NOARGS		{ off_t sys_lseek(int fd, int pad, off_t offset, \
392			    int whence); }
393200	STD		{ int freebsd_sys_truncate(const char *path, int pad, \
394			    off_t length); }
395201	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); }
396202	NOARGS		{ int sys___sysctl(int *name, u_int namelen, \
397			    void *old, size_t *oldlenp, void *new, \
398			    size_t newlen); }
399203	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
400204	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
401#ifdef FREEBSD_BASED_ON_44LITE_R2
402205	STD		{ int freebsd_sys_undelete(char *path); }
403#else
404205	UNIMPL		undelete
405#endif
406206	NOARGS		{ int sys_futimes(int fd, const struct timeval *tptr); }
407207	NOARGS		{ pid_t sys_getpgid(pid_t pid); }
408#if 0
409208	NOARGS		{ int sys_reboot(int opt, char *bootstr); }
410#else
411208	UNIMPL		newreboot
412#endif
413209	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
414			    int timeout); }
415;
416; Syscalls 210-219 are reserved for dynamically loaded syscalls
417;
418210	UNIMPL
419211	UNIMPL
420212	UNIMPL
421213	UNIMPL
422214	UNIMPL
423215	UNIMPL
424216	UNIMPL
425217	UNIMPL
426218	UNIMPL
427219	UNIMPL
428;
429; Syscalls 220-239 are reserved for syscalls imported from NetBSD
430;
431#ifdef SYSVSEM
432220	NOARGS		{ int compat_14_sys___semctl(int semid, int semnum, \
433			    int cmd, union __semun *arg); }
434221	NOARGS		{ int sys_semget(key_t key, int nsems, int semflg); }
435222	NOARGS		{ int sys_semop(int semid, struct sembuf *sops, \
436			    u_int nsops); }
437223	NOARGS		{ int sys_semconfig(int flag); }
438#else
439220	UNIMPL		semctl
440221	UNIMPL		semget
441222	UNIMPL		semop
442223	UNIMPL		semconfig
443#endif
444#ifdef SYSVMSG
445224	NOARGS		{ int compat_14_sys_msgctl(int msqid, int cmd, \
446			    struct msqid14_ds *buf); }
447225	NOARGS		{ int sys_msgget(key_t key, int msgflg); }
448226	NOARGS		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
449			    int msgflg); }
450227	NOARGS		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
451			    long msgtyp, int msgflg); }
452#else
453224	UNIMPL		msgctl
454225	UNIMPL		msgget
455226	UNIMPL		msgsnd
456227	UNIMPL		msgrcv
457#endif
458#ifdef SYSVSHM
459228	NOARGS		{ int sys_shmat(int shmid, void *shmaddr, int shmflg); }
460229	NOARGS		{ int compat_14_sys_shmctl(int shmid, int cmd, \
461			    struct shmid_ds14 *buf); }
462230	NOARGS		{ int sys_shmdt(void *shmaddr); }
463231	NOARGS		{ int sys_shmget(key_t key, int size, int shmflg); }
464#else
465228	UNIMPL		shmat
466229	UNIMPL		shmctl
467230	UNIMPL		shmdt
468231	UNIMPL		shmget
469#endif
470;
471; XXXX
472232	NOARGS		{ int sys_clock_gettime(clockid_t clock_id, \
473			    struct timespec *tp); }
474233	NOARGS		{ int sys_clock_settime(clockid_t clock_id, \
475			    const struct timespec *tp); }
476234	NOARGS		{ int sys_clock_getres(clockid_t clock_id, \
477			    struct timespec *tp); }
478235	UNIMPL		timer_create
479236	UNIMPL		timer_delete
480237	UNIMPL		timer_settime
481238	UNIMPL		timer_gettime
482239	UNIMPL		timer_getoverrun
483240	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
484			    struct timespec *rmtp); }
485241	UNIMPL
486242	UNIMPL
487243	UNIMPL
488244	UNIMPL
489245	UNIMPL
490246	UNIMPL
491247	UNIMPL
492248	UNIMPL
493249	UNIMPL
494; syscall numbers initially used in OpenBSD
495250	UNIMPL		minherit
496251	UNIMPL		rfork
497252	UNIMPL		openbsd_poll
498253	NOARGS		{ int sys_issetugid(void); }
499254	STD		{ int freebsd_sys_lchown(const char *path, int uid, \
500			    int gid); }
501255	UNIMPL
502256	UNIMPL
503257	UNIMPL
504258	UNIMPL
505259	UNIMPL
506260	UNIMPL
507261	UNIMPL
508262	UNIMPL
509263	UNIMPL
510264	UNIMPL
511265	UNIMPL
512266	UNIMPL
513267	UNIMPL
514268	UNIMPL
515269	UNIMPL
516270	UNIMPL
517271	UNIMPL
518272	NOARGS		{ int sys_getdents(int fd, char *buf, size_t count); }
519273	UNIMPL
520274	NOARGS		{ int sys_lchmod(const char *path, mode_t mode); }
521275	NOARGS		{ int sys_lchown(const char *path, uid_t uid, \
522			    gid_t gid); } netbsd_lchown
523276	NOARGS		{ int sys_lutimes(const char *path, \
524			    const struct timeval *tptr); }
525277	NOARGS		{ int sys___msync13(void *addr, size_t len, int flags); }
526278	NOARGS		{ int sys___stat13(const char *path, struct stat *ub); }
527279	NOARGS		{ int sys___fstat13(int fd, struct stat *sb); }
528280	NOARGS		{ int sys___lstat13(const char *path, struct stat *ub);}
529281	UNIMPL
530282	UNIMPL
531283	UNIMPL
532284	UNIMPL
533285	UNIMPL
534286	UNIMPL
535287	UNIMPL
536288	UNIMPL
537289	UNIMPL
538290	UNIMPL
539291	UNIMPL
540292	UNIMPL
541293	UNIMPL
542294	UNIMPL
543295	UNIMPL
544296	UNIMPL
545297	UNIMPL		fhstatfs
546298	UNIMPL		fhopen
547299	UNIMPL		fhstat
548; syscall numbers for FreeBSD
549300	UNIMPL		modnext
550301	UNIMPL		modstat
551302	UNIMPL		modfnext
552303	UNIMPL		modfind
553304	UNIMPL		kldload
554305	UNIMPL		kldunload
555306	UNIMPL		kldfind
556307	UNIMPL		kldnext
557308	UNIMPL		kldstat
558309	UNIMPL		kldfirstmod
559310	NOARGS		{ pid_t sys_getsid(pid_t pid); }
560311	UNIMPL		setresuid
561312	UNIMPL		setresgid
562313	UNIMPL		signanosleep
563314	UNIMPL		aio_return
564315	UNIMPL		aio_suspend
565316	UNIMPL		aio_cancel
566317	UNIMPL		aio_error
567318	UNIMPL		aio_read
568319	UNIMPL		aio_write
569320	UNIMPL		lio_listio
570321	UNIMPL		yield
571322	UNIMPL		thr_sleep
572323	UNIMPL		thr_wakeup
573324	NOARGS		{ int sys_mlockall(int flags); }
574325	NOARGS		{ int sys_munlockall(void); }
575326	NOARGS		{ int sys___getcwd(char *bufp, size_t length); }
576327	UNIMPL		sched_setparam
577328	UNIMPL		sched_getparam
578329	UNIMPL		sched_setscheduler
579330	UNIMPL		sched_getscheduler
580331	UNIMPL		sched_yield
581332	UNIMPL		sched_get_priority_max
582333	UNIMPL		sched_get_priority_min
583334	UNIMPL		sched_rr_get_interval
584335	UNIMPL		utrace
585336	UNIMPL		sendfile
586337	UNIMPL		kldsym
587338	UNIMPL		jail
588339	UNIMPL		pioctl
589340	NOARGS		{ int sys___sigprocmask14(int how, \
590			    const sigset_t *set, \
591			    sigset_t *oset); }
592341	NOARGS		{ int sys___sigsuspend14(const sigset_t *set); }
593342	STD		{ int freebsd_sys_sigaction4(int signum, \
594			    const struct freebsd_sigaction4 *nsa, \
595			    struct freebsd_sigaction4 *osa); }
596343	NOARGS		{ int sys___sigpending14(const sigset_t *set); }
597344	UNIMPL		4.0 sigreturn
598345	UNIMPL		sigtimedwait
599346	UNIMPL		sigwaitinfo
600347	UNIMPL		__acl_get_file
601348	UNIMPL		__acl_set_file
602349	UNIMPL		__acl_get_fd
603350	UNIMPL		__acl_set_fd
604351	UNIMPL		__acl_delete_file
605352	UNIMPL		__acl_delete_fd
606353	UNIMPL		__acl_aclcheck_file
607354	UNIMPL		__acl_aclcheck_fd
608355	UNIMPL		extattrctl
609356	UNIMPL		extattr_set_file
610357	UNIMPL		extattr_get_file
611358	UNIMPL		extattr_delete_file
612359	UNIMPL		aio_waitcomplete
613360	UNIMPL		getresuid
614361	UNIMPL		getresgid
615362	UNIMPL		kqueue
616363	UNIMPL		kevent
617