syscalls.master revision 1.80
1	$NetBSD: syscalls.master,v 1.80 1998/07/02 01:23:33 thorpej 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
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; Reserved/unimplemented system calls in the range 0-150 inclusive
49; are reserved for use in future Berkeley releases.
50; Additional system calls implemented in vendor and other
51; redistributions should be placed in the reserved range at the end
52; of the current calls.
53
540	INDIR		{ int sys_syscall(int number, ...); }
551	STD		{ void sys_exit(int rval); }
562	STD		{ int sys_fork(void); }
573	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
584	STD		{ ssize_t sys_write(int fd, const void *buf, \
59			    size_t nbyte); }
605	STD		{ int sys_open(const char *path, \
61			    int flags, ... mode_t mode); }
626	STD		{ int sys_close(int fd); }
637	STD		{ int sys_wait4(int pid, int *status, int options, \
64			    struct rusage *rusage); }
658	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
669	STD		{ int sys_link(const char *path, const char *link); }
6710	STD		{ int sys_unlink(const char *path); }
6811	OBSOL		execv
6912	STD		{ int sys_chdir(const char *path); }
7013	STD		{ int sys_fchdir(int fd); }
7114	STD		{ int sys_mknod(const char *path, mode_t mode, \
72			    dev_t dev); }
7315	STD		{ int sys_chmod(const char *path, mode_t mode); }
7416	STD		{ int sys_chown(const char *path, uid_t uid, \
75			    gid_t gid); }
7617	STD		{ int sys_obreak(char *nsize); } break
7718	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
78			    int flags); }
7919	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
80			    olseek
8120	STD		{ pid_t sys_getpid(void); }
8221	STD		{ int sys_mount(const char *type, const char *path, \
83			    int flags, void *data); }
8422	STD		{ int sys_unmount(const char *path, int flags); }
8523	STD		{ int sys_setuid(uid_t uid); }
8624	STD		{ uid_t sys_getuid(void); }
8725	STD		{ uid_t sys_geteuid(void); }
8826	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
89			    int data); }
9027	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
91			    int flags); }
9228	STD		{ ssize_t sys_sendmsg(int s, \
93			    const struct msghdr *msg, int flags); }
9429	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
95			    int flags, struct sockaddr *from, \
96			    int *fromlenaddr); }
9730	STD		{ int sys_accept(int s, struct sockaddr *name, \
98			    int *anamelen); }
9931	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
100			    int *alen); }
10132	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
102			    int *alen); }
10333	STD		{ int sys_access(const char *path, int flags); }
10434	STD		{ int sys_chflags(const char *path, u_long flags); }
10535	STD		{ int sys_fchflags(int fd, u_long flags); }
10636	STD		{ void sys_sync(void); }
10737	STD		{ int sys_kill(int pid, int signum); }
10838	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
109			    stat43
11039	STD		{ pid_t sys_getppid(void); }
11140	COMPAT_43	{ int sys_lstat(const char *path, \
112			    struct stat43 *ub); } lstat43
11341	STD		{ int sys_dup(int fd); }
11442	STD		{ int sys_pipe(void); }
11543	STD		{ gid_t sys_getegid(void); }
11644	STD		{ int sys_profil(caddr_t samples, size_t size, \
117			    u_long offset, u_int scale); }
118#ifdef KTRACE
11945	STD		{ int sys_ktrace(const char *fname, int ops, \
120			    int facs, int pid); }
121#else
12245	UNIMPL		ktrace
123#endif
12446	STD		{ int sys_sigaction(int signum, \
125			    const struct sigaction *nsa, \
126			    struct sigaction *osa); }
12747	STD		{ gid_t sys_getgid(void); }
12848	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
12949	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
13050	STD		{ int sys_setlogin(const char *namebuf); }
13151	STD		{ int sys_acct(const char *path); }
13252	STD		{ int sys_sigpending(void); }
13353	COMPAT_13	{ int sys_sigaltstack(const struct sigaltstack13 \
134			    *nss, struct sigaltstack13 *oss); } sigaltstack13
13554	STD		{ int sys_ioctl(int fd, \
136			    u_long com, ... void *data); }
13755	COMPAT_12	{ int sys_reboot(int opt); } oreboot
13856	STD		{ int sys_revoke(const char *path); }
13957	STD		{ int sys_symlink(const char *path, \
140			    const char *link); }
14158	STD		{ int sys_readlink(const char *path, char *buf, \
142			    size_t count); }
14359	STD		{ int sys_execve(const char *path, \
144			    char * const *argp, char * const *envp); }
14560	STD		{ mode_t sys_umask(mode_t newmask); }
14661	STD		{ int sys_chroot(const char *path); }
14762	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
14863	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
149			    int arg); } ogetkerninfo
15064	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
15165	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
152; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
15366	STD		{ int sys_vfork(void); }
15467	OBSOL		vread
15568	OBSOL		vwrite
15669	STD		{ int sys_sbrk(int incr); }
15770	STD		{ int sys_sstk(int incr); }
15871	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
159			    int flags, int fd, long pos); } ommap
16072	STD		{ int sys_ovadvise(int anom); } vadvise
16173	STD		{ int sys_munmap(void *addr, size_t len); }
16274	STD		{ int sys_mprotect(void *addr, size_t len, \
163			    int prot); }
16475	STD		{ int sys_madvise(void *addr, size_t len, \
165			    int behav); }
16676	OBSOL		vhangup
16777	OBSOL		vlimit
16878	STD		{ int sys_mincore(caddr_t addr, size_t len, \
169			    char *vec); }
17079	STD		{ int sys_getgroups(int gidsetsize, \
171			    gid_t *gidset); }
17280	STD		{ int sys_setgroups(int gidsetsize, \
173			    const gid_t *gidset); }
17481	STD		{ int sys_getpgrp(void); }
17582	STD		{ int sys_setpgid(int pid, int pgid); }
17683	STD		{ int sys_setitimer(int which, \
177			    const struct itimerval *itv, \
178			    struct itimerval *oitv); }
17984	COMPAT_43	{ int sys_wait(void); } owait
18085	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
18186	STD		{ int sys_getitimer(int which, \
182			    struct itimerval *itv); }
18387	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
184			    ogethostname
18588	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
186			    osethostname
18789	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
18890	STD		{ int sys_dup2(int from, int to); }
18991	UNIMPL		getdopt
19092	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
19193	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
192			    fd_set *ex, struct timeval *tv); }
19394	UNIMPL		setdopt
19495	STD		{ int sys_fsync(int fd); }
19596	STD		{ int sys_setpriority(int which, int who, int prio); }
19697	STD		{ int sys_socket(int domain, int type, int protocol); }
19798	STD		{ int sys_connect(int s, const struct sockaddr *name, \
198			    int namelen); }
19999	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
200			    int *anamelen); } oaccept
201100	STD		{ int sys_getpriority(int which, int who); }
202101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
203			    int flags); } osend
204102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
205			    int flags); } orecv
206103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
207104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
208			    int namelen); }
209105	STD		{ int sys_setsockopt(int s, int level, int name, \
210			    const void *val, int valsize); }
211106	STD		{ int sys_listen(int s, int backlog); }
212107	OBSOL		vtimes
213108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
214			    struct sigvec *osv); } osigvec
215109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
216110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
217111	STD		{ int sys_sigsuspend(int mask); }
218112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
219			    struct sigstack *oss); } osigstack
220113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
221			    int flags); } orecvmsg
222114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
223			    osendmsg
224#ifdef TRACE
225115	STD		{ int sys_vtrace(int request, int value); }
226#else
227115	OBSOL		vtrace
228#endif
229116	STD		{ int sys_gettimeofday(struct timeval *tp, \
230			    struct timezone *tzp); }
231117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
232118	STD		{ int sys_getsockopt(int s, int level, int name, \
233			    void *val, int *avalsize); }
234119	OBSOL		resuba
235120	STD		{ ssize_t sys_readv(int fd, \
236			    const struct iovec *iovp, int iovcnt); }
237121	STD		{ ssize_t sys_writev(int fd, \
238			    const struct iovec *iovp, int iovcnt); }
239122	STD		{ int sys_settimeofday(const struct timeval *tv, \
240			    const struct timezone *tzp); }
241123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
242124	STD		{ int sys_fchmod(int fd, mode_t mode); }
243125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
244			    int flags, caddr_t from, int *fromlenaddr); } \
245			    orecvfrom
246126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
247127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
248128	STD		{ int sys_rename(const char *from, const char *to); }
249129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
250			    otruncate
251130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
252131	STD		{ int sys_flock(int fd, int how); }
253132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
254133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
255			    size_t len, int flags, const struct sockaddr *to, \
256			    int tolen); }
257134	STD		{ int sys_shutdown(int s, int how); }
258135	STD		{ int sys_socketpair(int domain, int type, \
259			    int protocol, int *rsv); }
260136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
261137	STD		{ int sys_rmdir(const char *path); }
262138	STD		{ int sys_utimes(const char *path, \
263			    const struct timeval *tptr); }
264139	OBSOL		4.2 sigreturn
265140	STD		{ int sys_adjtime(const struct timeval *delta, \
266			    struct timeval *olddelta); }
267141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
268			    int *alen); } ogetpeername
269142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
270143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
271144	COMPAT_43	{ int sys_getrlimit(int which, \
272			    struct orlimit *rlp); } ogetrlimit
273145	COMPAT_43	{ int sys_setrlimit(int which, \
274			    const struct orlimit *rlp); } osetrlimit
275146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
276147	STD		{ int sys_setsid(void); }
277148	STD		{ int sys_quotactl(const char *path, int cmd, \
278			    int uid, caddr_t arg); }
279149	COMPAT_43	{ int sys_quota(void); } oquota
280150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
281			    int *alen); } ogetsockname
282
283; Syscalls 151-180 inclusive are reserved for vendor-specific
284; system calls.  (This includes various calls added for compatibity
285; with other Unix variants.)
286; Some of these calls are now supported by BSD...
287151	UNIMPL
288152	UNIMPL
289153	UNIMPL
290154	UNIMPL
291#if defined(NFS) || defined(NFSSERVER)
292155	STD		{ int sys_nfssvc(int flag, void *argp); }
293#else
294155	UNIMPL
295#endif
296156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
297			    u_int count, long *basep); } ogetdirentries
298157	STD		{ int sys_statfs(const char *path, \
299			    struct statfs *buf); }
300158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
301159	UNIMPL
302160	UNIMPL
303#if defined(NFS) || defined(NFSSERVER)
304161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
305#else
306161	UNIMPL		getfh
307#endif
308162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
309			    ogetdomainname
310163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
311			    osetdomainname
312164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
313165	STD		{ int sys_sysarch(int op, void *parms); }
314166	UNIMPL
315167	UNIMPL
316168	UNIMPL
317; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
318#if defined(SYSVSEM) && !defined(alpha)
319169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
320			    int a5); } osemsys
321#else
322169	UNIMPL		1.0 semsys
323#endif
324; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
325#if defined(SYSVMSG) && !defined(alpha)
326170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
327			    int a5, int a6); } omsgsys
328#else
329170	UNIMPL		1.0 msgsys
330#endif
331; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
332#if defined(SYSVSHM) && !defined(alpha)
333171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
334			    oshmsys
335#else
336171	UNIMPL		1.0 shmsys
337#endif
338172	UNIMPL
339173	STD		{ ssize_t sys_pread(int fd, void *buf, \
340			    size_t nbyte, int pad, off_t offset); }
341174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
342			    size_t nbyte, int pad, off_t offset); }
343175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
344176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
345177	UNIMPL
346178	UNIMPL
347179	UNIMPL
348180	UNIMPL
349
350; Syscalls 180-199 are used by/reserved for BSD
351181	STD		{ int sys_setgid(gid_t gid); }
352182	STD		{ int sys_setegid(gid_t egid); }
353183	STD		{ int sys_seteuid(uid_t euid); }
354#ifdef LFS
355184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
356			    struct block_info *blkiov, int blkcnt); }
357185	STD		{ int lfs_markv(fsid_t *fsidp, \
358			    struct block_info *blkiov, int blkcnt); }
359186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
360187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
361#else
362184	UNIMPL
363185	UNIMPL
364186	UNIMPL
365187	UNIMPL
366#endif
367188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
368			    stat12
369189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
370190	COMPAT_12	{ int sys_lstat(const char *path, \
371			    struct stat12 *ub); } lstat12
372191	STD		{ long sys_pathconf(const char *path, int name); }
373192	STD		{ long sys_fpathconf(int fd, int name); }
374193	UNIMPL
375194	STD		{ int sys_getrlimit(int which, \
376			    struct rlimit *rlp); }
377195	STD		{ int sys_setrlimit(int which, \
378			    const struct rlimit *rlp); }
379196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
380			    u_int count, long *basep); }
381197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
382			    int flags, int fd, long pad, off_t pos); }
383198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
384199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
385			    int whence); }
386200	STD		{ int sys_truncate(const char *path, int pad, \
387			    off_t length); }
388201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
389202	STD		{ int sys___sysctl(int *name, u_int namelen, \
390			    void *old, size_t *oldlenp, void *new, \
391			    size_t newlen); }
392203	STD		{ int sys_mlock(const void *addr, size_t len); }
393204	STD		{ int sys_munlock(const void *addr, size_t len); }
394205	STD		{ int sys_undelete(const char *path); }
395206	STD		{ int sys_futimes(int fd, \
396			    const struct timeval *tptr); }
397207	STD		{ int sys_getpgid(pid_t pid); }
398208	STD		{ int sys_reboot(int opt, char *bootstr); }
399209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
400			    int timeout); }
401;
402; Syscalls 210-219 are reserved for dynamically loaded syscalls
403;
404#ifdef LKM
405210	NODEF		{ int sys_lkmnosys(void); }
406211	NODEF		{ int sys_lkmnosys(void); }
407212	NODEF		{ int sys_lkmnosys(void); }
408213	NODEF		{ int sys_lkmnosys(void); }
409214	NODEF		{ int sys_lkmnosys(void); }
410215	NODEF		{ int sys_lkmnosys(void); }
411216	NODEF		{ int sys_lkmnosys(void); }
412217	NODEF		{ int sys_lkmnosys(void); }
413218	NODEF		{ int sys_lkmnosys(void); }
414219	NODEF		{ int sys_lkmnosys(void); }
415#else	/* !LKM */
416210	UNIMPL
417211	UNIMPL
418212	UNIMPL
419213	UNIMPL
420214	UNIMPL
421215	UNIMPL
422216	UNIMPL
423217	UNIMPL
424218	UNIMPL
425219	UNIMPL
426#endif	/* !LKM */
427; System calls 220-300 are reserved for use by NetBSD
428#ifdef SYSVSEM
429220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
430			    union semun *arg); }
431221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
432222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
433			    size_t nsops); }
434223	STD		{ int sys_semconfig(int flag); }
435#else
436220	UNIMPL		semctl
437221	UNIMPL		semget
438222	UNIMPL		semop
439223	UNIMPL		semconfig
440#endif
441#ifdef SYSVMSG
442224	STD		{ int sys_msgctl(int msqid, int cmd, \
443			    struct msqid_ds *buf); }
444225	STD		{ int sys_msgget(key_t key, int msgflg); }
445226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
446			    size_t msgsz, int msgflg); }
447227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
448			    size_t msgsz, long msgtyp, int msgflg); }
449#else
450224	UNIMPL		msgctl
451225	UNIMPL		msgget
452226	UNIMPL		msgsnd
453227	UNIMPL		msgrcv
454#endif
455#ifdef SYSVSHM
456228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
457			    int shmflg); }
458229	STD		{ int sys_shmctl(int shmid, int cmd, \
459			    struct shmid_ds *buf); }
460230	STD		{ int sys_shmdt(const void *shmaddr); }
461231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
462#else
463228	UNIMPL		shmat
464229	UNIMPL		shmctl
465230	UNIMPL		shmdt
466231	UNIMPL		shmget
467#endif
468232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
469			    struct timespec *tp); }
470233	STD		{ int sys_clock_settime(clockid_t clock_id, \
471			    const struct timespec *tp); }
472234	STD		{ int sys_clock_getres(clockid_t clock_id, \
473			    struct timespec *tp); }
474235	UNIMPL		timer_create
475236	UNIMPL		timer_delete
476237	UNIMPL		timer_settime
477238	UNIMPL		timer_gettime
478239	UNIMPL		timer_getoverrun
479;
480; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
481;
482240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
483			    struct timespec *rmtp); }
484241	STD		{ int sys_fdatasync(int fd); }
485242	UNIMPL
486243	UNIMPL
487244	UNIMPL
488245	UNIMPL
489246	UNIMPL
490247	UNIMPL
491248	UNIMPL
492249	UNIMPL
493250	UNIMPL
494251	UNIMPL
495252	UNIMPL
496253	UNIMPL
497254	UNIMPL
498255	UNIMPL
499256	UNIMPL
500257	UNIMPL
501258	UNIMPL
502259	UNIMPL
503260	UNIMPL
504261	UNIMPL
505262	UNIMPL
506263	UNIMPL
507264	UNIMPL
508265	UNIMPL
509266	UNIMPL
510267	UNIMPL
511268	UNIMPL
512269	UNIMPL
513270	STD		{ int sys___posix_rename(const char *from, \
514			    const char *to); }
515271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
516272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
517273	STD		{ int sys_minherit(void *addr, size_t len, \
518			    int inherit); }
519274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
520275	STD		{ int sys_lchown(const char *path, uid_t uid, \
521			    gid_t gid); }
522276	STD		{ int sys_lutimes(const char *path, \
523			    const struct timeval *tptr); }
524277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
525278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
526279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
527280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
528281	STD		{ int sys___sigaltstack14(const struct sigaltstack \
529			    *nss, struct sigaltstack *oss); }
530282	STD		{ int sys___vfork14(void); }
531283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
532			    gid_t gid); }
533284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
534			    gid_t gid); }
535285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
536			    gid_t gid); }
537286	STD		{ pid_t sys_getsid(pid_t pid); }
538287	UNIMPL
539#ifdef KTRACE
540288	STD		{ int sys_fktrace(const int fd, int ops, \
541			    int facs, int pid); }
542#else
543288	UNIMPL
544#endif
545289	STD		{ ssize_t sys_preadv(int fd, \
546			    const struct iovec *iovp, int iovcnt, \
547			    int pad, off_t offset); }
548290	STD		{ ssize_t sys_pwritev(int fd, \
549			    const struct iovec *iovp, int iovcnt, \
550			    int pad, off_t offset); }
551