syscalls.master revision 1.83
1	$NetBSD: syscalls.master,v 1.83 1998/09/12 00:47:13 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;	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	COMPAT_13	{ int sys_sigaction(int signum, \
126			    const struct sigaction13 *nsa, \
127			    struct sigaction13 *osa); } sigaction13
12847	STD		{ gid_t sys_getgid(void); }
12948	COMPAT_13	{ int sys_sigprocmask(int how, \
130			    int mask); } sigprocmask13
13149	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
13250	STD		{ int sys_setlogin(const char *namebuf); }
13351	STD		{ int sys_acct(const char *path); }
13452	COMPAT_13	{ int sys_sigpending(void); } sigpending13
13553	COMPAT_13	{ int sys_sigaltstack( \
136			    const struct sigaltstack13 *nss, \
137			    struct sigaltstack13 *oss); } sigaltstack13
13854	STD		{ int sys_ioctl(int fd, \
139			    u_long com, ... void *data); }
14055	COMPAT_12	{ int sys_reboot(int opt); } oreboot
14156	STD		{ int sys_revoke(const char *path); }
14257	STD		{ int sys_symlink(const char *path, \
143			    const char *link); }
14458	STD		{ int sys_readlink(const char *path, char *buf, \
145			    size_t count); }
14659	STD		{ int sys_execve(const char *path, \
147			    char * const *argp, char * const *envp); }
14860	STD		{ mode_t sys_umask(mode_t newmask); }
14961	STD		{ int sys_chroot(const char *path); }
15062	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
15163	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
152			    int arg); } ogetkerninfo
15364	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
15465	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
155; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
15666	STD		{ int sys_vfork(void); }
15767	OBSOL		vread
15868	OBSOL		vwrite
15969	STD		{ int sys_sbrk(int incr); }
16070	STD		{ int sys_sstk(int incr); }
16171	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
162			    int flags, int fd, long pos); } ommap
16372	STD		{ int sys_ovadvise(int anom); } vadvise
16473	STD		{ int sys_munmap(void *addr, size_t len); }
16574	STD		{ int sys_mprotect(void *addr, size_t len, \
166			    int prot); }
16775	STD		{ int sys_madvise(void *addr, size_t len, \
168			    int behav); }
16976	OBSOL		vhangup
17077	OBSOL		vlimit
17178	STD		{ int sys_mincore(caddr_t addr, size_t len, \
172			    char *vec); }
17379	STD		{ int sys_getgroups(int gidsetsize, \
174			    gid_t *gidset); }
17580	STD		{ int sys_setgroups(int gidsetsize, \
176			    const gid_t *gidset); }
17781	STD		{ int sys_getpgrp(void); }
17882	STD		{ int sys_setpgid(int pid, int pgid); }
17983	STD		{ int sys_setitimer(int which, \
180			    const struct itimerval *itv, \
181			    struct itimerval *oitv); }
18284	COMPAT_43	{ int sys_wait(void); } owait
18385	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
18486	STD		{ int sys_getitimer(int which, \
185			    struct itimerval *itv); }
18687	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
187			    ogethostname
18888	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
189			    osethostname
19089	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
19190	STD		{ int sys_dup2(int from, int to); }
19291	UNIMPL		getdopt
19392	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
19493	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
195			    fd_set *ex, struct timeval *tv); }
19694	UNIMPL		setdopt
19795	STD		{ int sys_fsync(int fd); }
19896	STD		{ int sys_setpriority(int which, int who, int prio); }
19997	STD		{ int sys_socket(int domain, int type, int protocol); }
20098	STD		{ int sys_connect(int s, const struct sockaddr *name, \
201			    int namelen); }
20299	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
203			    int *anamelen); } oaccept
204100	STD		{ int sys_getpriority(int which, int who); }
205101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
206			    int flags); } osend
207102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
208			    int flags); } orecv
209103	COMPAT_13	{ int sys_sigreturn(struct sigcontext *sigcntxp); } \
210			    sigreturn13
211104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
212			    int namelen); }
213105	STD		{ int sys_setsockopt(int s, int level, int name, \
214			    const void *val, int valsize); }
215106	STD		{ int sys_listen(int s, int backlog); }
216107	OBSOL		vtimes
217108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
218			    struct sigvec *osv); } osigvec
219109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
220110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
221111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
222112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
223			    struct sigstack *oss); } osigstack
224113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
225			    int flags); } orecvmsg
226114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
227			    osendmsg
228#ifdef TRACE
229115	STD		{ int sys_vtrace(int request, int value); }
230#else
231115	OBSOL		vtrace
232#endif
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, 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			    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)
296155	STD		{ int sys_nfssvc(int flag, void *argp); }
297#else
298155	UNIMPL
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
307#if defined(NFS) || defined(NFSSERVER)
308161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
309#else
310161	UNIMPL		getfh
311#endif
312162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
313			    ogetdomainname
314163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
315			    osetdomainname
316164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
317165	STD		{ int sys_sysarch(int op, void *parms); }
318166	UNIMPL
319167	UNIMPL
320168	UNIMPL
321; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
322#if defined(SYSVSEM) && !defined(alpha)
323169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
324			    int a5); } osemsys
325#else
326169	UNIMPL		1.0 semsys
327#endif
328; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
329#if defined(SYSVMSG) && !defined(alpha)
330170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
331			    int a5, int a6); } omsgsys
332#else
333170	UNIMPL		1.0 msgsys
334#endif
335; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
336#if defined(SYSVSHM) && !defined(alpha)
337171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
338			    oshmsys
339#else
340171	UNIMPL		1.0 shmsys
341#endif
342172	UNIMPL
343173	STD		{ ssize_t sys_pread(int fd, void *buf, \
344			    size_t nbyte, int pad, off_t offset); }
345174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
346			    size_t nbyte, int pad, off_t offset); }
347175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
348176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
349177	UNIMPL
350178	UNIMPL
351179	UNIMPL
352180	UNIMPL
353
354; Syscalls 180-199 are used by/reserved for BSD
355181	STD		{ int sys_setgid(gid_t gid); }
356182	STD		{ int sys_setegid(gid_t egid); }
357183	STD		{ int sys_seteuid(uid_t euid); }
358#ifdef LFS
359184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
360			    struct block_info *blkiov, int blkcnt); }
361185	STD		{ int lfs_markv(fsid_t *fsidp, \
362			    struct block_info *blkiov, int blkcnt); }
363186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
364187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
365#else
366184	UNIMPL
367185	UNIMPL
368186	UNIMPL
369187	UNIMPL
370#endif
371188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
372			    stat12
373189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
374190	COMPAT_12	{ int sys_lstat(const char *path, \
375			    struct stat12 *ub); } lstat12
376191	STD		{ long sys_pathconf(const char *path, int name); }
377192	STD		{ long sys_fpathconf(int fd, int name); }
378193	UNIMPL
379194	STD		{ int sys_getrlimit(int which, \
380			    struct rlimit *rlp); }
381195	STD		{ int sys_setrlimit(int which, \
382			    const struct rlimit *rlp); }
383196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
384			    u_int count, long *basep); }
385197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
386			    int flags, int fd, long pad, off_t pos); }
387198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
388199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
389			    int whence); }
390200	STD		{ int sys_truncate(const char *path, int pad, \
391			    off_t length); }
392201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
393202	STD		{ int sys___sysctl(int *name, u_int namelen, \
394			    void *old, size_t *oldlenp, void *new, \
395			    size_t newlen); }
396203	STD		{ int sys_mlock(const void *addr, size_t len); }
397204	STD		{ int sys_munlock(const void *addr, size_t len); }
398205	STD		{ int sys_undelete(const char *path); }
399206	STD		{ int sys_futimes(int fd, \
400			    const struct timeval *tptr); }
401207	STD		{ int sys_getpgid(pid_t pid); }
402208	STD		{ int sys_reboot(int opt, char *bootstr); }
403209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
404			    int timeout); }
405;
406; Syscalls 210-219 are reserved for dynamically loaded syscalls
407;
408#ifdef LKM
409210	NODEF		{ int sys_lkmnosys(void); }
410211	NODEF		{ int sys_lkmnosys(void); }
411212	NODEF		{ int sys_lkmnosys(void); }
412213	NODEF		{ int sys_lkmnosys(void); }
413214	NODEF		{ int sys_lkmnosys(void); }
414215	NODEF		{ int sys_lkmnosys(void); }
415216	NODEF		{ int sys_lkmnosys(void); }
416217	NODEF		{ int sys_lkmnosys(void); }
417218	NODEF		{ int sys_lkmnosys(void); }
418219	NODEF		{ int sys_lkmnosys(void); }
419#else	/* !LKM */
420210	UNIMPL
421211	UNIMPL
422212	UNIMPL
423213	UNIMPL
424214	UNIMPL
425215	UNIMPL
426216	UNIMPL
427217	UNIMPL
428218	UNIMPL
429219	UNIMPL
430#endif	/* !LKM */
431; System calls 220-300 are reserved for use by NetBSD
432#ifdef SYSVSEM
433220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
434			    union semun *arg); }
435221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
436222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
437			    size_t nsops); }
438223	STD		{ int sys_semconfig(int flag); }
439#else
440220	UNIMPL		semctl
441221	UNIMPL		semget
442222	UNIMPL		semop
443223	UNIMPL		semconfig
444#endif
445#ifdef SYSVMSG
446224	STD		{ int sys_msgctl(int msqid, int cmd, \
447			    struct msqid_ds *buf); }
448225	STD		{ int sys_msgget(key_t key, int msgflg); }
449226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
450			    size_t msgsz, int msgflg); }
451227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
452			    size_t msgsz, long msgtyp, int msgflg); }
453#else
454224	UNIMPL		msgctl
455225	UNIMPL		msgget
456226	UNIMPL		msgsnd
457227	UNIMPL		msgrcv
458#endif
459#ifdef SYSVSHM
460228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
461			    int shmflg); }
462229	STD		{ int sys_shmctl(int shmid, int cmd, \
463			    struct shmid_ds *buf); }
464230	STD		{ int sys_shmdt(const void *shmaddr); }
465231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
466#else
467228	UNIMPL		shmat
468229	UNIMPL		shmctl
469230	UNIMPL		shmdt
470231	UNIMPL		shmget
471#endif
472232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
473			    struct timespec *tp); }
474233	STD		{ int sys_clock_settime(clockid_t clock_id, \
475			    const struct timespec *tp); }
476234	STD		{ 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
483;
484; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
485;
486240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
487			    struct timespec *rmtp); }
488241	STD		{ int sys_fdatasync(int fd); }
489242	UNIMPL
490243	UNIMPL
491244	UNIMPL
492245	UNIMPL
493246	UNIMPL
494247	UNIMPL
495248	UNIMPL
496249	UNIMPL
497250	UNIMPL
498251	UNIMPL
499252	UNIMPL
500253	UNIMPL
501254	UNIMPL
502255	UNIMPL
503256	UNIMPL
504257	UNIMPL
505258	UNIMPL
506259	UNIMPL
507260	UNIMPL
508261	UNIMPL
509262	UNIMPL
510263	UNIMPL
511264	UNIMPL
512265	UNIMPL
513266	UNIMPL
514267	UNIMPL
515268	UNIMPL
516269	UNIMPL
517270	STD		{ int sys___posix_rename(const char *from, \
518			    const char *to); }
519271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
520272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
521273	STD		{ int sys_minherit(void *addr, size_t len, \
522			    int inherit); }
523274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
524275	STD		{ int sys_lchown(const char *path, uid_t uid, \
525			    gid_t gid); }
526276	STD		{ int sys_lutimes(const char *path, \
527			    const struct timeval *tptr); }
528277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
529278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
530279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
531280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
532281	STD		{ int sys___sigaltstack14( \
533			    const struct sigaltstack *nss, \
534			    struct sigaltstack *oss); }
535282	STD		{ int sys___vfork14(void); }
536283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
537			    gid_t gid); }
538284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
539			    gid_t gid); }
540285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
541			    gid_t gid); }
542286	STD		{ pid_t sys_getsid(pid_t pid); }
543287	UNIMPL
544#ifdef KTRACE
545288	STD		{ int sys_fktrace(const int fd, int ops, \
546			    int facs, int pid); }
547#else
548288	UNIMPL
549#endif
550289	STD		{ ssize_t sys_preadv(int fd, \
551			    const struct iovec *iovp, int iovcnt, \
552			    int pad, off_t offset); }
553290	STD		{ ssize_t sys_pwritev(int fd, \
554			    const struct iovec *iovp, int iovcnt, \
555			    int pad, off_t offset); }
556291	STD		{ int sys___sigaction14(int signum, \
557			    const struct sigaction *nsa, \
558			    struct sigaction *osa); }
559292	STD		{ int sys___sigpending14(sigset_t *set); }
560293	STD		{ int sys___sigprocmask14(int how, \
561			    const sigset_t *set, \
562			    sigset_t *oset); }
563294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
564295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
565