syscalls.master revision 1.81
1	$NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan 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;	NODEF	included, but don't define the syscall number
18;	NOARGS	included, but don't define the syscall args structure
19;	INDIR	included, but don't define the syscall args structure,
20;		and allow it to be "really" varargs.
21;
22; The compat options are defined in the syscalls.conf file, and the
23; compat option name is prefixed to the syscall name.  Other than
24; that, they're like NODEF (for 'compat' options), or STD (for
25; 'libcompat' options).
26;
27; The type-dependent arguments are as follows:
28; For STD, NODEF, NOARGS, and compat syscalls:
29;	{ pseudo-proto } [alias]
30; For other syscalls:
31;	[comment]
32;
33; #ifdef's, etc. may be included, and are copied to the output files.
34; #include's are copied to the syscall names and switch definition files only.
35
36#include "opt_ktrace.h"
37#include "opt_nfsserver.h"
38#include "opt_compat_netbsd.h"
39
40#include "fs_lfs.h"
41#include "fs_nfs.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/signal.h>
46#include <sys/mount.h>
47#include <sys/syscallargs.h>
48
49; Reserved/unimplemented system calls in the range 0-150 inclusive
50; are reserved for use in future Berkeley releases.
51; Additional system calls implemented in vendor and other
52; redistributions should be placed in the reserved range at the end
53; of the current calls.
54
550	INDIR		{ int sys_syscall(int number, ...); }
561	STD		{ void sys_exit(int rval); }
572	STD		{ int sys_fork(void); }
583	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
594	STD		{ ssize_t sys_write(int fd, const void *buf, \
60			    size_t nbyte); }
615	STD		{ int sys_open(const char *path, \
62			    int flags, ... mode_t mode); }
636	STD		{ int sys_close(int fd); }
647	STD		{ int sys_wait4(int pid, int *status, int options, \
65			    struct rusage *rusage); }
668	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
679	STD		{ int sys_link(const char *path, const char *link); }
6810	STD		{ int sys_unlink(const char *path); }
6911	OBSOL		execv
7012	STD		{ int sys_chdir(const char *path); }
7113	STD		{ int sys_fchdir(int fd); }
7214	STD		{ int sys_mknod(const char *path, mode_t mode, \
73			    dev_t dev); }
7415	STD		{ int sys_chmod(const char *path, mode_t mode); }
7516	STD		{ int sys_chown(const char *path, uid_t uid, \
76			    gid_t gid); }
7717	STD		{ int sys_obreak(char *nsize); } break
7818	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
79			    int flags); }
8019	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
81			    olseek
8220	STD		{ pid_t sys_getpid(void); }
8321	STD		{ int sys_mount(const char *type, const char *path, \
84			    int flags, void *data); }
8522	STD		{ int sys_unmount(const char *path, int flags); }
8623	STD		{ int sys_setuid(uid_t uid); }
8724	STD		{ uid_t sys_getuid(void); }
8825	STD		{ uid_t sys_geteuid(void); }
8926	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
90			    int data); }
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			    int *fromlenaddr); }
9830	STD		{ int sys_accept(int s, struct sockaddr *name, \
99			    int *anamelen); }
10031	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
101			    int *alen); }
10232	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
103			    int *alen); }
10433	STD		{ int sys_access(const char *path, int flags); }
10534	STD		{ int sys_chflags(const char *path, u_long flags); }
10635	STD		{ int sys_fchflags(int fd, u_long flags); }
10736	STD		{ void sys_sync(void); }
10837	STD		{ int sys_kill(int pid, int signum); }
10938	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
110			    stat43
11139	STD		{ pid_t sys_getppid(void); }
11240	COMPAT_43	{ int sys_lstat(const char *path, \
113			    struct stat43 *ub); } lstat43
11441	STD		{ int sys_dup(int fd); }
11542	STD		{ int sys_pipe(void); }
11643	STD		{ gid_t sys_getegid(void); }
11744	STD		{ int sys_profil(caddr_t samples, size_t size, \
118			    u_long offset, u_int scale); }
119#ifdef KTRACE
12045	STD		{ int sys_ktrace(const char *fname, int ops, \
121			    int facs, int pid); }
122#else
12345	UNIMPL		ktrace
124#endif
12546	STD		{ int sys_sigaction(int signum, \
126			    const struct sigaction *nsa, \
127			    struct sigaction *osa); }
12847	STD		{ gid_t sys_getgid(void); }
12948	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
13049	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
13150	STD		{ int sys_setlogin(const char *namebuf); }
13251	STD		{ int sys_acct(const char *path); }
13352	STD		{ int sys_sigpending(void); }
13453	COMPAT_13	{ int sys_sigaltstack(const struct sigaltstack13 \
135			    *nss, struct sigaltstack13 *oss); } sigaltstack13
13654	STD		{ int sys_ioctl(int fd, \
137			    u_long com, ... void *data); }
13855	COMPAT_12	{ int sys_reboot(int opt); } oreboot
13956	STD		{ int sys_revoke(const char *path); }
14057	STD		{ int sys_symlink(const char *path, \
141			    const char *link); }
14258	STD		{ int sys_readlink(const char *path, char *buf, \
143			    size_t count); }
14459	STD		{ int sys_execve(const char *path, \
145			    char * const *argp, char * const *envp); }
14660	STD		{ mode_t sys_umask(mode_t newmask); }
14761	STD		{ int sys_chroot(const char *path); }
14862	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
14963	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
150			    int arg); } ogetkerninfo
15164	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
15265	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
153; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
15466	STD		{ int sys_vfork(void); }
15567	OBSOL		vread
15668	OBSOL		vwrite
15769	STD		{ int sys_sbrk(int incr); }
15870	STD		{ int sys_sstk(int incr); }
15971	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
160			    int flags, int fd, long pos); } ommap
16172	STD		{ int sys_ovadvise(int anom); } vadvise
16273	STD		{ int sys_munmap(void *addr, size_t len); }
16374	STD		{ int sys_mprotect(void *addr, size_t len, \
164			    int prot); }
16575	STD		{ int sys_madvise(void *addr, size_t len, \
166			    int behav); }
16776	OBSOL		vhangup
16877	OBSOL		vlimit
16978	STD		{ int sys_mincore(caddr_t addr, size_t len, \
170			    char *vec); }
17179	STD		{ int sys_getgroups(int gidsetsize, \
172			    gid_t *gidset); }
17380	STD		{ int sys_setgroups(int gidsetsize, \
174			    const gid_t *gidset); }
17581	STD		{ int sys_getpgrp(void); }
17682	STD		{ int sys_setpgid(int pid, int pgid); }
17783	STD		{ int sys_setitimer(int which, \
178			    const struct itimerval *itv, \
179			    struct itimerval *oitv); }
18084	COMPAT_43	{ int sys_wait(void); } owait
18185	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
18286	STD		{ int sys_getitimer(int which, \
183			    struct itimerval *itv); }
18487	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
185			    ogethostname
18688	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
187			    osethostname
18889	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
18990	STD		{ int sys_dup2(int from, int to); }
19091	UNIMPL		getdopt
19192	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
19293	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
193			    fd_set *ex, struct timeval *tv); }
19494	UNIMPL		setdopt
19595	STD		{ int sys_fsync(int fd); }
19696	STD		{ int sys_setpriority(int which, int who, int prio); }
19797	STD		{ int sys_socket(int domain, int type, int protocol); }
19898	STD		{ int sys_connect(int s, const struct sockaddr *name, \
199			    int namelen); }
20099	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
201			    int *anamelen); } oaccept
202100	STD		{ int sys_getpriority(int which, int who); }
203101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
204			    int flags); } osend
205102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
206			    int flags); } orecv
207103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
208104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
209			    int namelen); }
210105	STD		{ int sys_setsockopt(int s, int level, int name, \
211			    const void *val, int valsize); }
212106	STD		{ int sys_listen(int s, int backlog); }
213107	OBSOL		vtimes
214108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
215			    struct sigvec *osv); } osigvec
216109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
217110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
218111	STD		{ int sys_sigsuspend(int mask); }
219112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
220			    struct sigstack *oss); } osigstack
221113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
222			    int flags); } orecvmsg
223114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
224			    osendmsg
225#ifdef TRACE
226115	STD		{ int sys_vtrace(int request, int value); }
227#else
228115	OBSOL		vtrace
229#endif
230116	STD		{ int sys_gettimeofday(struct timeval *tp, \
231			    struct timezone *tzp); }
232117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
233118	STD		{ int sys_getsockopt(int s, int level, int name, \
234			    void *val, int *avalsize); }
235119	OBSOL		resuba
236120	STD		{ ssize_t sys_readv(int fd, \
237			    const struct iovec *iovp, int iovcnt); }
238121	STD		{ ssize_t sys_writev(int fd, \
239			    const struct iovec *iovp, int iovcnt); }
240122	STD		{ int sys_settimeofday(const struct timeval *tv, \
241			    const struct timezone *tzp); }
242123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
243124	STD		{ int sys_fchmod(int fd, mode_t mode); }
244125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
245			    int flags, caddr_t from, int *fromlenaddr); } \
246			    orecvfrom
247126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
248127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
249128	STD		{ int sys_rename(const char *from, const char *to); }
250129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
251			    otruncate
252130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
253131	STD		{ int sys_flock(int fd, int how); }
254132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
255133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
256			    size_t len, int flags, const struct sockaddr *to, \
257			    int tolen); }
258134	STD		{ int sys_shutdown(int s, int how); }
259135	STD		{ int sys_socketpair(int domain, int type, \
260			    int protocol, int *rsv); }
261136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
262137	STD		{ int sys_rmdir(const char *path); }
263138	STD		{ int sys_utimes(const char *path, \
264			    const struct timeval *tptr); }
265139	OBSOL		4.2 sigreturn
266140	STD		{ int sys_adjtime(const struct timeval *delta, \
267			    struct timeval *olddelta); }
268141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
269			    int *alen); } ogetpeername
270142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
271143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
272144	COMPAT_43	{ int sys_getrlimit(int which, \
273			    struct orlimit *rlp); } ogetrlimit
274145	COMPAT_43	{ int sys_setrlimit(int which, \
275			    const struct orlimit *rlp); } osetrlimit
276146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
277147	STD		{ int sys_setsid(void); }
278148	STD		{ int sys_quotactl(const char *path, int cmd, \
279			    int uid, caddr_t arg); }
280149	COMPAT_43	{ int sys_quota(void); } oquota
281150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
282			    int *alen); } ogetsockname
283
284; Syscalls 151-180 inclusive are reserved for vendor-specific
285; system calls.  (This includes various calls added for compatibity
286; with other Unix variants.)
287; Some of these calls are now supported by BSD...
288151	UNIMPL
289152	UNIMPL
290153	UNIMPL
291154	UNIMPL
292#if defined(NFS) || defined(NFSSERVER)
293155	STD		{ int sys_nfssvc(int flag, void *argp); }
294#else
295155	UNIMPL
296#endif
297156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
298			    u_int count, long *basep); } ogetdirentries
299157	STD		{ int sys_statfs(const char *path, \
300			    struct statfs *buf); }
301158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
302159	UNIMPL
303160	UNIMPL
304#if defined(NFS) || defined(NFSSERVER)
305161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
306#else
307161	UNIMPL		getfh
308#endif
309162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
310			    ogetdomainname
311163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
312			    osetdomainname
313164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
314165	STD		{ int sys_sysarch(int op, void *parms); }
315166	UNIMPL
316167	UNIMPL
317168	UNIMPL
318; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
319#if defined(SYSVSEM) && !defined(alpha)
320169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
321			    int a5); } osemsys
322#else
323169	UNIMPL		1.0 semsys
324#endif
325; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
326#if defined(SYSVMSG) && !defined(alpha)
327170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
328			    int a5, int a6); } omsgsys
329#else
330170	UNIMPL		1.0 msgsys
331#endif
332; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
333#if defined(SYSVSHM) && !defined(alpha)
334171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
335			    oshmsys
336#else
337171	UNIMPL		1.0 shmsys
338#endif
339172	UNIMPL
340173	STD		{ ssize_t sys_pread(int fd, void *buf, \
341			    size_t nbyte, int pad, off_t offset); }
342174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
343			    size_t nbyte, int pad, off_t offset); }
344175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
345176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
346177	UNIMPL
347178	UNIMPL
348179	UNIMPL
349180	UNIMPL
350
351; Syscalls 180-199 are used by/reserved for BSD
352181	STD		{ int sys_setgid(gid_t gid); }
353182	STD		{ int sys_setegid(gid_t egid); }
354183	STD		{ int sys_seteuid(uid_t euid); }
355#ifdef LFS
356184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
357			    struct block_info *blkiov, int blkcnt); }
358185	STD		{ int lfs_markv(fsid_t *fsidp, \
359			    struct block_info *blkiov, int blkcnt); }
360186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
361187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
362#else
363184	UNIMPL
364185	UNIMPL
365186	UNIMPL
366187	UNIMPL
367#endif
368188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
369			    stat12
370189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
371190	COMPAT_12	{ int sys_lstat(const char *path, \
372			    struct stat12 *ub); } lstat12
373191	STD		{ long sys_pathconf(const char *path, int name); }
374192	STD		{ long sys_fpathconf(int fd, int name); }
375193	UNIMPL
376194	STD		{ int sys_getrlimit(int which, \
377			    struct rlimit *rlp); }
378195	STD		{ int sys_setrlimit(int which, \
379			    const struct rlimit *rlp); }
380196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
381			    u_int count, long *basep); }
382197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
383			    int flags, int fd, long pad, off_t pos); }
384198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
385199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
386			    int whence); }
387200	STD		{ int sys_truncate(const char *path, int pad, \
388			    off_t length); }
389201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
390202	STD		{ int sys___sysctl(int *name, u_int namelen, \
391			    void *old, size_t *oldlenp, void *new, \
392			    size_t newlen); }
393203	STD		{ int sys_mlock(const void *addr, size_t len); }
394204	STD		{ int sys_munlock(const void *addr, size_t len); }
395205	STD		{ int sys_undelete(const char *path); }
396206	STD		{ int sys_futimes(int fd, \
397			    const struct timeval *tptr); }
398207	STD		{ int sys_getpgid(pid_t pid); }
399208	STD		{ int sys_reboot(int opt, char *bootstr); }
400209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
401			    int timeout); }
402;
403; Syscalls 210-219 are reserved for dynamically loaded syscalls
404;
405#ifdef LKM
406210	NODEF		{ int sys_lkmnosys(void); }
407211	NODEF		{ int sys_lkmnosys(void); }
408212	NODEF		{ int sys_lkmnosys(void); }
409213	NODEF		{ int sys_lkmnosys(void); }
410214	NODEF		{ int sys_lkmnosys(void); }
411215	NODEF		{ int sys_lkmnosys(void); }
412216	NODEF		{ int sys_lkmnosys(void); }
413217	NODEF		{ int sys_lkmnosys(void); }
414218	NODEF		{ int sys_lkmnosys(void); }
415219	NODEF		{ int sys_lkmnosys(void); }
416#else	/* !LKM */
417210	UNIMPL
418211	UNIMPL
419212	UNIMPL
420213	UNIMPL
421214	UNIMPL
422215	UNIMPL
423216	UNIMPL
424217	UNIMPL
425218	UNIMPL
426219	UNIMPL
427#endif	/* !LKM */
428; System calls 220-300 are reserved for use by NetBSD
429#ifdef SYSVSEM
430220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
431			    union semun *arg); }
432221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
433222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
434			    size_t nsops); }
435223	STD		{ int sys_semconfig(int flag); }
436#else
437220	UNIMPL		semctl
438221	UNIMPL		semget
439222	UNIMPL		semop
440223	UNIMPL		semconfig
441#endif
442#ifdef SYSVMSG
443224	STD		{ int sys_msgctl(int msqid, int cmd, \
444			    struct msqid_ds *buf); }
445225	STD		{ int sys_msgget(key_t key, int msgflg); }
446226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
447			    size_t msgsz, int msgflg); }
448227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
449			    size_t msgsz, long msgtyp, int msgflg); }
450#else
451224	UNIMPL		msgctl
452225	UNIMPL		msgget
453226	UNIMPL		msgsnd
454227	UNIMPL		msgrcv
455#endif
456#ifdef SYSVSHM
457228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
458			    int shmflg); }
459229	STD		{ int sys_shmctl(int shmid, int cmd, \
460			    struct shmid_ds *buf); }
461230	STD		{ int sys_shmdt(const void *shmaddr); }
462231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
463#else
464228	UNIMPL		shmat
465229	UNIMPL		shmctl
466230	UNIMPL		shmdt
467231	UNIMPL		shmget
468#endif
469232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
470			    struct timespec *tp); }
471233	STD		{ int sys_clock_settime(clockid_t clock_id, \
472			    const struct timespec *tp); }
473234	STD		{ int sys_clock_getres(clockid_t clock_id, \
474			    struct timespec *tp); }
475235	UNIMPL		timer_create
476236	UNIMPL		timer_delete
477237	UNIMPL		timer_settime
478238	UNIMPL		timer_gettime
479239	UNIMPL		timer_getoverrun
480;
481; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
482;
483240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
484			    struct timespec *rmtp); }
485241	STD		{ int sys_fdatasync(int fd); }
486242	UNIMPL
487243	UNIMPL
488244	UNIMPL
489245	UNIMPL
490246	UNIMPL
491247	UNIMPL
492248	UNIMPL
493249	UNIMPL
494250	UNIMPL
495251	UNIMPL
496252	UNIMPL
497253	UNIMPL
498254	UNIMPL
499255	UNIMPL
500256	UNIMPL
501257	UNIMPL
502258	UNIMPL
503259	UNIMPL
504260	UNIMPL
505261	UNIMPL
506262	UNIMPL
507263	UNIMPL
508264	UNIMPL
509265	UNIMPL
510266	UNIMPL
511267	UNIMPL
512268	UNIMPL
513269	UNIMPL
514270	STD		{ int sys___posix_rename(const char *from, \
515			    const char *to); }
516271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
517272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
518273	STD		{ int sys_minherit(void *addr, size_t len, \
519			    int inherit); }
520274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
521275	STD		{ int sys_lchown(const char *path, uid_t uid, \
522			    gid_t gid); }
523276	STD		{ int sys_lutimes(const char *path, \
524			    const struct timeval *tptr); }
525277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
526278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
527279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
528280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
529281	STD		{ int sys___sigaltstack14(const struct sigaltstack \
530			    *nss, struct sigaltstack *oss); }
531282	STD		{ int sys___vfork14(void); }
532283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
533			    gid_t gid); }
534284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
535			    gid_t gid); }
536285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
537			    gid_t gid); }
538286	STD		{ pid_t sys_getsid(pid_t pid); }
539287	UNIMPL
540#ifdef KTRACE
541288	STD		{ int sys_fktrace(const int fd, int ops, \
542			    int facs, int pid); }
543#else
544288	UNIMPL
545#endif
546289	STD		{ ssize_t sys_preadv(int fd, \
547			    const struct iovec *iovp, int iovcnt, \
548			    int pad, off_t offset); }
549290	STD		{ ssize_t sys_pwritev(int fd, \
550			    const struct iovec *iovp, int iovcnt, \
551			    int pad, off_t offset); }
552