xref: /openbsd-src/sys/kern/syscalls.master (revision 4c1e55dc91edd6e69ccc60ce855900fbc12cf34f)
1;	$OpenBSD: syscalls.master,v 1.124 2012/06/21 00:56:59 guenther Exp $
2;	$NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
3
4;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
5
6; OpenBSD system call name/number "master" file.
7; (See syscalls.conf to see what it is processed into.)
8;
9; Fields: number type [type-dependent ...]
10;	number	system call number, must be in order
11;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
12;		the compatibility options defined in syscalls.conf.
13;
14; types:
15;	STD	always included
16;	OBSOL	obsolete, not included in system
17;	UNIMPL	unimplemented, 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 switch definition file only.
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/signal.h>
40#include <sys/mount.h>
41#include <sys/syscallargs.h>
42#include <sys/poll.h>
43#include <sys/event.h>
44#include <nnpfs/nnpfs_pioctl.h>
45
46; Reserved/unimplemented system calls in the range 0-150 inclusive
47; are reserved for use in future Berkeley releases.
48; Additional system calls implemented in vendor and other
49; redistributions should be placed in the reserved range at the end
50; of the current calls.
51
520	INDIR		{ int sys_syscall(int number, ...); }
531	STD		{ void sys_exit(int rval); }
542	STD		{ int sys_fork(void); }
553	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
564	STD		{ ssize_t sys_write(int fd, const void *buf, \
57			    size_t nbyte); }
585	STD		{ int sys_open(const char *path, \
59			    int flags, ... mode_t mode); }
606	STD		{ int sys_close(int fd); }
617	STD		{ pid_t sys_wait4(pid_t pid, int *status, int options, \
62			    struct rusage *rusage); }
638	STD		{ int sys___tfork(const struct __tfork *param, \
64			    size_t psize); }
659	STD		{ int sys_link(const char *path, const char *link); }
6610	STD		{ int sys_unlink(const char *path); }
6711	OBSOL		execv
6812	STD		{ int sys_chdir(const char *path); }
6913	STD		{ int sys_fchdir(int fd); }
7014	STD		{ int sys_mknod(const char *path, mode_t mode, \
71			    dev_t dev); }
7215	STD		{ int sys_chmod(const char *path, mode_t mode); }
7316	STD		{ int sys_chown(const char *path, uid_t uid, \
74			    gid_t gid); }
7517	STD		{ int sys_obreak(char *nsize); } break
7618	STD		{ int sys_getdtablecount(void); }
7719	OBSOL		olseek
7820	STD NOLOCK	{ pid_t sys_getpid(void); }
7921	STD		{ int sys_mount(const char *type, const char *path, \
80			    int flags, void *data); }
8122	STD		{ int sys_unmount(const char *path, int flags); }
8223	STD		{ int sys_setuid(uid_t uid); }
8324	STD		{ uid_t sys_getuid(void); }
8425	STD		{ uid_t sys_geteuid(void); }
85#ifdef PTRACE
8626	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
87			    int data); }
88#else
8926	UNIMPL		ptrace
90#endif
9127	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
92			    int flags); }
9328	STD		{ ssize_t sys_sendmsg(int s, \
94			    const struct msghdr *msg, int flags); }
9529	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
96			    int flags, struct sockaddr *from, \
97			    socklen_t *fromlenaddr); }
9830	STD		{ int sys_accept(int s, struct sockaddr *name, \
99			    socklen_t *anamelen); }
10031	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
101			    socklen_t *alen); }
10232	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
103			    socklen_t *alen); }
10433	STD		{ int sys_access(const char *path, int flags); }
10534	STD		{ int sys_chflags(const char *path, u_int flags); }
10635	STD		{ int sys_fchflags(int fd, u_int flags); }
10736	STD		{ void sys_sync(void); }
10837	STD		{ int sys_kill(int pid, int signum); }
10938	OBSOL		stat43
11039	STD		{ pid_t sys_getppid(void); }
11140	OBSOL		lstat43
11241	STD		{ int sys_dup(int fd); }
11342	OBSOL		opipe
11443	STD		{ gid_t sys_getegid(void); }
11544	STD		{ int sys_profil(caddr_t samples, size_t size, \
116			    u_long offset, u_int scale); }
117#ifdef KTRACE
11845	STD		{ int sys_ktrace(const char *fname, int ops, \
119			    int facs, pid_t pid); }
120#else
12145	UNIMPL		ktrace
122#endif
12346	STD		{ int sys_sigaction(int signum, \
124			    const struct sigaction *nsa, \
125			    struct sigaction *osa); }
12647	STD		{ gid_t sys_getgid(void); }
12748	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
12849	STD		{ int sys_getlogin(char *namebuf, u_int namelen); }
12950	STD		{ int sys_setlogin(const char *namebuf); }
130#ifdef ACCOUNTING
13151	STD		{ int sys_acct(const char *path); }
132#else
13351	UNIMPL		acct
134#endif
13552	STD		{ int sys_sigpending(void); }
13653	OBSOL		osigaltstack
13754	STD		{ int sys_ioctl(int fd, \
138			    u_long com, ... void *data); }
13955	STD		{ int sys_reboot(int opt); }
14056	STD		{ int sys_revoke(const char *path); }
14157	STD		{ int sys_symlink(const char *path, \
142			    const char *link); }
14358	STD		{ int sys_readlink(const char *path, char *buf, \
144			    size_t count); }
14559	STD		{ int sys_execve(const char *path, \
146			    char * const *argp, char * const *envp); }
14760	STD		{ mode_t sys_umask(mode_t newmask); }
14861	STD		{ int sys_chroot(const char *path); }
14962	OBSOL		fstat43
15063	OBSOL		ogetkerninfo
15164	OBSOL		ogetpagesize
15265	OBSOL		omsync25
15366	STD		{ int sys_vfork(void); }
15467	OBSOL		vread
15568	OBSOL		vwrite
15669	OBSOL		sbrk
15770	OBSOL		sstk
15871	OBSOL		ommap
15972	OBSOL		vadvise
16073	STD		{ int sys_munmap(void *addr, size_t len); }
16174	STD		{ int sys_mprotect(void *addr, size_t len, \
162			    int prot); }
16375	STD		{ int sys_madvise(void *addr, size_t len, \
164			    int behav); }
16576	OBSOL		vhangup
16677	OBSOL		vlimit
16778	STD		{ int sys_mincore(void *addr, size_t len, \
168			    char *vec); }
16979	STD		{ int sys_getgroups(int gidsetsize, \
170			    gid_t *gidset); }
17180	STD		{ int sys_setgroups(int gidsetsize, \
172			    const gid_t *gidset); }
17381	STD		{ int sys_getpgrp(void); }
17482	STD		{ int sys_setpgid(pid_t pid, int pgid); }
17583	STD		{ int sys_setitimer(int which, \
176			    const struct itimerval *itv, \
177			    struct itimerval *oitv); }
17884	OBSOL		owait
17985	OBSOL		swapon25
18086	STD		{ int sys_getitimer(int which, \
181			    struct itimerval *itv); }
18287	OBSOL		ogethostname
18388	OBSOL		osethostname
18489	OBSOL		ogetdtablesize
18590	STD		{ int sys_dup2(int from, int to); }
18691	UNIMPL		getdopt
18792	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
18893	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
189			    fd_set *ex, struct timeval *tv); }
19094	UNIMPL		setdopt
19195	STD		{ int sys_fsync(int fd); }
19296	STD		{ int sys_setpriority(int which, id_t who, int prio); }
19397	STD		{ int sys_socket(int domain, int type, int protocol); }
19498	STD		{ int sys_connect(int s, const struct sockaddr *name, \
195			    socklen_t namelen); }
19699	OBSOL		oaccept
197100	STD		{ int sys_getpriority(int which, id_t who); }
198101	OBSOL		osend
199102	OBSOL		orecv
200103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
201104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
202			    socklen_t namelen); }
203105	STD		{ int sys_setsockopt(int s, int level, int name, \
204			    const void *val, socklen_t valsize); }
205106	STD		{ int sys_listen(int s, int backlog); }
206107	OBSOL		vtimes
207108	OBSOL		osigvec
208109	OBSOL		osigblock
209110	OBSOL		osigsetmask
210111	STD		{ int sys_sigsuspend(int mask); }
211112	OBSOL		osigstack
212113	OBSOL		orecvmsg
213114	OBSOL		osendmsg
214115	OBSOL		vtrace
215116	STD NOLOCK	{ int sys_gettimeofday(struct timeval *tp, \
216			    struct timezone *tzp); }
217117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
218118	STD		{ int sys_getsockopt(int s, int level, int name, \
219			    void *val, socklen_t *avalsize); }
220119	OBSOL		resuba
221120	STD		{ ssize_t sys_readv(int fd, \
222			    const struct iovec *iovp, int iovcnt); }
223121	STD		{ ssize_t sys_writev(int fd, \
224			    const struct iovec *iovp, int iovcnt); }
225122	STD		{ int sys_settimeofday(const struct timeval *tv, \
226			    const struct timezone *tzp); }
227123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
228124	STD		{ int sys_fchmod(int fd, mode_t mode); }
229125	OBSOL		orecvfrom
230126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
231127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
232128	STD		{ int sys_rename(const char *from, const char *to); }
233129	OBSOL		otruncate
234130	OBSOL		oftruncate
235131	STD		{ int sys_flock(int fd, int how); }
236132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
237133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
238			    size_t len, int flags, const struct sockaddr *to, \
239			    socklen_t tolen); }
240134	STD		{ int sys_shutdown(int s, int how); }
241135	STD		{ int sys_socketpair(int domain, int type, \
242			    int protocol, int *rsv); }
243136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
244137	STD		{ int sys_rmdir(const char *path); }
245138	STD		{ int sys_utimes(const char *path, \
246			    const struct timeval *tptr); }
247139	OBSOL		4.2 sigreturn
248140	STD		{ int sys_adjtime(const struct timeval *delta, \
249			    struct timeval *olddelta); }
250141	OBSOL		ogetpeername
251142	OBSOL		ogethostid
252143	OBSOL		osethostid
253144	OBSOL		ogetrlimit
254145	OBSOL		osetrlimit
255146	OBSOL		okillpg
256147	STD		{ int sys_setsid(void); }
257148	STD		{ int sys_quotactl(const char *path, int cmd, \
258			    int uid, char *arg); }
259149	OBSOL		oquota
260150	OBSOL		ogetsockname
261
262; Syscalls 151-180 inclusive are reserved for vendor-specific
263; system calls.  (This includes various calls added for compatibility
264; with other Unix variants.)
265; Some of these calls are now supported by BSD...
266151	UNIMPL
267152	UNIMPL
268153	UNIMPL
269154	UNIMPL
270#if defined(NFSCLIENT) || defined(NFSSERVER)
271155	STD		{ int sys_nfssvc(int flag, void *argp); }
272#else
273155	UNIMPL
274#endif
275156	OBSOL		ogetdirentries
276157	OBSOL		statfs25
277158	OBSOL		fstatfs25
278159	UNIMPL
279160	UNIMPL
280161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
281162	OBSOL		ogetdomainname
282163	OBSOL		osetdomainname
283164	UNIMPL		ouname
284165	STD		{ int sys_sysarch(int op, void *parms); }
285166	UNIMPL
286167	UNIMPL
287168	UNIMPL
288169	OBSOL		semsys10
289170	OBSOL		msgsys10
290171	OBSOL		shmsys10
291172	UNIMPL
292173	STD		{ ssize_t sys_pread(int fd, void *buf, \
293			  size_t nbyte, int pad, off_t offset); }
294174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
295			  size_t nbyte, int pad, off_t offset); }
296175	UNIMPL		ntp_gettime
297176	UNIMPL		ntp_adjtime
298177	UNIMPL
299178	UNIMPL
300179	UNIMPL
301180	UNIMPL
302
303; Syscalls 181-199 are used by/reserved for BSD
304181	STD		{ int sys_setgid(gid_t gid); }
305182	STD		{ int sys_setegid(gid_t egid); }
306183	STD		{ int sys_seteuid(uid_t euid); }
307184	OBSOL		lfs_bmapv
308185	OBSOL		lfs_markv
309186	OBSOL		lfs_segclean
310187	OBSOL		lfs_segwait
311188	OBSOL		stat35
312189	OBSOL		fstat35
313190	OBSOL		lstat35
314191	STD		{ long sys_pathconf(const char *path, int name); }
315192	STD		{ long sys_fpathconf(int fd, int name); }
316193	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
317194	STD		{ int sys_getrlimit(int which, \
318			    struct rlimit *rlp); }
319195	STD		{ int sys_setrlimit(int which, \
320			    const struct rlimit *rlp); }
321196	COMPAT_O48	{ int sys_getdirentries(int fd, char *buf, \
322			    int count, long *basep); }
323197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
324			    int flags, int fd, long pad, off_t pos); }
325198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
326199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
327			    int whence); }
328200	STD		{ int sys_truncate(const char *path, int pad, \
329			    off_t length); }
330201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
331202	STD		{ int sys___sysctl(int *name, u_int namelen, \
332			    void *old, size_t *oldlenp, void *new, \
333			    size_t newlen); }
334203	STD		{ int sys_mlock(const void *addr, size_t len); }
335204	STD		{ int sys_munlock(const void *addr, size_t len); }
336205	UNIMPL		sys_undelete
337206	STD		{ int sys_futimes(int fd, \
338			    const struct timeval *tptr); }
339207	STD		{ pid_t sys_getpgid(pid_t pid); }
340208	STD		{ int sys_nnpfspioctl(int operation, char *a_pathP, \
341			    int a_opcode, struct ViceIoctl *a_paramsP, \
342			    int a_followSymlinks); }
343209	UNIMPL
344;
345; Syscalls 210-219 are reserved for dynamically loaded syscalls
346;
347#ifdef LKM
348210	NODEF		{ int sys_lkmnosys(void); }
349211	NODEF		{ int sys_lkmnosys(void); }
350212	NODEF		{ int sys_lkmnosys(void); }
351213	NODEF		{ int sys_lkmnosys(void); }
352214	NODEF		{ int sys_lkmnosys(void); }
353215	NODEF		{ int sys_lkmnosys(void); }
354216	NODEF		{ int sys_lkmnosys(void); }
355217	NODEF		{ int sys_lkmnosys(void); }
356218	NODEF		{ int sys_lkmnosys(void); }
357219	NODEF		{ int sys_lkmnosys(void); }
358#else	/* !LKM */
359210	UNIMPL
360211	UNIMPL
361212	UNIMPL
362213	UNIMPL
363214	UNIMPL
364215	UNIMPL
365216	UNIMPL
366217	UNIMPL
367218	UNIMPL
368219	UNIMPL
369#endif	/* !LKM */
370; System calls 220-240 are reserved for use by OpenBSD
371#ifdef SYSVSEM
372220	UNIMPL
373221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
374#else
375220	UNIMPL		semctl
376221	UNIMPL		semget
377#endif
378222	OBSOL		semop35
379223	OBSOL		semconfig35
380#ifdef SYSVMSG
381224	UNIMPL
382225	STD		{ int sys_msgget(key_t key, int msgflg); }
383226	STD		{ int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
384			    int msgflg); }
385227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
386			    long msgtyp, int msgflg); }
387#else
388224	UNIMPL		msgctl
389225	UNIMPL		msgget
390226	UNIMPL		msgsnd
391227	UNIMPL		msgrcv
392#endif
393#ifdef SYSVSHM
394228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
395			    int shmflg); }
396229	UNIMPL
397230	STD		{ int sys_shmdt(const void *shmaddr); }
398#else
399228	UNIMPL		shmat
400229	UNIMPL		shmctl
401230	UNIMPL		shmdt
402#endif
403231	OBSOL		shmget35
404232	STD NOLOCK	{ int sys_clock_gettime(clockid_t clock_id, \
405			    struct timespec *tp); }
406233	STD		{ int sys_clock_settime(clockid_t clock_id, \
407			    const struct timespec *tp); }
408234	STD NOLOCK	{ int sys_clock_getres(clockid_t clock_id, \
409			    struct timespec *tp); }
410235	UNIMPL		timer_create
411236	UNIMPL		timer_delete
412237	UNIMPL		timer_settime
413238	UNIMPL		timer_gettime
414239	UNIMPL		timer_getoverrun
415;
416; System calls 240-249 are reserved for other IEEE Std1003.1b syscalls
417;
418240	STD NOLOCK	{ int sys_nanosleep(const struct timespec *rqtp, \
419			    struct timespec *rmtp); }
420241	UNIMPL
421242	UNIMPL
422243	UNIMPL
423244	UNIMPL
424245	UNIMPL
425246	UNIMPL
426247	UNIMPL
427248	UNIMPL
428249	UNIMPL
429250	STD		{ int sys_minherit(void *addr, size_t len, \
430			    int inherit); }
431251	OBSOL		rfork
432252	STD		{ int sys_poll(struct pollfd *fds, \
433			    u_int nfds, int timeout); }
434253	STD NOLOCK	{ int sys_issetugid(void); }
435254	STD		{ int sys_lchown(const char *path, uid_t uid, gid_t gid); }
436255	STD		{ pid_t sys_getsid(pid_t pid); }
437256	STD		{ int sys_msync(void *addr, size_t len, int flags); }
438257	OBSOL		semctl35
439258	OBSOL		shmctl35
440259	OBSOL		msgctl35
441260	UNIMPL
442261	UNIMPL
443262	UNIMPL
444263	STD		{ int sys_pipe(int *fdp); }
445264	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
446265	UNIMPL
447266	UNIMPL
448267	STD		{ ssize_t sys_preadv(int fd, \
449			  const struct iovec *iovp, int iovcnt, \
450			  int pad, off_t offset); }
451268	STD		{ ssize_t sys_pwritev(int fd, \
452			  const struct iovec *iovp, int iovcnt, \
453			  int pad, off_t offset); }
454269	STD		{ int sys_kqueue(void); }
455270	STD		{ int sys_kevent(int fd, \
456			    const struct kevent *changelist, int nchanges, \
457			    struct kevent *eventlist, int nevents, \
458			    const struct timespec *timeout); }
459271	STD		{ int sys_mlockall(int flags); }
460272	STD		{ int sys_munlockall(void); }
461273	UNIMPL		sys_getpeereid
462274	UNIMPL		sys_extattrctl
463275	UNIMPL		sys_extattr_set_file
464276	UNIMPL		sys_extattr_get_file
465277	UNIMPL		sys_extattr_delete_file
466278	UNIMPL		sys_extattr_set_fd
467279	UNIMPL		sys_extattr_get_fd
468280	UNIMPL		sys_extattr_delete_fd
469281	STD		{ int sys_getresuid(uid_t *ruid, uid_t *euid, \
470			    uid_t *suid); }
471282	STD		{ int sys_setresuid(uid_t ruid, uid_t euid, \
472			    uid_t suid); }
473283	STD		{ int sys_getresgid(gid_t *rgid, gid_t *egid, \
474			    gid_t *sgid); }
475284	STD		{ int sys_setresgid(gid_t rgid, gid_t egid, \
476			    gid_t sgid); }
477285	OBSOL		sys_omquery
478286	STD		{ void *sys_mquery(void *addr, size_t len, int prot, \
479			    int flags, int fd, long pad, off_t pos); }
480287	STD		{ int sys_closefrom(int fd); }
481288	STD		{ int sys_sigaltstack(const struct sigaltstack *nss, \
482			    struct sigaltstack *oss); }
483#ifdef SYSVSHM
484289	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
485#else
486289	UNIMPL		shmget
487#endif
488#ifdef SYSVSEM
489290	STD		{ int sys_semop(int semid, struct sembuf *sops, \
490			    size_t nsops); }
491#else
492290    UNIMPL		semop
493#endif
494291	STD		{ int sys_stat(const char *path, struct stat *ub); }
495292	STD		{ int sys_fstat(int fd, struct stat *sb); }
496293	STD		{ int sys_lstat(const char *path, struct stat *ub); }
497294	STD		{ int sys_fhstat(const fhandle_t *fhp, \
498			    struct stat *sb); }
499#ifdef SYSVSEM
500295	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
501			    union semun *arg); }
502#else
503295	UNIMPL
504#endif
505#ifdef SYSVSHM
506296	STD		{ int sys_shmctl(int shmid, int cmd, \
507			    struct shmid_ds *buf); }
508#else
509296	UNIMPL
510#endif
511#ifdef SYSVMSG
512297	STD		{ int sys_msgctl(int msqid, int cmd, \
513			    struct msqid_ds *buf); }
514#else
515297	UNIMPL
516#endif
517298	STD NOLOCK	{ int sys_sched_yield(void); }
518299	STD NOLOCK	{ pid_t sys_getthrid(void); }
519300	STD		{ int sys___thrsleep(const volatile void *ident, \
520			    clockid_t clock_id, const struct timespec *tp, \
521			    void *lock, const int *abort); }
522301	STD		{ int sys___thrwakeup(const volatile void *ident, \
523			    int n); }
524302	STD		{ void sys___threxit(pid_t *notdead); }
525303	STD		{ int sys___thrsigdivert(sigset_t sigmask, \
526			    siginfo_t *info, const struct timespec *timeout); }
527304	STD		{ int sys___getcwd(char *buf, size_t len); }
528305	STD		{ int sys_adjfreq(const int64_t *freq, \
529			    int64_t *oldfreq); }
530306	STD		{ int sys_getfsstat(struct statfs *buf, size_t bufsize, \
531			    int flags); }
532307	STD		{ int sys_statfs(const char *path, \
533			    struct statfs *buf); }
534308	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
535309	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
536			    struct statfs *buf); }
537310	STD		{ int sys_setrtable(int rtableid); }
538311	STD		{ int sys_getrtable(void); }
539312	STD		{ int sys_getdirentries(int fd, char *buf, \
540			    int count, off_t *basep); }
541313	STD		{ int sys_faccessat(int fd, const char *path, \
542			    int amode, int flag); }
543314	STD		{ int sys_fchmodat(int fd, const char *path, \
544			    mode_t mode, int flag); }
545315	STD		{ int sys_fchownat(int fd, const char *path, \
546			    uid_t uid, gid_t gid, int flag); }
547316	STD		{ int sys_fstatat(int fd, const char *path, \
548			    struct stat *buf, int flag); }
549317	STD		{ int sys_linkat(int fd1, const char *path1, int fd2, \
550			    const char *path2, int flag); }
551318	STD		{ int sys_mkdirat(int fd, const char *path, \
552			    mode_t mode); }
553319	STD		{ int sys_mkfifoat(int fd, const char *path, \
554			    mode_t mode); }
555320	STD		{ int sys_mknodat(int fd, const char *path, \
556			    mode_t mode, dev_t dev); }
557321	STD		{ int sys_openat(int fd, const char *path, int flags, \
558			    ... mode_t mode); }
559322	STD		{ ssize_t sys_readlinkat(int fd, const char *path, \
560			    char *buf, size_t count); }
561323	STD		{ int sys_renameat(int fromfd, const char *from, \
562			    int tofd, const char *to); }
563324	STD		{ int sys_symlinkat(const char *path, int fd, \
564			    const char *link); }
565325	STD		{ int sys_unlinkat(int fd, const char *path, \
566			    int flag); }
567326	STD		{ int sys_utimensat(int fd, const char *path, \
568			    const struct timespec *times, int flag); }
569327	STD		{ int sys_futimens(int fd, \
570			    const struct timespec *times); }
571328	COMPAT_O51	{ int sys___tfork(struct __tfork51 *param); }
572329	STD NOLOCK	{ void sys___set_tcb(void *tcb); }
573330	STD NOLOCK	{ void *sys___get_tcb(void); }
574