syscalls.master revision 1.86
1	$NetBSD: syscalls.master,v 1.86 1998/11/26 16:07:05 kleink 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#include "opt_sysv.h"
40
41#include "fs_lfs.h"
42#include "fs_nfs.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/signal.h>
47#include <sys/mount.h>
48#include <sys/syscallargs.h>
49
50; Reserved/unimplemented system calls in the range 0-150 inclusive
51; are reserved for use in future Berkeley releases.
52; Additional system calls implemented in vendor and other
53; redistributions should be placed in the reserved range at the end
54; of the current calls.
55
560	INDIR		{ int sys_syscall(int number, ...); }
571	STD		{ void sys_exit(int rval); }
582	STD		{ int sys_fork(void); }
593	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
604	STD		{ ssize_t sys_write(int fd, const void *buf, \
61			    size_t nbyte); }
625	STD		{ int sys_open(const char *path, \
63			    int flags, ... mode_t mode); }
646	STD		{ int sys_close(int fd); }
657	STD		{ int sys_wait4(int pid, int *status, int options, \
66			    struct rusage *rusage); }
678	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
689	STD		{ int sys_link(const char *path, const char *link); }
6910	STD		{ int sys_unlink(const char *path); }
7011	OBSOL		execv
7112	STD		{ int sys_chdir(const char *path); }
7213	STD		{ int sys_fchdir(int fd); }
7314	STD		{ int sys_mknod(const char *path, mode_t mode, \
74			    dev_t dev); }
7515	STD		{ int sys_chmod(const char *path, mode_t mode); }
7616	STD		{ int sys_chown(const char *path, uid_t uid, \
77			    gid_t gid); }
7817	STD		{ int sys_obreak(char *nsize); } break
7918	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
80			    int flags); }
8119	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
82			    olseek
8320	STD		{ pid_t sys_getpid(void); }
8421	STD		{ int sys_mount(const char *type, const char *path, \
85			    int flags, void *data); }
8622	STD		{ int sys_unmount(const char *path, int flags); }
8723	STD		{ int sys_setuid(uid_t uid); }
8824	STD		{ uid_t sys_getuid(void); }
8925	STD		{ uid_t sys_geteuid(void); }
9026	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
91			    int data); }
9227	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
93			    int flags); }
9428	STD		{ ssize_t sys_sendmsg(int s, \
95			    const struct msghdr *msg, int flags); }
9629	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
97			    int flags, struct sockaddr *from, \
98			    int *fromlenaddr); }
9930	STD		{ int sys_accept(int s, struct sockaddr *name, \
100			    int *anamelen); }
10131	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
102			    int *alen); }
10332	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
104			    int *alen); }
10533	STD		{ int sys_access(const char *path, int flags); }
10634	STD		{ int sys_chflags(const char *path, u_long flags); }
10735	STD		{ int sys_fchflags(int fd, u_long flags); }
10836	STD		{ void sys_sync(void); }
10937	STD		{ int sys_kill(int pid, int signum); }
11038	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
111			    stat43
11239	STD		{ pid_t sys_getppid(void); }
11340	COMPAT_43	{ int sys_lstat(const char *path, \
114			    struct stat43 *ub); } lstat43
11541	STD		{ int sys_dup(int fd); }
11642	STD		{ int sys_pipe(void); }
11743	STD		{ gid_t sys_getegid(void); }
11844	STD		{ int sys_profil(caddr_t samples, size_t size, \
119			    u_long offset, u_int scale); }
120#ifdef KTRACE
12145	STD		{ int sys_ktrace(const char *fname, int ops, \
122			    int facs, int pid); }
123#else
12445	UNIMPL		ktrace
125#endif
12646	COMPAT_13	{ int sys_sigaction(int signum, \
127			    const struct sigaction13 *nsa, \
128			    struct sigaction13 *osa); } sigaction13
12947	STD		{ gid_t sys_getgid(void); }
13048	COMPAT_13	{ int sys_sigprocmask(int how, \
131			    int mask); } sigprocmask13
13249	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
13350	STD		{ int sys_setlogin(const char *namebuf); }
13451	STD		{ int sys_acct(const char *path); }
13552	COMPAT_13	{ int sys_sigpending(void); } sigpending13
13653	COMPAT_13	{ int sys_sigaltstack( \
137			    const struct sigaltstack13 *nss, \
138			    struct sigaltstack13 *oss); } sigaltstack13
13954	STD		{ int sys_ioctl(int fd, \
140			    u_long com, ... void *data); }
14155	COMPAT_12	{ int sys_reboot(int opt); } oreboot
14256	STD		{ int sys_revoke(const char *path); }
14357	STD		{ int sys_symlink(const char *path, \
144			    const char *link); }
14558	STD		{ int sys_readlink(const char *path, char *buf, \
146			    size_t count); }
14759	STD		{ int sys_execve(const char *path, \
148			    char * const *argp, char * const *envp); }
14960	STD		{ mode_t sys_umask(mode_t newmask); }
15061	STD		{ int sys_chroot(const char *path); }
15162	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
15263	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
153			    int arg); } ogetkerninfo
15464	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
15565	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
156; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
15766	STD		{ int sys_vfork(void); }
15867	OBSOL		vread
15968	OBSOL		vwrite
16069	STD		{ int sys_sbrk(int incr); }
16170	STD		{ int sys_sstk(int incr); }
16271	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
163			    int flags, int fd, long pos); } ommap
16472	STD		{ int sys_ovadvise(int anom); } vadvise
16573	STD		{ int sys_munmap(void *addr, size_t len); }
16674	STD		{ int sys_mprotect(void *addr, size_t len, \
167			    int prot); }
16875	STD		{ int sys_madvise(void *addr, size_t len, \
169			    int behav); }
17076	OBSOL		vhangup
17177	OBSOL		vlimit
17278	STD		{ int sys_mincore(caddr_t addr, size_t len, \
173			    char *vec); }
17479	STD		{ int sys_getgroups(int gidsetsize, \
175			    gid_t *gidset); }
17680	STD		{ int sys_setgroups(int gidsetsize, \
177			    const gid_t *gidset); }
17881	STD		{ int sys_getpgrp(void); }
17982	STD		{ int sys_setpgid(int pid, int pgid); }
18083	STD		{ int sys_setitimer(int which, \
181			    const struct itimerval *itv, \
182			    struct itimerval *oitv); }
18384	COMPAT_43	{ int sys_wait(void); } owait
18485	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
18586	STD		{ int sys_getitimer(int which, \
186			    struct itimerval *itv); }
18787	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
188			    ogethostname
18988	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
190			    osethostname
19189	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
19290	STD		{ int sys_dup2(int from, int to); }
19391	UNIMPL		getdopt
19492	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
19593	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
196			    fd_set *ex, struct timeval *tv); }
19794	UNIMPL		setdopt
19895	STD		{ int sys_fsync(int fd); }
19996	STD		{ int sys_setpriority(int which, int who, int prio); }
20097	STD		{ int sys_socket(int domain, int type, int protocol); }
20198	STD		{ int sys_connect(int s, const struct sockaddr *name, \
202			    int namelen); }
20399	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
204			    int *anamelen); } oaccept
205100	STD		{ int sys_getpriority(int which, int who); }
206101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
207			    int flags); } osend
208102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
209			    int flags); } orecv
210103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
211			    sigreturn13
212104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
213			    int namelen); }
214105	STD		{ int sys_setsockopt(int s, int level, int name, \
215			    const void *val, int valsize); }
216106	STD		{ int sys_listen(int s, int backlog); }
217107	OBSOL		vtimes
218108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
219			    struct sigvec *osv); } osigvec
220109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
221110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
222111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
223112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
224			    struct sigstack *oss); } osigstack
225113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
226			    int flags); } orecvmsg
227114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
228			    osendmsg
229#ifdef TRACE
230115	STD		{ int sys_vtrace(int request, int value); }
231#else
232115	OBSOL		vtrace
233#endif
234116	STD		{ int sys_gettimeofday(struct timeval *tp, \
235			    struct timezone *tzp); }
236117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
237118	STD		{ int sys_getsockopt(int s, int level, int name, \
238			    void *val, int *avalsize); }
239119	OBSOL		resuba
240120	STD		{ ssize_t sys_readv(int fd, \
241			    const struct iovec *iovp, int iovcnt); }
242121	STD		{ ssize_t sys_writev(int fd, \
243			    const struct iovec *iovp, int iovcnt); }
244122	STD		{ int sys_settimeofday(const struct timeval *tv, \
245			    const struct timezone *tzp); }
246123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
247124	STD		{ int sys_fchmod(int fd, mode_t mode); }
248125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
249			    int flags, caddr_t from, int *fromlenaddr); } \
250			    orecvfrom
251126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
252127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
253128	STD		{ int sys_rename(const char *from, const char *to); }
254129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
255			    otruncate
256130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
257131	STD		{ int sys_flock(int fd, int how); }
258132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
259133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
260			    size_t len, int flags, const struct sockaddr *to, \
261			    int tolen); }
262134	STD		{ int sys_shutdown(int s, int how); }
263135	STD		{ int sys_socketpair(int domain, int type, \
264			    int protocol, int *rsv); }
265136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
266137	STD		{ int sys_rmdir(const char *path); }
267138	STD		{ int sys_utimes(const char *path, \
268			    const struct timeval *tptr); }
269139	OBSOL		4.2 sigreturn
270140	STD		{ int sys_adjtime(const struct timeval *delta, \
271			    struct timeval *olddelta); }
272141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
273			    int *alen); } ogetpeername
274142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
275143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
276144	COMPAT_43	{ int sys_getrlimit(int which, \
277			    struct orlimit *rlp); } ogetrlimit
278145	COMPAT_43	{ int sys_setrlimit(int which, \
279			    const struct orlimit *rlp); } osetrlimit
280146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
281147	STD		{ int sys_setsid(void); }
282148	STD		{ int sys_quotactl(const char *path, int cmd, \
283			    int uid, caddr_t arg); }
284149	COMPAT_43	{ int sys_quota(void); } oquota
285150	COMPAT_43	{ int 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
293152	UNIMPL
294153	UNIMPL
295154	UNIMPL
296#if defined(NFS) || defined(NFSSERVER)
297155	STD		{ int sys_nfssvc(int flag, void *argp); }
298#else
299155	UNIMPL
300#endif
301156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
302			    u_int count, long *basep); } ogetdirentries
303157	STD		{ int sys_statfs(const char *path, \
304			    struct statfs *buf); }
305158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
306159	UNIMPL
307160	UNIMPL
308#if defined(NFS) || defined(NFSSERVER)
309161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
310#else
311161	UNIMPL		getfh
312#endif
313162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
314			    ogetdomainname
315163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
316			    osetdomainname
317164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
318165	STD		{ int sys_sysarch(int op, void *parms); }
319166	UNIMPL
320167	UNIMPL
321168	UNIMPL
322; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
323#if defined(SYSVSEM) && !defined(alpha)
324169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
325			    int a5); } osemsys
326#else
327169	UNIMPL		1.0 semsys
328#endif
329; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
330#if defined(SYSVMSG) && !defined(alpha)
331170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
332			    int a5, int a6); } omsgsys
333#else
334170	UNIMPL		1.0 msgsys
335#endif
336; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
337#if defined(SYSVSHM) && !defined(alpha)
338171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
339			    oshmsys
340#else
341171	UNIMPL		1.0 shmsys
342#endif
343172	UNIMPL
344173	STD		{ ssize_t sys_pread(int fd, void *buf, \
345			    size_t nbyte, int pad, off_t offset); }
346174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
347			    size_t nbyte, int pad, off_t offset); }
348175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
349176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
350177	UNIMPL
351178	UNIMPL
352179	UNIMPL
353180	UNIMPL
354
355; Syscalls 180-199 are used by/reserved for BSD
356181	STD		{ int sys_setgid(gid_t gid); }
357182	STD		{ int sys_setegid(gid_t egid); }
358183	STD		{ int sys_seteuid(uid_t euid); }
359#ifdef LFS
360184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
361			    struct block_info *blkiov, int blkcnt); }
362185	STD		{ int lfs_markv(fsid_t *fsidp, \
363			    struct block_info *blkiov, int blkcnt); }
364186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
365187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
366#else
367184	UNIMPL
368185	UNIMPL
369186	UNIMPL
370187	UNIMPL
371#endif
372188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
373			    stat12
374189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
375190	COMPAT_12	{ int sys_lstat(const char *path, \
376			    struct stat12 *ub); } lstat12
377191	STD		{ long sys_pathconf(const char *path, int name); }
378192	STD		{ long sys_fpathconf(int fd, int name); }
379193	UNIMPL
380194	STD		{ int sys_getrlimit(int which, \
381			    struct rlimit *rlp); }
382195	STD		{ int sys_setrlimit(int which, \
383			    const struct rlimit *rlp); }
384196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
385			    u_int count, long *basep); }
386197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
387			    int flags, int fd, long pad, off_t pos); }
388198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
389199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
390			    int whence); }
391200	STD		{ int sys_truncate(const char *path, int pad, \
392			    off_t length); }
393201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
394202	STD		{ int sys___sysctl(int *name, u_int namelen, \
395			    void *old, size_t *oldlenp, void *new, \
396			    size_t newlen); }
397203	STD		{ int sys_mlock(const void *addr, size_t len); }
398204	STD		{ int sys_munlock(const void *addr, size_t len); }
399205	STD		{ int sys_undelete(const char *path); }
400206	STD		{ int sys_futimes(int fd, \
401			    const struct timeval *tptr); }
402207	STD		{ pid_t sys_getpgid(pid_t pid); }
403208	STD		{ int sys_reboot(int opt, char *bootstr); }
404209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
405			    int timeout); }
406;
407; Syscalls 210-219 are reserved for dynamically loaded syscalls
408;
409#ifdef LKM
410210	NODEF		{ int sys_lkmnosys(void); }
411211	NODEF		{ int sys_lkmnosys(void); }
412212	NODEF		{ int sys_lkmnosys(void); }
413213	NODEF		{ int sys_lkmnosys(void); }
414214	NODEF		{ int sys_lkmnosys(void); }
415215	NODEF		{ int sys_lkmnosys(void); }
416216	NODEF		{ int sys_lkmnosys(void); }
417217	NODEF		{ int sys_lkmnosys(void); }
418218	NODEF		{ int sys_lkmnosys(void); }
419219	NODEF		{ int sys_lkmnosys(void); }
420#else	/* !LKM */
421210	UNIMPL
422211	UNIMPL
423212	UNIMPL
424213	UNIMPL
425214	UNIMPL
426215	UNIMPL
427216	UNIMPL
428217	UNIMPL
429218	UNIMPL
430219	UNIMPL
431#endif	/* !LKM */
432; System calls 220-300 are reserved for use by NetBSD
433#ifdef SYSVSEM
434220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
435			    union semun *arg); }
436221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
437222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
438			    size_t nsops); }
439223	STD		{ int sys_semconfig(int flag); }
440#else
441220	UNIMPL		semctl
442221	UNIMPL		semget
443222	UNIMPL		semop
444223	UNIMPL		semconfig
445#endif
446#ifdef SYSVMSG
447224	STD		{ int sys_msgctl(int msqid, int cmd, \
448			    struct msqid_ds *buf); }
449225	STD		{ int sys_msgget(key_t key, int msgflg); }
450226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
451			    size_t msgsz, int msgflg); }
452227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
453			    size_t msgsz, long msgtyp, int msgflg); }
454#else
455224	UNIMPL		msgctl
456225	UNIMPL		msgget
457226	UNIMPL		msgsnd
458227	UNIMPL		msgrcv
459#endif
460#ifdef SYSVSHM
461228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
462			    int shmflg); }
463229	STD		{ int sys_shmctl(int shmid, int cmd, \
464			    struct shmid_ds *buf); }
465230	STD		{ int sys_shmdt(const void *shmaddr); }
466231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
467#else
468228	UNIMPL		shmat
469229	UNIMPL		shmctl
470230	UNIMPL		shmdt
471231	UNIMPL		shmget
472#endif
473232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
474			    struct timespec *tp); }
475233	STD		{ int sys_clock_settime(clockid_t clock_id, \
476			    const struct timespec *tp); }
477234	STD		{ int sys_clock_getres(clockid_t clock_id, \
478			    struct timespec *tp); }
479235	UNIMPL		timer_create
480236	UNIMPL		timer_delete
481237	UNIMPL		timer_settime
482238	UNIMPL		timer_gettime
483239	UNIMPL		timer_getoverrun
484;
485; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
486;
487240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
488			    struct timespec *rmtp); }
489241	STD		{ int sys_fdatasync(int fd); }
490242	UNIMPL
491243	UNIMPL
492244	UNIMPL
493245	UNIMPL
494246	UNIMPL
495247	UNIMPL
496248	UNIMPL
497249	UNIMPL
498250	UNIMPL
499251	UNIMPL
500252	UNIMPL
501253	UNIMPL
502254	UNIMPL
503255	UNIMPL
504256	UNIMPL
505257	UNIMPL
506258	UNIMPL
507259	UNIMPL
508260	UNIMPL
509261	UNIMPL
510262	UNIMPL
511263	UNIMPL
512264	UNIMPL
513265	UNIMPL
514266	UNIMPL
515267	UNIMPL
516268	UNIMPL
517269	UNIMPL
518270	STD		{ int sys___posix_rename(const char *from, \
519			    const char *to); }
520271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
521272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
522273	STD		{ int sys_minherit(void *addr, size_t len, \
523			    int inherit); }
524274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
525275	STD		{ int sys_lchown(const char *path, uid_t uid, \
526			    gid_t gid); }
527276	STD		{ int sys_lutimes(const char *path, \
528			    const struct timeval *tptr); }
529277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
530278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
531279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
532280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
533281	STD		{ int sys___sigaltstack14( \
534			    const struct sigaltstack *nss, \
535			    struct sigaltstack *oss); }
536282	STD		{ int sys___vfork14(void); }
537283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
538			    gid_t gid); }
539284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
540			    gid_t gid); }
541285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
542			    gid_t gid); }
543286	STD		{ pid_t sys_getsid(pid_t pid); }
544287	UNIMPL
545#ifdef KTRACE
546288	STD		{ int sys_fktrace(const int fd, int ops, \
547			    int facs, int pid); }
548#else
549288	UNIMPL
550#endif
551289	STD		{ ssize_t sys_preadv(int fd, \
552			    const struct iovec *iovp, int iovcnt, \
553			    int pad, off_t offset); }
554290	STD		{ ssize_t sys_pwritev(int fd, \
555			    const struct iovec *iovp, int iovcnt, \
556			    int pad, off_t offset); }
557291	STD		{ int sys___sigaction14(int signum, \
558			    const struct sigaction *nsa, \
559			    struct sigaction *osa); }
560292	STD		{ int sys___sigpending14(sigset_t *set); }
561293	STD		{ int sys___sigprocmask14(int how, \
562			    const sigset_t *set, \
563			    sigset_t *oset); }
564294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
565295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
566