syscalls.master revision 1.100
11.100Smrg	$NetBSD: syscalls.master,v 1.100 2000/04/17 14:31:22 mrg Exp $
21.28Smycroft
31.22Scgd;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
41.1Sglass
51.23Scgd; NetBSD system call name/number "master" file.
61.23Scgd; (See syscalls.conf to see what it is processed into.)
71.23Scgd;
81.23Scgd; Fields: number type [type-dependent ...]
91.1Sglass;	number	system call number, must be in order
101.23Scgd;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
111.24Smycroft;		the compatibility options defined in syscalls.conf.
121.23Scgd;
131.1Sglass; types:
141.1Sglass;	STD	always included
151.23Scgd;	OBSOL	obsolete, not included in system
161.24Smycroft;	UNIMPL	unimplemented, not included in system
171.92Schristos;	EXCL	implemented, but not included in system
181.23Scgd;	NODEF	included, but don't define the syscall number
191.23Scgd;	NOARGS	included, but don't define the syscall args structure
201.43Scgd;	INDIR	included, but don't define the syscall args structure,
211.43Scgd;		and allow it to be "really" varargs.
221.23Scgd;
231.23Scgd; The compat options are defined in the syscalls.conf file, and the
241.23Scgd; compat option name is prefixed to the syscall name.  Other than
251.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for
261.23Scgd; 'libcompat' options).
271.23Scgd;
281.23Scgd; The type-dependent arguments are as follows:
291.23Scgd; For STD, NODEF, NOARGS, and compat syscalls:
301.23Scgd;	{ pseudo-proto } [alias]
311.23Scgd; For other syscalls:
321.23Scgd;	[comment]
331.23Scgd;
341.23Scgd; #ifdef's, etc. may be included, and are copied to the output files.
351.70Sthorpej; #include's are copied to the syscall names and switch definition files only.
361.77Sthorpej
371.77Sthorpej#include "opt_ktrace.h"
381.78Sthorpej#include "opt_nfsserver.h"
391.81Sjonathan#include "opt_compat_netbsd.h"
401.85Stron#include "opt_sysv.h"
411.87Schristos#include "opt_compat_43.h"
421.70Sthorpej
431.70Sthorpej#include "fs_lfs.h"
441.70Sthorpej#include "fs_nfs.h"
451.1Sglass
461.23Scgd#include <sys/param.h>
471.23Scgd#include <sys/systm.h>
481.23Scgd#include <sys/signal.h>
491.23Scgd#include <sys/mount.h>
501.23Scgd#include <sys/syscallargs.h>
511.1Sglass
521.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
531.1Sglass; are reserved for use in future Berkeley releases.
541.1Sglass; Additional system calls implemented in vendor and other
551.1Sglass; redistributions should be placed in the reserved range at the end
561.1Sglass; of the current calls.
571.1Sglass
581.43Scgd0	INDIR		{ int sys_syscall(int number, ...); }
591.44Scgd1	STD		{ void sys_exit(int rval); }
601.28Smycroft2	STD		{ int sys_fork(void); }
611.46Scgd3	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
621.46Scgd4	STD		{ ssize_t sys_write(int fd, const void *buf, \
631.46Scgd			    size_t nbyte); }
641.46Scgd5	STD		{ int sys_open(const char *path, \
651.60Schristos			    int flags, ... mode_t mode); }
661.28Smycroft6	STD		{ int sys_close(int fd); }
671.28Smycroft7	STD		{ int sys_wait4(int pid, int *status, int options, \
681.23Scgd			    struct rusage *rusage); }
691.60Schristos8	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
701.46Scgd9	STD		{ int sys_link(const char *path, const char *link); }
711.46Scgd10	STD		{ int sys_unlink(const char *path); }
721.23Scgd11	OBSOL		execv
731.46Scgd12	STD		{ int sys_chdir(const char *path); }
741.28Smycroft13	STD		{ int sys_fchdir(int fd); }
751.60Schristos14	STD		{ int sys_mknod(const char *path, mode_t mode, \
761.60Schristos			    dev_t dev); }
771.60Schristos15	STD		{ int sys_chmod(const char *path, mode_t mode); }
781.46Scgd16	STD		{ int sys_chown(const char *path, uid_t uid, \
791.46Scgd			    gid_t gid); }
801.28Smycroft17	STD		{ int sys_obreak(char *nsize); } break
811.28Smycroft18	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
821.23Scgd			    int flags); }
831.29Smycroft19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
841.29Smycroft			    olseek
851.28Smycroft20	STD		{ pid_t sys_getpid(void); }
861.46Scgd21	STD		{ int sys_mount(const char *type, const char *path, \
871.46Scgd			    int flags, void *data); }
881.46Scgd22	STD		{ int sys_unmount(const char *path, int flags); }
891.28Smycroft23	STD		{ int sys_setuid(uid_t uid); }
901.28Smycroft24	STD		{ uid_t sys_getuid(void); }
911.28Smycroft25	STD		{ uid_t sys_geteuid(void); }
921.28Smycroft26	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
931.23Scgd			    int data); }
941.44Scgd27	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
951.28Smycroft			    int flags); }
961.46Scgd28	STD		{ ssize_t sys_sendmsg(int s, \
971.46Scgd			    const struct msghdr *msg, int flags); }
981.46Scgd29	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
991.46Scgd			    int flags, struct sockaddr *from, \
1001.88Skleink			    unsigned int *fromlenaddr); }
1011.46Scgd30	STD		{ int sys_accept(int s, struct sockaddr *name, \
1021.88Skleink			    unsigned int *anamelen); }
1031.46Scgd31	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
1041.88Skleink			    unsigned int *alen); }
1051.46Scgd32	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
1061.88Skleink			    unsigned int *alen); }
1071.46Scgd33	STD		{ int sys_access(const char *path, int flags); }
1081.46Scgd34	STD		{ int sys_chflags(const char *path, u_long flags); }
1091.46Scgd35	STD		{ int sys_fchflags(int fd, u_long flags); }
1101.44Scgd36	STD		{ void sys_sync(void); }
1111.28Smycroft37	STD		{ int sys_kill(int pid, int signum); }
1121.60Schristos38	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
1131.60Schristos			    stat43
1141.28Smycroft39	STD		{ pid_t sys_getppid(void); }
1151.60Schristos40	COMPAT_43	{ int sys_lstat(const char *path, \
1161.60Schristos			    struct stat43 *ub); } lstat43
1171.59Smycroft41	STD		{ int sys_dup(int fd); }
1181.28Smycroft42	STD		{ int sys_pipe(void); }
1191.28Smycroft43	STD		{ gid_t sys_getegid(void); }
1201.30Scgd44	STD		{ int sys_profil(caddr_t samples, size_t size, \
1211.30Scgd			    u_long offset, u_int scale); }
1221.92Schristos#if defined(KTRACE) || !defined(_KERNEL)
1231.46Scgd45	STD		{ int sys_ktrace(const char *fname, int ops, \
1241.46Scgd			    int facs, int pid); }
1251.1Sglass#else
1261.92Schristos45	EXCL		ktrace
1271.1Sglass#endif
1281.82Smycroft46	COMPAT_13	{ int sys_sigaction(int signum, \
1291.82Smycroft			    const struct sigaction13 *nsa, \
1301.82Smycroft			    struct sigaction13 *osa); } sigaction13
1311.28Smycroft47	STD		{ gid_t sys_getgid(void); }
1321.82Smycroft48	COMPAT_13	{ int sys_sigprocmask(int how, \
1331.82Smycroft			    int mask); } sigprocmask13
1341.90Skleink49	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
1351.46Scgd50	STD		{ int sys_setlogin(const char *namebuf); }
1361.46Scgd51	STD		{ int sys_acct(const char *path); }
1371.82Smycroft52	COMPAT_13	{ int sys_sigpending(void); } sigpending13
1381.82Smycroft53	COMPAT_13	{ int sys_sigaltstack( \
1391.82Smycroft			    const struct sigaltstack13 *nss, \
1401.82Smycroft			    struct sigaltstack13 *oss); } sigaltstack13
1411.46Scgd54	STD		{ int sys_ioctl(int fd, \
1421.61Schristos			    u_long com, ... void *data); }
1431.34Smrg55	COMPAT_12	{ int sys_reboot(int opt); } oreboot
1441.46Scgd56	STD		{ int sys_revoke(const char *path); }
1451.46Scgd57	STD		{ int sys_symlink(const char *path, \
1461.46Scgd			    const char *link); }
1471.46Scgd58	STD		{ int sys_readlink(const char *path, char *buf, \
1481.72Skleink			    size_t count); }
1491.46Scgd59	STD		{ int sys_execve(const char *path, \
1501.46Scgd			    char * const *argp, char * const *envp); }
1511.62Smycroft60	STD		{ mode_t sys_umask(mode_t newmask); }
1521.46Scgd61	STD		{ int sys_chroot(const char *path); }
1531.60Schristos62	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
1541.28Smycroft63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
1551.29Smycroft			    int arg); } ogetkerninfo
1561.29Smycroft64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
1571.60Schristos65	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
1581.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1591.28Smycroft66	STD		{ int sys_vfork(void); }
1601.23Scgd67	OBSOL		vread
1611.23Scgd68	OBSOL		vwrite
1621.95Skleink69	STD		{ int sys_sbrk(intptr_t incr); }
1631.28Smycroft70	STD		{ int sys_sstk(int incr); }
1641.28Smycroft71	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
1651.29Smycroft			    int flags, int fd, long pos); } ommap
1661.28Smycroft72	STD		{ int sys_ovadvise(int anom); } vadvise
1671.61Schristos73	STD		{ int sys_munmap(void *addr, size_t len); }
1681.61Schristos74	STD		{ int sys_mprotect(void *addr, size_t len, \
1691.28Smycroft			    int prot); }
1701.61Schristos75	STD		{ int sys_madvise(void *addr, size_t len, \
1711.28Smycroft			    int behav); }
1721.23Scgd76	OBSOL		vhangup
1731.23Scgd77	OBSOL		vlimit
1741.91Sthorpej78	STD		{ int sys_mincore(void *addr, size_t len, \
1751.28Smycroft			    char *vec); }
1761.64Sthorpej79	STD		{ int sys_getgroups(int gidsetsize, \
1771.59Smycroft			    gid_t *gidset); }
1781.64Sthorpej80	STD		{ int sys_setgroups(int gidsetsize, \
1791.46Scgd			    const gid_t *gidset); }
1801.28Smycroft81	STD		{ int sys_getpgrp(void); }
1811.28Smycroft82	STD		{ int sys_setpgid(int pid, int pgid); }
1821.58Smycroft83	STD		{ int sys_setitimer(int which, \
1831.46Scgd			    const struct itimerval *itv, \
1841.46Scgd			    struct itimerval *oitv); }
1851.29Smycroft84	COMPAT_43	{ int sys_wait(void); } owait
1861.52Smrg85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
1871.58Smycroft86	STD		{ int sys_getitimer(int which, \
1881.28Smycroft			    struct itimerval *itv); }
1891.29Smycroft87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
1901.29Smycroft			    ogethostname
1911.29Smycroft88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
1921.29Smycroft			    osethostname
1931.29Smycroft89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
1941.59Smycroft90	STD		{ int sys_dup2(int from, int to); }
1951.23Scgd91	UNIMPL		getdopt
1961.44Scgd92	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
1971.64Sthorpej93	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
1981.23Scgd			    fd_set *ex, struct timeval *tv); }
1991.23Scgd94	UNIMPL		setdopt
2001.28Smycroft95	STD		{ int sys_fsync(int fd); }
2011.28Smycroft96	STD		{ int sys_setpriority(int which, int who, int prio); }
2021.28Smycroft97	STD		{ int sys_socket(int domain, int type, int protocol); }
2031.46Scgd98	STD		{ int sys_connect(int s, const struct sockaddr *name, \
2041.88Skleink			    unsigned int namelen); }
2051.46Scgd99	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
2061.46Scgd			    int *anamelen); } oaccept
2071.28Smycroft100	STD		{ int sys_getpriority(int which, int who); }
2081.28Smycroft101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
2091.29Smycroft			    int flags); } osend
2101.28Smycroft102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
2111.29Smycroft			    int flags); } orecv
2121.84Smycroft103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
2131.83Smycroft			    sigreturn13
2141.46Scgd104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
2151.88Skleink			    unsigned int namelen); }
2161.28Smycroft105	STD		{ int sys_setsockopt(int s, int level, int name, \
2171.88Skleink			    const void *val, unsigned int valsize); }
2181.28Smycroft106	STD		{ int sys_listen(int s, int backlog); }
2191.23Scgd107	OBSOL		vtimes
2201.28Smycroft108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
2211.29Smycroft			    struct sigvec *osv); } osigvec
2221.29Smycroft109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
2231.29Smycroft110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
2241.82Smycroft111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
2251.28Smycroft112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
2261.29Smycroft			    struct sigstack *oss); } osigstack
2271.28Smycroft113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
2281.29Smycroft			    int flags); } orecvmsg
2291.29Smycroft114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
2301.29Smycroft			    osendmsg
2311.23Scgd115	OBSOL		vtrace
2321.28Smycroft116	STD		{ int sys_gettimeofday(struct timeval *tp, \
2331.23Scgd			    struct timezone *tzp); }
2341.28Smycroft117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
2351.28Smycroft118	STD		{ int sys_getsockopt(int s, int level, int name, \
2361.88Skleink			    void *val, unsigned int *avalsize); }
2371.26Scgd119	OBSOL		resuba
2381.58Smycroft120	STD		{ ssize_t sys_readv(int fd, \
2391.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2401.46Scgd121	STD		{ ssize_t sys_writev(int fd, \
2411.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2421.46Scgd122	STD		{ int sys_settimeofday(const struct timeval *tv, \
2431.46Scgd			    const struct timezone *tzp); }
2441.46Scgd123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
2451.60Schristos124	STD		{ int sys_fchmod(int fd, mode_t mode); }
2461.28Smycroft125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
2471.29Smycroft			    int flags, caddr_t from, int *fromlenaddr); } \
2481.29Smycroft			    orecvfrom
2491.46Scgd126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
2501.46Scgd127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
2511.46Scgd128	STD		{ int sys_rename(const char *from, const char *to); }
2521.60Schristos129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
2531.29Smycroft			    otruncate
2541.29Smycroft130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
2551.28Smycroft131	STD		{ int sys_flock(int fd, int how); }
2561.60Schristos132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
2571.46Scgd133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
2581.46Scgd			    size_t len, int flags, const struct sockaddr *to, \
2591.88Skleink			    unsigned int tolen); }
2601.28Smycroft134	STD		{ int sys_shutdown(int s, int how); }
2611.28Smycroft135	STD		{ int sys_socketpair(int domain, int type, \
2621.28Smycroft			    int protocol, int *rsv); }
2631.60Schristos136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
2641.46Scgd137	STD		{ int sys_rmdir(const char *path); }
2651.46Scgd138	STD		{ int sys_utimes(const char *path, \
2661.46Scgd			    const struct timeval *tptr); }
2671.23Scgd139	OBSOL		4.2 sigreturn
2681.46Scgd140	STD		{ int sys_adjtime(const struct timeval *delta, \
2691.23Scgd			    struct timeval *olddelta); }
2701.28Smycroft141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
2711.29Smycroft			    int *alen); } ogetpeername
2721.29Smycroft142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
2731.29Smycroft143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
2741.58Smycroft144	COMPAT_43	{ int sys_getrlimit(int which, \
2751.58Smycroft			    struct orlimit *rlp); } ogetrlimit
2761.58Smycroft145	COMPAT_43	{ int sys_setrlimit(int which, \
2771.58Smycroft			    const struct orlimit *rlp); } osetrlimit
2781.29Smycroft146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
2791.28Smycroft147	STD		{ int sys_setsid(void); }
2801.46Scgd148	STD		{ int sys_quotactl(const char *path, int cmd, \
2811.46Scgd			    int uid, caddr_t arg); }
2821.29Smycroft149	COMPAT_43	{ int sys_quota(void); } oquota
2831.28Smycroft150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
2841.29Smycroft			    int *alen); } ogetsockname
2851.1Sglass
2861.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
2871.1Sglass; system calls.  (This includes various calls added for compatibity
2881.1Sglass; with other Unix variants.)
2891.1Sglass; Some of these calls are now supported by BSD...
2901.23Scgd151	UNIMPL
2911.23Scgd152	UNIMPL
2921.23Scgd153	UNIMPL
2931.23Scgd154	UNIMPL
2941.92Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
2951.46Scgd155	STD		{ int sys_nfssvc(int flag, void *argp); }
2961.1Sglass#else
2971.92Schristos155	EXCL		nfssvc
2981.1Sglass#endif
2991.28Smycroft156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
3001.29Smycroft			    u_int count, long *basep); } ogetdirentries
3011.46Scgd157	STD		{ int sys_statfs(const char *path, \
3021.46Scgd			    struct statfs *buf); }
3031.28Smycroft158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
3041.23Scgd159	UNIMPL
3051.23Scgd160	UNIMPL
3061.46Scgd161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
3071.29Smycroft162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
3081.29Smycroft			    ogetdomainname
3091.29Smycroft163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
3101.29Smycroft			    osetdomainname
3111.29Smycroft164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
3121.71Sperry165	STD		{ int sys_sysarch(int op, void *parms); }
3131.23Scgd166	UNIMPL
3141.23Scgd167	UNIMPL
3151.23Scgd168	UNIMPL
3161.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3171.92Schristos#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
3181.28Smycroft169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
3191.29Smycroft			    int a5); } osemsys
3201.9Scgd#else
3211.92Schristos169	EXCL		1.0 semsys
3221.9Scgd#endif
3231.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3241.92Schristos#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
3251.28Smycroft170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
3261.29Smycroft			    int a5, int a6); } omsgsys
3271.9Scgd#else
3281.92Schristos170	EXCL		1.0 msgsys
3291.9Scgd#endif
3301.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3311.92Schristos#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
3321.29Smycroft171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
3331.29Smycroft			    oshmsys
3341.1Sglass#else
3351.92Schristos171	EXCL		1.0 shmsys
3361.1Sglass#endif
3371.23Scgd172	UNIMPL
3381.79Sthorpej173	STD		{ ssize_t sys_pread(int fd, void *buf, \
3391.80Sthorpej			    size_t nbyte, int pad, off_t offset); }
3401.79Sthorpej174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
3411.80Sthorpej			    size_t nbyte, int pad, off_t offset); }
3421.45Scgd175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
3431.38Sthorpej176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
3441.23Scgd177	UNIMPL
3451.23Scgd178	UNIMPL
3461.23Scgd179	UNIMPL
3471.23Scgd180	UNIMPL
3481.1Sglass
3491.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3501.28Smycroft181	STD		{ int sys_setgid(gid_t gid); }
3511.28Smycroft182	STD		{ int sys_setegid(gid_t egid); }
3521.28Smycroft183	STD		{ int sys_seteuid(uid_t euid); }
3531.92Schristos#if defined(LFS) || !defined(_KERNEL)
3541.92Schristos184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
3551.23Scgd			    struct block_info *blkiov, int blkcnt); }
3561.92Schristos185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
3571.23Scgd			    struct block_info *blkiov, int blkcnt); }
3581.92Schristos186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
3591.92Schristos187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
3601.92Schristos			    struct timeval *tv); }
3611.92Schristos#else
3621.92Schristos184	EXCL		lfs_bmapv
3631.92Schristos185	EXCL		lfs_markv
3641.92Schristos186	EXCL		lfs_segclean
3651.92Schristos187	EXCL		lfs_segwait
3661.23Scgd#endif
3671.60Schristos188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
3681.60Schristos			    stat12
3691.60Schristos189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
3701.60Schristos190	COMPAT_12	{ int sys_lstat(const char *path, \
3711.60Schristos			    struct stat12 *ub); } lstat12
3721.46Scgd191	STD		{ long sys_pathconf(const char *path, int name); }
3731.44Scgd192	STD		{ long sys_fpathconf(int fd, int name); }
3741.23Scgd193	UNIMPL
3751.58Smycroft194	STD		{ int sys_getrlimit(int which, \
3761.58Smycroft			    struct rlimit *rlp); }
3771.58Smycroft195	STD		{ int sys_setrlimit(int which, \
3781.46Scgd			    const struct rlimit *rlp); }
3791.57Sfvdl196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
3801.28Smycroft			    u_int count, long *basep); }
3811.61Schristos197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
3821.23Scgd			    int flags, int fd, long pad, off_t pos); }
3831.43Scgd198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
3841.28Smycroft199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3851.23Scgd			    int whence); }
3861.46Scgd200	STD		{ int sys_truncate(const char *path, int pad, \
3871.46Scgd			    off_t length); }
3881.28Smycroft201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
3891.28Smycroft202	STD		{ int sys___sysctl(int *name, u_int namelen, \
3901.28Smycroft			    void *old, size_t *oldlenp, void *new, \
3911.28Smycroft			    size_t newlen); }
3921.75Skleink203	STD		{ int sys_mlock(const void *addr, size_t len); }
3931.75Skleink204	STD		{ int sys_munlock(const void *addr, size_t len); }
3941.46Scgd205	STD		{ int sys_undelete(const char *path); }
3951.46Scgd206	STD		{ int sys_futimes(int fd, \
3961.46Scgd			    const struct timeval *tptr); }
3971.86Skleink207	STD		{ pid_t sys_getpgid(pid_t pid); }
3981.34Smrg208	STD		{ int sys_reboot(int opt, char *bootstr); }
3991.36Smycroft209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
4001.35Smycroft			    int timeout); }
4011.11Scgd;
4021.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
4031.11Scgd;
4041.92Schristos#if defined(LKM) || !defined(_KERNEL)
4051.28Smycroft210	NODEF		{ int sys_lkmnosys(void); }
4061.28Smycroft211	NODEF		{ int sys_lkmnosys(void); }
4071.28Smycroft212	NODEF		{ int sys_lkmnosys(void); }
4081.28Smycroft213	NODEF		{ int sys_lkmnosys(void); }
4091.28Smycroft214	NODEF		{ int sys_lkmnosys(void); }
4101.28Smycroft215	NODEF		{ int sys_lkmnosys(void); }
4111.28Smycroft216	NODEF		{ int sys_lkmnosys(void); }
4121.28Smycroft217	NODEF		{ int sys_lkmnosys(void); }
4131.28Smycroft218	NODEF		{ int sys_lkmnosys(void); }
4141.28Smycroft219	NODEF		{ int sys_lkmnosys(void); }
4151.11Scgd#else	/* !LKM */
4161.92Schristos210	EXCL		lkmnosys
4171.92Schristos211	EXCL		lkmnosys
4181.92Schristos212	EXCL		lkmnosys
4191.92Schristos213	EXCL		lkmnosys
4201.92Schristos214	EXCL		lkmnosys
4211.92Schristos215	EXCL		lkmnosys
4221.92Schristos216	EXCL		lkmnosys
4231.92Schristos217	EXCL		lkmnosys
4241.92Schristos218	EXCL		lkmnosys
4251.92Schristos219	EXCL		lkmnosys
4261.6Scgd#endif	/* !LKM */
4271.49Skleink; System calls 220-300 are reserved for use by NetBSD
4281.92Schristos#if defined(SYSVSEM) || !defined(_KERNEL)
4291.97Sthorpej220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
4301.97Sthorpej			    union __semun *arg); }
4311.28Smycroft221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
4321.28Smycroft222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
4331.74Skleink			    size_t nsops); }
4341.28Smycroft223	STD		{ int sys_semconfig(int flag); }
4351.23Scgd#else
4361.97Sthorpej220	EXCL		compat_14_semctl
4371.92Schristos221	EXCL		semget
4381.92Schristos222	EXCL		semop
4391.92Schristos223	EXCL		semconfig
4401.23Scgd#endif
4411.92Schristos#if defined(SYSVMSG) || !defined(_KERNEL)
4421.97Sthorpej224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
4431.97Sthorpej			    struct msqid_ds14 *buf); }
4441.28Smycroft225	STD		{ int sys_msgget(key_t key, int msgflg); }
4451.74Skleink226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
4461.74Skleink			    size_t msgsz, int msgflg); }
4471.74Skleink227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
4481.74Skleink			    size_t msgsz, long msgtyp, int msgflg); }
4491.23Scgd#else
4501.97Sthorpej224	EXCL		compat_14_msgctl
4511.92Schristos225	EXCL		msgget
4521.92Schristos226	EXCL		msgsnd
4531.92Schristos227	EXCL		msgrcv
4541.23Scgd#endif
4551.92Schristos#if defined(SYSVSHM) || !defined(_KERNEL)
4561.74Skleink228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
4571.44Scgd			    int shmflg); }
4581.97Sthorpej229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
4591.97Sthorpej			    struct shmid_ds14 *buf); }
4601.74Skleink230	STD		{ int sys_shmdt(const void *shmaddr); }
4611.74Skleink231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
4621.23Scgd#else
4631.92Schristos228	EXCL		shmat
4641.97Sthorpej229	EXCL		compat_14_shmctl
4651.92Schristos230	EXCL		shmdt
4661.92Schristos231	EXCL		shmget
4671.23Scgd#endif
4681.39Sjtc232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
4691.49Skleink			    struct timespec *tp); }
4701.39Sjtc233	STD		{ int sys_clock_settime(clockid_t clock_id, \
4711.49Skleink			    const struct timespec *tp); }
4721.39Sjtc234	STD		{ int sys_clock_getres(clockid_t clock_id, \
4731.49Skleink			    struct timespec *tp); }
4741.39Sjtc235	UNIMPL		timer_create
4751.39Sjtc236	UNIMPL		timer_delete
4761.39Sjtc237	UNIMPL		timer_settime
4771.39Sjtc238	UNIMPL		timer_gettime
4781.39Sjtc239	UNIMPL		timer_getoverrun
4791.54Sveego;
4801.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
4811.54Sveego;
4821.48Sjtc240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
4831.49Skleink			    struct timespec *rmtp); }
4841.76Skleink241	STD		{ int sys_fdatasync(int fd); }
4851.93Sthorpej242	STD		{ int sys_mlockall(int flags); }
4861.93Sthorpej243	STD		{ int sys_munlockall(void); }
4871.49Skleink244	UNIMPL
4881.49Skleink245	UNIMPL
4891.49Skleink246	UNIMPL
4901.49Skleink247	UNIMPL
4911.49Skleink248	UNIMPL
4921.49Skleink249	UNIMPL
4931.55Sveego250	UNIMPL
4941.49Skleink251	UNIMPL
4951.49Skleink252	UNIMPL
4961.49Skleink253	UNIMPL
4971.49Skleink254	UNIMPL
4981.49Skleink255	UNIMPL
4991.49Skleink256	UNIMPL
5001.49Skleink257	UNIMPL
5011.49Skleink258	UNIMPL
5021.49Skleink259	UNIMPL
5031.49Skleink260	UNIMPL
5041.49Skleink261	UNIMPL
5051.49Skleink262	UNIMPL
5061.49Skleink263	UNIMPL
5071.49Skleink264	UNIMPL
5081.49Skleink265	UNIMPL
5091.49Skleink266	UNIMPL
5101.49Skleink267	UNIMPL
5111.49Skleink268	UNIMPL
5121.49Skleink269	UNIMPL
5131.69Skleink270	STD		{ int sys___posix_rename(const char *from, \
5141.49Skleink			    const char *to); }
5151.64Sthorpej271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
5161.57Sfvdl272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
5171.61Schristos273	STD		{ int sys_minherit(void *addr, size_t len, \
5181.54Sveego			    int inherit); }
5191.60Schristos274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
5201.56Senami275	STD		{ int sys_lchown(const char *path, uid_t uid, \
5211.56Senami			    gid_t gid); }
5221.56Senami276	STD		{ int sys_lutimes(const char *path, \
5231.56Senami			    const struct timeval *tptr); }
5241.63Sthorpej277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
5251.63Sthorpej278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
5261.63Sthorpej279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
5271.63Sthorpej280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
5281.82Smycroft281	STD		{ int sys___sigaltstack14( \
5291.82Smycroft			    const struct sigaltstack *nss, \
5301.82Smycroft			    struct sigaltstack *oss); }
5311.67Sthorpej282	STD		{ int sys___vfork14(void); }
5321.69Skleink283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
5331.69Skleink			    gid_t gid); }
5341.69Skleink284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
5351.69Skleink			    gid_t gid); }
5361.69Skleink285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
5371.69Skleink			    gid_t gid); }
5381.68Sthorpej286	STD		{ pid_t sys_getsid(pid_t pid); }
5391.73Schristos287	UNIMPL
5401.92Schristos#if defined(KTRACE) || !defined(_KERNEL)
5411.73Schristos288	STD		{ int sys_fktrace(const int fd, int ops, \
5421.73Schristos			    int facs, int pid); }
5431.73Schristos#else
5441.92Schristos288	EXCL		ktrace
5451.73Schristos#endif
5461.79Sthorpej289	STD		{ ssize_t sys_preadv(int fd, \
5471.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
5481.80Sthorpej			    int pad, off_t offset); }
5491.79Sthorpej290	STD		{ ssize_t sys_pwritev(int fd, \
5501.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
5511.80Sthorpej			    int pad, off_t offset); }
5521.82Smycroft291	STD		{ int sys___sigaction14(int signum, \
5531.82Smycroft			    const struct sigaction *nsa, \
5541.82Smycroft			    struct sigaction *osa); }
5551.82Smycroft292	STD		{ int sys___sigpending14(sigset_t *set); }
5561.82Smycroft293	STD		{ int sys___sigprocmask14(int how, \
5571.82Smycroft			    const sigset_t *set, \
5581.82Smycroft			    sigset_t *oset); }
5591.82Smycroft294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
5601.83Smycroft295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
5611.89Ssommerfe296	STD		{ int sys___getcwd(char *bufp, size_t length); }
5621.89Ssommerfe297	STD		{ int sys_fchroot(int fd); }
5631.94Swrstuden298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
5641.94Swrstuden299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
5651.94Swrstuden			    struct stat *sb); }
5661.94Swrstuden300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
5671.94Swrstuden			    struct statfs *buf); }
5681.97Sthorpej#if defined(SYSVSEM) || !defined(_KERNEL)
5691.99Schristos301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
5701.99Schristos			    ... union __semun *arg); }
5711.97Sthorpej#else
5721.99Schristos301	EXCL		____semctl13
5731.97Sthorpej#endif
5741.97Sthorpej#if defined(SYSVMSG) || !defined(_KERNEL)
5751.97Sthorpej302	STD		{ int sys___msgctl13(int msqid, int cmd, \
5761.97Sthorpej			    struct msqid_ds *buf); }
5771.97Sthorpej#else
5781.97Sthorpej302	EXCL		__msgctl13
5791.97Sthorpej#endif
5801.97Sthorpej#if defined(SYSVSHM) || !defined(_KERNEL)
5811.97Sthorpej303	STD		{ int sys___shmctl13(int shmid, int cmd, \
5821.97Sthorpej			    struct shmid_ds *buf); }
5831.97Sthorpej#else
5841.97Sthorpej303	EXCL		__shmctl13
5851.97Sthorpej#endif
5861.100Smrg304	STD		{ int sys_lchflags(const char *path, u_long flags); }
587