syscalls.master revision 1.219
11.219Schristos	$NetBSD: syscalls.master,v 1.219 2009/01/11 02:45:53 christos 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.190Smartin;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
111.24Smycroft;		the compatibility options defined in syscalls.conf.
121.23Scgd;
131.191Spooka; Optional fields are specified after the type field
141.217Spooka; (NOTE! they *must* be specified in this order):
151.217Spooka;	MODULAR:attempt to autoload system call if not present
161.217Spooka;	RUMP:	the system call can be called directly from rumps
171.108Sthorpej;
181.1Sglass; types:
191.1Sglass;	STD	always included
201.23Scgd;	OBSOL	obsolete, not included in system
211.190Smartin;	IGNORED	syscall is a null op, but always succeeds
221.24Smycroft;	UNIMPL	unimplemented, not included in system
231.92Schristos;	EXCL	implemented, but not included in system
241.23Scgd;	NODEF	included, but don't define the syscall number
251.23Scgd;	NOARGS	included, but don't define the syscall args structure
261.43Scgd;	INDIR	included, but don't define the syscall args structure,
271.43Scgd;		and allow it to be "really" varargs.
281.23Scgd;
291.23Scgd; The compat options are defined in the syscalls.conf file, and the
301.23Scgd; compat option name is prefixed to the syscall name.  Other than
311.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for
321.23Scgd; 'libcompat' options).
331.23Scgd;
341.23Scgd; The type-dependent arguments are as follows:
351.23Scgd; For STD, NODEF, NOARGS, and compat syscalls:
361.23Scgd;	{ pseudo-proto } [alias]
371.23Scgd; For other syscalls:
381.23Scgd;	[comment]
391.23Scgd;
401.23Scgd; #ifdef's, etc. may be included, and are copied to the output files.
411.70Sthorpej; #include's are copied to the syscall names and switch definition files only.
421.77Sthorpej
431.102Sbjh21#include "opt_ntp.h"
441.85Stron#include "opt_sysv.h"
451.70Sthorpej
461.70Sthorpej#include "fs_lfs.h"
471.1Sglass
481.23Scgd#include <sys/param.h>
491.23Scgd#include <sys/systm.h>
501.23Scgd#include <sys/signal.h>
511.23Scgd#include <sys/mount.h>
521.204Stsutsui#include <sys/sched.h>
531.23Scgd#include <sys/syscallargs.h>
541.103Smycroft
551.103Smycroft%%
561.1Sglass
571.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
581.1Sglass; are reserved for use in future Berkeley releases.
591.1Sglass; Additional system calls implemented in vendor and other
601.1Sglass; redistributions should be placed in the reserved range at the end
611.1Sglass; of the current calls.
621.1Sglass
631.179Sdsl0	INDIR		{ int sys_syscall(int code, \
641.179Sdsl			    ... register_t args[SYS_MAXSYSARGS]); }
651.200Sad1	STD 		{ void sys_exit(int rval); }
661.200Sad2	STD 		{ int sys_fork(void); }
671.200Sad3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
681.200Sad4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
691.46Scgd			    size_t nbyte); }
701.200Sad5	STD 	 RUMP	{ int sys_open(const char *path, \
711.60Schristos			    int flags, ... mode_t mode); }
721.219Schristos6	STD	 RUMP	{ int sys_close(int fd); }
731.219Schristos7	COMPAT_50 MODULAR { int sys_wait4(int pid, int *status, \
741.219Schristos			    int options, struct rusage50 *rusage); }
751.216Sad8	COMPAT_43 MODULAR { int sys_creat(const char *path, mode_t mode); } ocreat
761.200Sad9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
771.200Sad10	STD 	 RUMP	{ int sys_unlink(const char *path); }
781.23Scgd11	OBSOL		execv
791.200Sad12	STD 	 RUMP	{ int sys_chdir(const char *path); }
801.200Sad13	STD 	 RUMP	{ int sys_fchdir(int fd); }
811.219Schristos14	COMPAT_50 MODULAR { int sys_mknod(const char *path, mode_t mode, \
821.219Schristos			    uint32_t dev); }
831.200Sad15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
841.200Sad16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
851.46Scgd			    gid_t gid); }
861.200Sad17	STD 		{ int sys_obreak(char *nsize); } break
871.216Sad18	COMPAT_20 MODULAR { int sys_getfsstat(struct statfs12 *buf, \
881.139Schristos			    long bufsize, int flags); }
891.216Sad19	COMPAT_43 MODULAR { long sys_lseek(int fd, long offset, int whence); } \
901.29Smycroft			    olseek
911.200Sad20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
921.216Sad21	COMPAT_40 MODULAR { int sys_mount(const char *type, const char *path, \
931.46Scgd			    int flags, void *data); }
941.200Sad22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
951.200Sad23	STD 		{ int sys_setuid(uid_t uid); }
961.200Sad24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
971.200Sad25	STD 		{ uid_t sys_geteuid(void); }
981.200Sad26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
991.23Scgd			    int data); }
1001.200Sad27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
1011.28Smycroft			    int flags); }
1021.200Sad28	STD 		{ ssize_t sys_sendmsg(int s, \
1031.46Scgd			    const struct msghdr *msg, int flags); }
1041.200Sad29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
1051.46Scgd			    int flags, struct sockaddr *from, \
1061.88Skleink			    unsigned int *fromlenaddr); }
1071.218Spooka30	STD	RUMP	{ int sys_accept(int s, struct sockaddr *name, \
1081.88Skleink			    unsigned int *anamelen); }
1091.46Scgd31	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
1101.88Skleink			    unsigned int *alen); }
1111.46Scgd32	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
1121.88Skleink			    unsigned int *alen); }
1131.205Spooka33	STD 		{ int sys_access(const char *path, int flags); }
1141.200Sad34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
1151.205Spooka35	STD 		{ int sys_fchflags(int fd, u_long flags); }
1161.200Sad36	STD 	 RUMP	{ void sys_sync(void); }
1171.200Sad37	STD 		{ int sys_kill(int pid, int signum); }
1181.216Sad38	COMPAT_43 MODULAR { int sys_stat(const char *path, struct stat43 *ub); } \
1191.60Schristos			    stat43
1201.200Sad39	STD 		{ pid_t sys_getppid(void); }
1211.216Sad40	COMPAT_43 MODULAR { int sys_lstat(const char *path, \
1221.60Schristos			    struct stat43 *ub); } lstat43
1231.200Sad41	STD 		{ int sys_dup(int fd); }
1241.200Sad42	STD 		{ int sys_pipe(void); }
1251.200Sad43	STD 		{ gid_t sys_getegid(void); }
1261.200Sad44	STD 		{ int sys_profil(char *samples, size_t size, \
1271.30Scgd			    u_long offset, u_int scale); }
1281.200Sad45	STD 		{ int sys_ktrace(const char *fname, int ops, \
1291.46Scgd			    int facs, int pid); }
1301.216Sad46	COMPAT_13 MODULAR { int sys_sigaction(int signum, \
1311.82Smycroft			    const struct sigaction13 *nsa, \
1321.82Smycroft			    struct sigaction13 *osa); } sigaction13
1331.200Sad47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
1341.216Sad48	COMPAT_13 MODULAR { int sys_sigprocmask(int how, \
1351.82Smycroft			    int mask); } sigprocmask13
1361.200Sad49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
1371.200Sad50	STD 	 	{ int sys___setlogin(const char *namebuf); }
1381.200Sad51	STD 		{ int sys_acct(const char *path); }
1391.216Sad52	COMPAT_13 MODULAR { int sys_sigpending(void); } sigpending13
1401.216Sad53	COMPAT_13 MODULAR { int sys_sigaltstack( \
1411.82Smycroft			    const struct sigaltstack13 *nss, \
1421.82Smycroft			    struct sigaltstack13 *oss); } sigaltstack13
1431.211Spooka54	STD	RUMP	{ int sys_ioctl(int fd, \
1441.61Schristos			    u_long com, ... void *data); }
1451.216Sad55	COMPAT_12 MODULAR { int sys_reboot(int opt); } oreboot
1461.200Sad56	STD 		{ int sys_revoke(const char *path); }
1471.200Sad57	STD 	 RUMP	{ int sys_symlink(const char *path, \
1481.46Scgd			    const char *link); }
1491.200Sad58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
1501.72Skleink			    size_t count); }
1511.200Sad59	STD 		{ int sys_execve(const char *path, \
1521.46Scgd			    char * const *argp, char * const *envp); }
1531.200Sad60	STD 		{ mode_t sys_umask(mode_t newmask); }
1541.200Sad61	STD 		{ int sys_chroot(const char *path); }
1551.216Sad62	COMPAT_43 MODULAR { int sys_fstat(int fd, struct stat43 *sb); } fstat43
1561.216Sad63	COMPAT_43 MODULAR { int sys_getkerninfo(int op, char *where, int *size, \
1571.29Smycroft			    int arg); } ogetkerninfo
1581.216Sad64	COMPAT_43 MODULAR { int sys_getpagesize(void); } ogetpagesize
1591.216Sad65	COMPAT_12 MODULAR { int sys_msync(void *addr, size_t len); }
1601.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1611.200Sad66	STD 		{ int sys_vfork(void); }
1621.23Scgd67	OBSOL		vread
1631.23Scgd68	OBSOL		vwrite
1641.200Sad69	STD 		{ int sys_sbrk(intptr_t incr); }
1651.200Sad70	STD 		{ int sys_sstk(int incr); }
1661.216Sad71	COMPAT_43 MODULAR { int sys_mmap(void *addr, size_t len, int prot, \
1671.29Smycroft			    int flags, int fd, long pos); } ommap
1681.200Sad72	STD 		{ int sys_ovadvise(int anom); } vadvise
1691.200Sad73	STD 		{ int sys_munmap(void *addr, size_t len); }
1701.200Sad74	STD 		{ int sys_mprotect(void *addr, size_t len, \
1711.28Smycroft			    int prot); }
1721.200Sad75	STD 		{ int sys_madvise(void *addr, size_t len, \
1731.28Smycroft			    int behav); }
1741.23Scgd76	OBSOL		vhangup
1751.23Scgd77	OBSOL		vlimit
1761.200Sad78	STD 		{ int sys_mincore(void *addr, size_t len, \
1771.28Smycroft			    char *vec); }
1781.200Sad79	STD 		{ int sys_getgroups(int gidsetsize, \
1791.59Smycroft			    gid_t *gidset); }
1801.200Sad80	STD 		{ int sys_setgroups(int gidsetsize, \
1811.46Scgd			    const gid_t *gidset); }
1821.219Schristos81	STD 		{ int sys_getpgrp(void); }
1831.200Sad82	STD 		{ int sys_setpgid(int pid, int pgid); }
1841.219Schristos83	COMPAT_50 MODULAR { int sys_setitimer(int which, \
1851.219Schristos			    const struct itimerval50 *itv, \
1861.219Schristos			    struct itimerval50 *oitv); }
1871.216Sad84	COMPAT_43 MODULAR { int sys_wait(void); } owait
1881.216Sad85	COMPAT_12 MODULAR { int sys_swapon(const char *name); } oswapon
1891.219Schristos86	COMPAT_50 MODULAR { int sys_getitimer(int which, \
1901.219Schristos			    struct itimerval50 *itv); }
1911.216Sad87	COMPAT_43 MODULAR { int sys_gethostname(char *hostname, u_int len); } \
1921.29Smycroft			    ogethostname
1931.216Sad88	COMPAT_43 MODULAR { int sys_sethostname(char *hostname, u_int len); } \
1941.29Smycroft			    osethostname
1951.216Sad89	COMPAT_43 MODULAR { int sys_getdtablesize(void); } ogetdtablesize
1961.200Sad90	STD 		{ int sys_dup2(int from, int to); }
1971.23Scgd91	UNIMPL		getdopt
1981.200Sad92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
1991.219Schristos93	COMPAT_50 MODULAR 	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
2001.219Schristos			    fd_set *ex, struct timeval50 *tv); }
2011.23Scgd94	UNIMPL		setdopt
2021.207Spooka95	STD	RUMP 	{ int sys_fsync(int fd); }
2031.200Sad96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
2041.216Sad97	COMPAT_30 MODULAR { int sys_socket(int domain, int type, int protocol); }
2051.210Spooka98	STD	RUMP	{ int sys_connect(int s, const struct sockaddr *name, \
2061.88Skleink			    unsigned int namelen); }
2071.216Sad99	COMPAT_43 MODULAR { int sys_accept(int s, void *name, \
2081.46Scgd			    int *anamelen); } oaccept
2091.200Sad100	STD 		{ int sys_getpriority(int which, id_t who); }
2101.216Sad101	COMPAT_43 MODULAR { int sys_send(int s, void *buf, int len, \
2111.29Smycroft			    int flags); } osend
2121.216Sad102	COMPAT_43 MODULAR { int sys_recv(int s, void *buf, int len, \
2131.29Smycroft			    int flags); } orecv
2141.216Sad103	COMPAT_13 MODULAR { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
2151.83Smycroft			    sigreturn13
2161.218Spooka104	STD	RUMP	{ int sys_bind(int s, const struct sockaddr *name, \
2171.88Skleink			    unsigned int namelen); }
2181.210Spooka105	STD	RUMP	{ int sys_setsockopt(int s, int level, int name, \
2191.88Skleink			    const void *val, unsigned int valsize); }
2201.218Spooka106	STD	RUMP	{ int sys_listen(int s, int backlog); }
2211.23Scgd107	OBSOL		vtimes
2221.216Sad108	COMPAT_43 MODULAR { int sys_sigvec(int signum, struct sigvec *nsv, \
2231.29Smycroft			    struct sigvec *osv); } osigvec
2241.216Sad109	COMPAT_43 MODULAR { int sys_sigblock(int mask); } osigblock
2251.216Sad110	COMPAT_43 MODULAR { int sys_sigsetmask(int mask); } osigsetmask
2261.216Sad111	COMPAT_13 MODULAR { int sys_sigsuspend(int mask); } sigsuspend13
2271.216Sad112	COMPAT_43 MODULAR { int sys_sigstack(struct sigstack *nss, \
2281.29Smycroft			    struct sigstack *oss); } osigstack
2291.216Sad113	COMPAT_43 MODULAR { int sys_recvmsg(int s, struct omsghdr *msg, \
2301.29Smycroft			    int flags); } orecvmsg
2311.216Sad114	COMPAT_43 MODULAR { int sys_sendmsg(int s, void *msg, int flags); } \
2321.29Smycroft			    osendmsg
2331.23Scgd115	OBSOL		vtrace
2341.219Schristos116	COMPAT_50 MODULAR { int sys_gettimeofday(struct timeval50 *tp, \
2351.141Skleink			    void *tzp); }
2361.219Schristos117	COMPAT_50 MODULAR { int sys_getrusage(int who, struct rusage50 *rusage); }
2371.210Spooka118	STD	RUMP	{ int sys_getsockopt(int s, int level, int name, \
2381.88Skleink			    void *val, unsigned int *avalsize); }
2391.26Scgd119	OBSOL		resuba
2401.200Sad120	STD 		{ ssize_t sys_readv(int fd, \
2411.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2421.200Sad121	STD 		{ ssize_t sys_writev(int fd, \
2431.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2441.219Schristos122	COMPAT_50 MODULAR { int sys_settimeofday(const struct timeval50 *tv, \
2451.141Skleink			    const void *tzp); }
2461.200Sad123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
2471.200Sad124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
2481.216Sad125	COMPAT_43 MODULAR { int sys_recvfrom(int s, void *buf, size_t len, \
2491.167Schristos			    int flags, void *from, int *fromlenaddr); } \
2501.29Smycroft			    orecvfrom
2511.200Sad126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
2521.200Sad127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
2531.200Sad128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
2541.216Sad129	COMPAT_43 MODULAR { int sys_truncate(const char *path, long length); } \
2551.29Smycroft			    otruncate
2561.216Sad130	COMPAT_43 MODULAR { int sys_ftruncate(int fd, long length); } oftruncate
2571.200Sad131	STD 		{ int sys_flock(int fd, int how); }
2581.205Spooka132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
2591.200Sad133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
2601.46Scgd			    size_t len, int flags, const struct sockaddr *to, \
2611.88Skleink			    unsigned int tolen); }
2621.28Smycroft134	STD		{ int sys_shutdown(int s, int how); }
2631.28Smycroft135	STD		{ int sys_socketpair(int domain, int type, \
2641.28Smycroft			    int protocol, int *rsv); }
2651.200Sad136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
2661.200Sad137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
2671.219Schristos138	COMPAT_50 MODULAR { int sys_utimes(const char *path, \
2681.219Schristos			    const struct timeval50 *tptr); }
2691.23Scgd139	OBSOL		4.2 sigreturn
2701.219Schristos140	COMPAT_50 MODULAR { int sys_adjtime(const struct timeval50 *delta, \
2711.219Schristos			    struct timeval50 *olddelta); }
2721.216Sad141	COMPAT_43 MODULAR { int sys_getpeername(int fdes, void *asa, \
2731.29Smycroft			    int *alen); } ogetpeername
2741.216Sad142	COMPAT_43 MODULAR { int32_t sys_gethostid(void); } ogethostid
2751.216Sad143	COMPAT_43 MODULAR { int sys_sethostid(int32_t hostid); } osethostid
2761.216Sad144	COMPAT_43 MODULAR { int sys_getrlimit(int which, \
2771.58Smycroft			    struct orlimit *rlp); } ogetrlimit
2781.216Sad145	COMPAT_43 MODULAR { int sys_setrlimit(int which, \
2791.58Smycroft			    const struct orlimit *rlp); } osetrlimit
2801.216Sad146	COMPAT_43 MODULAR { int sys_killpg(int pgid, int signum); } okillpg
2811.200Sad147	STD 	 	{ int sys_setsid(void); }
2821.200Sad148	STD 		{ int sys_quotactl(const char *path, int cmd, \
2831.167Schristos			    int uid, void *arg); }
2841.216Sad149	COMPAT_43 MODULAR { int sys_quota(void); } oquota
2851.216Sad150	COMPAT_43 MODULAR { int sys_getsockname(int fdec, void *asa, \
2861.29Smycroft			    int *alen); } ogetsockname
2871.1Sglass
2881.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
2891.1Sglass; system calls.  (This includes various calls added for compatibity
2901.1Sglass; with other Unix variants.)
2911.1Sglass; Some of these calls are now supported by BSD...
2921.23Scgd151	UNIMPL
2931.23Scgd152	UNIMPL
2941.23Scgd153	UNIMPL
2951.23Scgd154	UNIMPL
2961.218Spooka155	STD MODULAR RUMP  { int sys_nfssvc(int flag, void *argp); }
2971.216Sad156	COMPAT_43 MODULAR { int sys_getdirentries(int fd, char *buf, \
2981.29Smycroft			    u_int count, long *basep); } ogetdirentries
2991.216Sad157	COMPAT_20 MODULAR { int sys_statfs(const char *path, \
3001.139Schristos			    struct statfs12 *buf); }
3011.216Sad158	COMPAT_20 MODULAR { int sys_fstatfs(int fd, struct statfs12 *buf); }
3021.23Scgd159	UNIMPL
3031.23Scgd160	UNIMPL
3041.216Sad161	COMPAT_30 MODULAR { int sys_getfh(const char *fname, \
3051.155Smartin			    struct compat_30_fhandle *fhp); }
3061.216Sad162	COMPAT_09 MODULAR { int sys_getdomainname(char *domainname, int len); } \
3071.29Smycroft			    ogetdomainname
3081.216Sad163	COMPAT_09 MODULAR { int sys_setdomainname(char *domainname, int len); } \
3091.29Smycroft			    osetdomainname
3101.216Sad164	COMPAT_09 MODULAR { int sys_uname(struct outsname *name); } ouname
3111.200Sad165	STD 		{ int sys_sysarch(int op, void *parms); }
3121.23Scgd166	UNIMPL
3131.23Scgd167	UNIMPL
3141.23Scgd168	UNIMPL
3151.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3161.216Sad#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
3171.216Sad169	COMPAT_10 MODULAR { int sys_semsys(int which, int a2, int a3, int a4, \
3181.29Smycroft			    int a5); } osemsys
3191.9Scgd#else
3201.92Schristos169	EXCL		1.0 semsys
3211.9Scgd#endif
3221.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3231.216Sad#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
3241.216Sad170	COMPAT_10 MODULAR { int sys_msgsys(int which, int a2, int a3, int a4, \
3251.29Smycroft			    int a5, int a6); } omsgsys
3261.9Scgd#else
3271.92Schristos170	EXCL		1.0 msgsys
3281.9Scgd#endif
3291.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3301.216Sad#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
3311.216Sad171	COMPAT_10 MODULAR { int sys_shmsys(int which, int a2, int a3, int a4); } \
3321.29Smycroft			    oshmsys
3331.1Sglass#else
3341.92Schristos171	EXCL		1.0 shmsys
3351.1Sglass#endif
3361.23Scgd172	UNIMPL
3371.201Spooka173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
3381.80Sthorpej			    size_t nbyte, int pad, off_t offset); }
3391.201Spooka174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
3401.80Sthorpej			    size_t nbyte, int pad, off_t offset); }
3411.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
3421.219Schristos175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
3431.216Sad#if defined(NTP) || !defined(_KERNEL_OPT)
3441.200Sad176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
3451.102Sbjh21#else
3461.102Sbjh21176	EXCL		ntp_adjtime
3471.102Sbjh21#endif
3481.23Scgd177	UNIMPL
3491.23Scgd178	UNIMPL
3501.23Scgd179	UNIMPL
3511.23Scgd180	UNIMPL
3521.1Sglass
3531.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3541.200Sad181	STD 		{ int sys_setgid(gid_t gid); }
3551.200Sad182	STD 		{ int sys_setegid(gid_t egid); }
3561.200Sad183	STD 		{ int sys_seteuid(uid_t euid); }
3571.92Schristos#if defined(LFS) || !defined(_KERNEL)
3581.200Sad184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
3591.23Scgd			    struct block_info *blkiov, int blkcnt); }
3601.200Sad185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
3611.23Scgd			    struct block_info *blkiov, int blkcnt); }
3621.219Schristos186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
3631.219Schristos187	COMPAT_50 MODULAR { int sys_lfs_segwait(fsid_t *fsidp, \
3641.219Schristos			    struct timeval50 *tv); }
3651.92Schristos#else
3661.92Schristos184	EXCL		lfs_bmapv
3671.92Schristos185	EXCL		lfs_markv
3681.92Schristos186	EXCL		lfs_segclean
3691.92Schristos187	EXCL		lfs_segwait
3701.23Scgd#endif
3711.216Sad188	COMPAT_12 MODULAR { int sys_stat(const char *path, struct stat12 *ub); } \
3721.60Schristos			    stat12
3731.216Sad189	COMPAT_12 MODULAR { int sys_fstat(int fd, struct stat12 *sb); } fstat12
3741.216Sad190	COMPAT_12 MODULAR { int sys_lstat(const char *path, \
3751.60Schristos			    struct stat12 *ub); } lstat12
3761.200Sad191	STD 		{ long sys_pathconf(const char *path, int name); }
3771.200Sad192	STD 		{ long sys_fpathconf(int fd, int name); }
3781.23Scgd193	UNIMPL
3791.200Sad194	STD 		{ int sys_getrlimit(int which, \
3801.58Smycroft			    struct rlimit *rlp); }
3811.200Sad195	STD 		{ int sys_setrlimit(int which, \
3821.46Scgd			    const struct rlimit *rlp); }
3831.216Sad196	COMPAT_12 MODULAR { int sys_getdirentries(int fd, char *buf, \
3841.28Smycroft			    u_int count, long *basep); }
3851.200Sad197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
3861.23Scgd			    int flags, int fd, long pad, off_t pos); }
3871.179Sdsl198	INDIR		{ quad_t sys___syscall(quad_t code, \
3881.179Sdsl			    ... register_t args[SYS_MAXSYSARGS]); }
3891.200Sad199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
3901.23Scgd			    int whence); }
3911.200Sad200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
3921.46Scgd			    off_t length); }
3931.200Sad201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
3941.208Spooka202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
3951.151Sdrochner			    void *old, size_t *oldlenp, const void *new, \
3961.28Smycroft			    size_t newlen); }
3971.200Sad203	STD 		{ int sys_mlock(const void *addr, size_t len); }
3981.200Sad204	STD 		{ int sys_munlock(const void *addr, size_t len); }
3991.200Sad205	STD 		{ int sys_undelete(const char *path); }
4001.219Schristos206	COMPAT_50 MODULAR { int sys_futimes(int fd, \
4011.219Schristos			    const struct timeval50 *tptr); }
4021.200Sad207	STD 		{ pid_t sys_getpgid(pid_t pid); }
4031.219Schristos208	STD		{ int sys_reboot(int opt, char *bootstr); }
4041.200Sad209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
4051.35Smycroft			    int timeout); }
4061.11Scgd;
4071.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
4081.11Scgd;
4091.212Sad210	UNIMPL
4101.212Sad211	UNIMPL
4111.212Sad212	UNIMPL
4121.212Sad213	UNIMPL
4131.212Sad214	UNIMPL
4141.212Sad215	UNIMPL
4151.212Sad216	UNIMPL
4161.212Sad217	UNIMPL
4171.212Sad218	UNIMPL
4181.212Sad219	UNIMPL
4191.49Skleink; System calls 220-300 are reserved for use by NetBSD
4201.216Sad#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
4211.216Sad220	COMPAT_14 MODULAR { int sys___semctl(int semid, int semnum, int cmd, \
4221.97Sthorpej			    union __semun *arg); }
4231.200Sad221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
4241.200Sad222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
4251.74Skleink			    size_t nsops); }
4261.200Sad223	STD 		{ int sys_semconfig(int flag); }
4271.23Scgd#else
4281.97Sthorpej220	EXCL		compat_14_semctl
4291.92Schristos221	EXCL		semget
4301.92Schristos222	EXCL		semop
4311.92Schristos223	EXCL		semconfig
4321.23Scgd#endif
4331.216Sad#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
4341.216Sad224	COMPAT_14 MODULAR { int sys_msgctl(int msqid, int cmd, \
4351.97Sthorpej			    struct msqid_ds14 *buf); }
4361.200Sad225	STD 		{ int sys_msgget(key_t key, int msgflg); }
4371.200Sad226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
4381.74Skleink			    size_t msgsz, int msgflg); }
4391.200Sad227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
4401.74Skleink			    size_t msgsz, long msgtyp, int msgflg); }
4411.23Scgd#else
4421.163Sad224	EXCL 		compat_14_msgctl
4431.163Sad225	EXCL 		msgget
4441.163Sad226	EXCL 		msgsnd
4451.163Sad227	EXCL 		msgrcv
4461.23Scgd#endif
4471.216Sad#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
4481.200Sad228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
4491.44Scgd			    int shmflg); }
4501.216Sad229	COMPAT_14 MODULAR { int sys_shmctl(int shmid, int cmd, \
4511.97Sthorpej			    struct shmid_ds14 *buf); }
4521.200Sad230	STD 		{ int sys_shmdt(const void *shmaddr); }
4531.200Sad231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
4541.23Scgd#else
4551.92Schristos228	EXCL		shmat
4561.97Sthorpej229	EXCL		compat_14_shmctl
4571.92Schristos230	EXCL		shmdt
4581.92Schristos231	EXCL		shmget
4591.23Scgd#endif
4601.219Schristos232	COMPAT_50 MODULAR { int sys_clock_gettime(clockid_t clock_id, \
4611.219Schristos			    struct timespec50 *tp); }
4621.219Schristos233	COMPAT_50 MODULAR { int sys_clock_settime(clockid_t clock_id, \
4631.219Schristos			    const struct timespec50 *tp); }
4641.219Schristos234	COMPAT_50 MODULAR { int sys_clock_getres(clockid_t clock_id, \
4651.219Schristos			    struct timespec50 *tp); }
4661.219Schristos235	STD		{ int sys_timer_create(clockid_t clock_id, \
4671.118Sthorpej			    struct sigevent *evp, timer_t *timerid); }
4681.219Schristos236	STD		{ int sys_timer_delete(timer_t timerid); }
4691.219Schristos237	COMPAT_50 MODULAR { int sys_timer_settime(timer_t timerid, int flags, \
4701.219Schristos			    const struct itimerspec50 *value, \
4711.219Schristos			    struct itimerspec50 *ovalue); }
4721.219Schristos238	COMPAT_50 MODULAR { int sys_timer_gettime(timer_t timerid, struct \
4731.219Schristos			    itimerspec50 *value); }
4741.219Schristos239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
4751.54Sveego;
4761.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
4771.54Sveego;
4781.219Schristos240	COMPAT_50 MODULAR { int sys_nanosleep(const struct timespec50 *rqtp, \
4791.219Schristos			    struct timespec50 *rmtp); }
4801.200Sad241	STD 		{ int sys_fdatasync(int fd); }
4811.200Sad242	STD 		{ int sys_mlockall(int flags); }
4821.200Sad243	STD 		{ int sys_munlockall(void); }
4831.219Schristos244	COMPAT_50 MODULAR { int sys___sigtimedwait(const sigset_t *set, \
4841.127Sjdolecek			    siginfo_t *info, \
4851.219Schristos			    struct timespec50 *timeout); }
4861.127Sjdolecek245	UNIMPL		sys_sigqueue
4871.213Sad246	STD 	 	{ int sys_modctl(int cmd, void *arg); }
4881.214Sad247	STD MODULAR 	{ int sys__ksem_init(unsigned int value, intptr_t *idp); }
4891.213Sad248	STD MODULAR 	{ int sys__ksem_open(const char *name, int oflag, \
4901.214Sad			    mode_t mode, unsigned int value, intptr_t *idp); }
4911.213Sad249	STD MODULAR 	{ int sys__ksem_unlink(const char *name); }
4921.214Sad250	STD MODULAR 	{ int sys__ksem_close(intptr_t id); }
4931.214Sad251	STD MODULAR 	{ int sys__ksem_post(intptr_t id); }
4941.214Sad252	STD MODULAR 	{ int sys__ksem_wait(intptr_t id); }
4951.214Sad253	STD MODULAR 	{ int sys__ksem_trywait(intptr_t id); }
4961.214Sad254	STD MODULAR 	{ int sys__ksem_getvalue(intptr_t id, \
4971.119Schristos			    unsigned int *value); }
4981.214Sad255	STD MODULAR 	{ int sys__ksem_destroy(intptr_t id); }
4991.124Sthorpej256	UNIMPL		sys__ksem_timedwait
5001.200Sad257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
5011.177Srmind			    mode_t mode, struct mq_attr *attr); }
5021.200Sad258	STD 		{ int sys_mq_close(mqd_t mqdes); }
5031.200Sad259	STD 		{ int sys_mq_unlink(const char *name); }
5041.200Sad260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
5051.177Srmind			    struct mq_attr *mqstat); }
5061.200Sad261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
5071.177Srmind			    const struct mq_attr *mqstat, \
5081.177Srmind			    struct mq_attr *omqstat); }
5091.200Sad262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
5101.177Srmind			    const struct sigevent *notification); }
5111.200Sad263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
5121.177Srmind			    size_t msg_len, unsigned msg_prio); }
5131.200Sad264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
5141.177Srmind			    size_t msg_len, unsigned *msg_prio); }
5151.219Schristos265	COMPAT_50 MODULAR { int sys_mq_timedsend(mqd_t mqdes, \
5161.177Srmind			    const char *msg_ptr, size_t msg_len, \
5171.177Srmind			    unsigned msg_prio, \
5181.219Schristos			    const struct timespec50 *abs_timeout); }
5191.219Schristos266	COMPAT_50 MODULAR { ssize_t sys_mq_timedreceive(mqd_t mqdes, \
5201.177Srmind			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
5211.219Schristos			    const struct timespec50 *abs_timeout); }
5221.49Skleink267	UNIMPL
5231.49Skleink268	UNIMPL
5241.49Skleink269	UNIMPL
5251.200Sad270	STD 		{ int sys___posix_rename(const char *from, \
5261.49Skleink			    const char *to); }
5271.200Sad271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
5281.216Sad272	COMPAT_30 MODULAR { int sys_getdents(int fd, char *buf, size_t count); }
5291.200Sad273	STD 		{ int sys_minherit(void *addr, size_t len, \
5301.54Sveego			    int inherit); }
5311.200Sad274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
5321.200Sad275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
5331.56Senami			    gid_t gid); }
5341.219Schristos276	COMPAT_50  	{ int sys_lutimes(const char *path, \
5351.219Schristos			    const struct timeval50 *tptr); }
5361.200Sad277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
5371.216Sad278	COMPAT_30 MODULAR { int sys___stat13(const char *path, struct stat13 *ub); }
5381.216Sad279	COMPAT_30 MODULAR { int sys___fstat13(int fd, struct stat13 *sb); }
5391.216Sad280	COMPAT_30 MODULAR { int sys___lstat13(const char *path, struct stat13 *ub); }
5401.200Sad281	STD 		{ int sys___sigaltstack14( \
5411.82Smycroft			    const struct sigaltstack *nss, \
5421.82Smycroft			    struct sigaltstack *oss); }
5431.200Sad282	STD 		{ int sys___vfork14(void); }
5441.200Sad283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
5451.69Skleink			    gid_t gid); }
5461.200Sad284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
5471.69Skleink			    gid_t gid); }
5481.200Sad285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
5491.69Skleink			    gid_t gid); }
5501.200Sad286	STD 		{ pid_t sys_getsid(pid_t pid); }
5511.200Sad287	STD 		{ pid_t sys___clone(int flags, void *stack); }
5521.200Sad288	STD 		{ int sys_fktrace(int fd, int ops, \
5531.73Schristos			    int facs, int pid); }
5541.200Sad289	STD 		{ ssize_t sys_preadv(int fd, \
5551.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
5561.80Sthorpej			    int pad, off_t offset); }
5571.200Sad290	STD 		{ ssize_t sys_pwritev(int fd, \
5581.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
5591.80Sthorpej			    int pad, off_t offset); }
5601.216Sad291	COMPAT_16 MODULAR { int sys___sigaction14(int signum, \
5611.82Smycroft			    const struct sigaction *nsa, \
5621.82Smycroft			    struct sigaction *osa); }
5631.200Sad292	STD 		{ int sys___sigpending14(sigset_t *set); }
5641.200Sad293	STD 		{ int sys___sigprocmask14(int how, \
5651.82Smycroft			    const sigset_t *set, \
5661.82Smycroft			    sigset_t *oset); }
5671.200Sad294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
5681.216Sad295	COMPAT_16 MODULAR { int sys___sigreturn14(struct sigcontext *sigcntxp); }
5691.200Sad296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
5701.200Sad297	STD 		{ int sys_fchroot(int fd); }
5711.216Sad298	COMPAT_30 MODULAR { int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
5721.216Sad299	COMPAT_30 MODULAR { int sys_fhstat(const struct compat_30_fhandle *fhp, \
5731.152Schristos			    struct stat13 *sb); }
5741.216Sad300	COMPAT_20 MODULAR { int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
5751.139Schristos			    struct statfs12 *buf); }
5761.216Sad#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
5771.219Schristos301	COMPAT_50 MODULAR { int sys_____semctl13(int semid, int semnum, int cmd, \
5781.99Schristos			    ... union __semun *arg); }
5791.97Sthorpej#else
5801.99Schristos301	EXCL		____semctl13
5811.97Sthorpej#endif
5821.216Sad#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
5831.219Schristos302	COMPAT_50 MODULAR { int sys___msgctl13(int msqid, int cmd, \
5841.97Sthorpej			    struct msqid_ds *buf); }
5851.97Sthorpej#else
5861.97Sthorpej302	EXCL		__msgctl13
5871.97Sthorpej#endif
5881.216Sad#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
5891.219Schristos303	COMPAT_50 MODULAR { int sys___shmctl13(int shmid, int cmd, \
5901.219Schristos			    struct shmid_ds13 *buf); }
5911.97Sthorpej#else
5921.97Sthorpej303	EXCL		__shmctl13
5931.97Sthorpej#endif
5941.205Spooka304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
5951.200Sad305	STD 		{ int sys_issetugid(void); }
5961.200Sad306	STD 		{ int sys_utrace(const char *label, void *addr, \
5971.118Sthorpej				size_t len); }
5981.200Sad307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
5991.200Sad308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
6001.200Sad309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
6011.118Sthorpej				u_long flags, lwpid_t *new_lwp); }
6021.200Sad310	STD 		{ int sys__lwp_exit(void); }
6031.200Sad311	STD 		{ lwpid_t sys__lwp_self(void); }
6041.200Sad312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
6051.118Sthorpej				lwpid_t *departed); }
6061.200Sad313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
6071.200Sad314	STD 		{ int sys__lwp_continue(lwpid_t target); }
6081.200Sad315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
6091.200Sad316	STD 		{ void *sys__lwp_getprivate(void); }
6101.200Sad317	STD 		{ void sys__lwp_setprivate(void *ptr); }
6111.200Sad318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
6121.200Sad319	STD 		{ int sys__lwp_detach(lwpid_t target); }
6131.219Schristos320	COMPAT_50 MODULAR { int sys__lwp_park(const struct timespec50 *ts, \
6141.175Sad				lwpid_t unpark, const void *hint, \
6151.175Sad				const void *unparkhint); }
6161.200Sad321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
6171.200Sad322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
6181.164Sad				size_t ntargets, const void *hint); }
6191.200Sad323	STD 		{ int sys__lwp_setname(lwpid_t target, \
6201.178Sad				const char *name); }
6211.200Sad324	STD 		{ int sys__lwp_getname(lwpid_t target, \
6221.178Sad				char *name, size_t len); }
6231.200Sad325	STD 		{ int sys__lwp_ctl(int features, \
6241.180Sad				struct lwpctl **address); }
6251.180Sad; Syscalls 326-339 reserved for LWP syscalls.
6261.107Snathanw326	UNIMPL
6271.107Snathanw327	UNIMPL
6281.107Snathanw328	UNIMPL
6291.107Snathanw329	UNIMPL
6301.209Swrstuden; SA system calls.
6311.209Swrstuden330	STD 		{ int sys_sa_register(sa_upcall_t new, \
6321.209Swrstuden				sa_upcall_t *old, int flags, \
6331.209Swrstuden				ssize_t stackinfo_offset); }
6341.209Swrstuden331	STD 		{ int sys_sa_stacks(int num, stack_t *stacks); }
6351.200Sad332	STD 		{ int sys_sa_enable(void); }
6361.209Swrstuden333	STD 		{ int sys_sa_setconcurrency(int concurrency); }
6371.200Sad334	STD 		{ int sys_sa_yield(void); }
6381.209Swrstuden335	STD 		{ int sys_sa_preempt(int sa_id); }
6391.209Swrstuden336	OBSOL 		sys_sa_unblockyield
6401.209Swrstuden;
6411.209Swrstuden; Syscalls 337-339 are reserved for other scheduler activation syscalls.
6421.209Swrstuden;
6431.107Snathanw337	UNIMPL
6441.107Snathanw338	UNIMPL
6451.107Snathanw339	UNIMPL
6461.200Sad340	STD 		{ int sys___sigaction_sigtramp(int signum, \
6471.112Sthorpej			    const struct sigaction *nsa, \
6481.112Sthorpej			    struct sigaction *osa, \
6491.132Smatt			    const void *tramp, int vers); }
6501.219Schristos341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
6511.219Schristos342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
6521.200Sad343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
6531.200Sad344	STD 		{ int sys_kqueue(void); }
6541.219Schristos345	COMPAT_50 MODULAR { int sys_kevent(int fd, \
6551.116Sjdolecek			    const struct kevent *changelist, size_t nchanges, \
6561.116Sjdolecek			    struct kevent *eventlist, size_t nevents, \
6571.219Schristos			    const struct timespec50 *timeout); }
6581.184Srmind
6591.184Srmind; Scheduling system calls.
6601.200Sad346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
6611.188Syamt			    int policy, const struct sched_param *params); }
6621.200Sad347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
6631.188Syamt			    int *policy, struct sched_param *params); }
6641.200Sad348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
6651.202Schristos			    size_t size, const cpuset_t *cpuset); }
6661.200Sad349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
6671.202Schristos			    size_t size, cpuset_t *cpuset); }
6681.200Sad350	STD 		{ int sys_sched_yield(void); }
6691.184Srmind351	UNIMPL
6701.184Srmind352	UNIMPL
6711.184Srmind353	UNIMPL
6721.134Sthorpej
6731.200Sad354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
6741.134Sthorpej			    off_t length); }
6751.200Sad355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
6761.200Sad356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
6771.139Schristos			    size_t bufsize, int flags); }
6781.218Spooka357	STD 	RUMP	{ int sys_statvfs1(const char *path, \
6791.139Schristos			    struct statvfs *buf, int flags); }
6801.200Sad358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
6811.139Schristos			    int flags); }
6821.216Sad359	COMPAT_30 MODULAR { int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
6831.139Schristos			    struct statvfs *buf, int flags); }
6841.200Sad360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
6851.143Sthorpej			    const char *filename, int attrnamespace, \
6861.143Sthorpej			    const char *attrname); }
6871.200Sad361	STD 		{ int sys_extattr_set_file(const char *path, \
6881.143Sthorpej			    int attrnamespace, const char *attrname, \
6891.143Sthorpej			    const void *data, size_t nbytes); }
6901.200Sad362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
6911.143Sthorpej			    int attrnamespace, const char *attrname, \
6921.143Sthorpej			    void *data, size_t nbytes); }
6931.200Sad363	STD 		{ int sys_extattr_delete_file(const char *path, \
6941.143Sthorpej			    int attrnamespace, const char *attrname); }
6951.200Sad364	STD 		{ int sys_extattr_set_fd(int fd, \
6961.143Sthorpej			    int attrnamespace, const char *attrname, \
6971.143Sthorpej			    const void *data, size_t nbytes); }
6981.200Sad365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
6991.143Sthorpej			    int attrnamespace, const char *attrname, \
7001.143Sthorpej			    void *data, size_t nbytes); }
7011.200Sad366	STD 		{ int sys_extattr_delete_fd(int fd, \
7021.143Sthorpej			    int attrnamespace, const char *attrname); }
7031.200Sad367	STD 		{ int sys_extattr_set_link(const char *path, \
7041.143Sthorpej			    int attrnamespace, const char *attrname, \
7051.143Sthorpej			    const void *data, size_t nbytes); }
7061.200Sad368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
7071.143Sthorpej			    int attrnamespace, const char *attrname, \
7081.143Sthorpej			    void *data, size_t nbytes); }
7091.200Sad369	STD 		{ int sys_extattr_delete_link(const char *path, \
7101.143Sthorpej			    int attrnamespace, const char *attrname); }
7111.200Sad370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
7121.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7131.200Sad371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
7141.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7151.200Sad372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
7161.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7171.219Schristos373	COMPAT_50 MODULAR { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
7181.219Schristos			    fd_set *ex, const struct timespec50 *ts, \
7191.145Smatt			    const sigset_t *mask); }
7201.219Schristos374	COMPAT_50 MODULAR { int sys_pollts(struct pollfd *fds, u_int nfds, \
7211.219Schristos			    const struct timespec50 *ts, const sigset_t *mask); }
7221.200Sad375	STD 		{ int sys_setxattr(const char *path, \
7231.147Sthorpej			    const char *name, void *value, size_t size, \
7241.147Sthorpej			    int flags); }
7251.200Sad376	STD 		{ int sys_lsetxattr(const char *path, \
7261.147Sthorpej			    const char *name, void *value, size_t size, \
7271.147Sthorpej			    int flags); }
7281.200Sad377	STD 		{ int sys_fsetxattr(int fd, \
7291.147Sthorpej			    const char *name, void *value, size_t size, \
7301.147Sthorpej			    int flags); }
7311.200Sad378	STD 		{ int sys_getxattr(const char *path, \
7321.147Sthorpej			    const char *name, void *value, size_t size); }
7331.200Sad379	STD 		{ int sys_lgetxattr(const char *path, \
7341.147Sthorpej			    const char *name, void *value, size_t size); }
7351.200Sad380	STD 		{ int sys_fgetxattr(int fd, \
7361.147Sthorpej			    const char *name, void *value, size_t size); }
7371.200Sad381	STD 		{ int sys_listxattr(const char *path, \
7381.147Sthorpej			    char *list, size_t size); }
7391.200Sad382	STD 		{ int sys_llistxattr(const char *path, \
7401.147Sthorpej			    char *list, size_t size); }
7411.200Sad383	STD 		{ int sys_flistxattr(int fd, \
7421.147Sthorpej			    char *list, size_t size); }
7431.200Sad384	STD 		{ int sys_removexattr(const char *path, \
7441.147Sthorpej			    const char *name); }
7451.200Sad385	STD 		{ int sys_lremovexattr(const char *path, \
7461.147Sthorpej			    const char *name); }
7471.200Sad386	STD 		{ int sys_fremovexattr(int fd, \
7481.147Sthorpej			    const char *name); }
7491.219Schristos387	COMPAT_50 MODULAR { int sys___stat30(const char *path, struct stat30 *ub); }
7501.219Schristos388	COMPAT_50 MODULAR { int sys___fstat30(int fd, struct stat30 *sb); }
7511.219Schristos389	COMPAT_50 MODULAR { int sys___lstat30(const char *path, struct stat30 *ub); }
7521.200Sad390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
7531.190Smartin391	IGNORED		old posix_fadvise
7541.216Sad392	COMPAT_30 MODULAR { int sys___fhstat30(const struct compat_30_fhandle \
7551.219Schristos			    *fhp, struct stat30 *sb); }
7561.219Schristos393	COMPAT_50 MODULAR { int sys___ntp_gettime30(struct ntptimeval50 *ntvp); }
7571.210Spooka394	STD	 RUMP	{ int sys___socket30(int domain, int type, int protocol); }
7581.218Spooka395	STD 	 RUMP	{ int sys___getfh30(const char *fname, void *fhp, \
7591.156Smartin			    size_t *fh_size); }
7601.200Sad396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
7611.156Smartin			    int flags); }
7621.200Sad397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
7631.156Smartin			    size_t fh_size, struct statvfs *buf, int flags); }
7641.219Schristos398	COMPAT_50 MODULAR { int sys___fhstat40(const void *fhp, \
7651.219Schristos			    size_t fh_size, struct stat30 *sb); }
7661.169Srmind
7671.169Srmind; Asynchronous I/O system calls
7681.219Schristos399	STD MODULAR 	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
7691.219Schristos400	STD MODULAR 	{ int sys_aio_error(const struct aiocb *aiocbp); }
7701.219Schristos401	STD MODULAR 	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
7711.219Schristos402	STD MODULAR 	{ int sys_aio_read(struct aiocb *aiocbp); }
7721.219Schristos403	STD MODULAR 	{ int sys_aio_return(struct aiocb *aiocbp); }
7731.219Schristos404	COMPAT_50 MODULAR { int sys_aio_suspend(const struct aiocb *const *list, \
7741.219Schristos			    int nent, const struct timespec50 *timeout); }
7751.219Schristos405	STD MODULAR 	{ int sys_aio_write(struct aiocb *aiocbp); }
7761.219Schristos406	STD MODULAR 	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
7771.169Srmind			    int nent, struct sigevent *sig); }
7781.171Sjoerg
7791.170Sdsl407	UNIMPL
7801.170Sdsl408	UNIMPL
7811.170Sdsl409	UNIMPL
7821.170Sdsl
7831.200Sad410	STD 		{ int sys___mount50(const char *type, \
7841.170Sdsl			    const char *path, int flags, void *data, \
7851.170Sdsl			    size_t data_len); }
7861.200Sad411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
7871.171Sjoerg			    void *new_address, size_t new_size, int flags); }
7881.184Srmind
7891.184Srmind; Processor-sets system calls
7901.200Sad412	STD 		{ int sys_pset_create(psetid_t *psid); }
7911.200Sad413	STD 		{ int sys_pset_destroy(psetid_t psid); }
7921.200Sad414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
7931.184Srmind			    psetid_t *opsid); }
7941.200Sad415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
7951.184Srmind			    id_t second_id, psetid_t psid, psetid_t *opsid); }
7961.200Sad416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
7971.187Smartin			    off_t offset, off_t len, int advice); }
7981.219Schristos417	STD 		{ int sys___select50(int nd, fd_set *in, fd_set *ou, \
7991.219Schristos			    fd_set *ex, struct timeval *tv); }
8001.219Schristos418	STD 		{ int sys___gettimeofday50(struct timeval *tp, \
8011.219Schristos			    void *tzp); }
8021.219Schristos419	STD 		{ int sys___settimeofday50(const struct timeval *tv, \
8031.219Schristos			    const void *tzp); }
8041.219Schristos420	STD  RUMP	{ int sys___utimes50(const char *path, \
8051.219Schristos			    const struct timeval *tptr); }
8061.219Schristos421	STD		{ int sys___adjtime50(const struct timeval *delta, \
8071.219Schristos			    struct timeval *olddelta); }
8081.219Schristos#if defined(LFS) || !defined(_KERNEL)
8091.219Schristos422	STD		{ int sys___lfs_segwait50(fsid_t *fsidp, \
8101.219Schristos			    struct timeval *tv); }
8111.219Schristos#else
8121.219Schristos422	EXCL		__lfs_segwait50
8131.219Schristos#endif
8141.219Schristos423	STD 		{ int sys___futimes50(int fd, \
8151.219Schristos			    const struct timeval *tptr); }
8161.219Schristos424	STD  RUMP 	{ int sys___lutimes50(const char *path, \
8171.219Schristos			    const struct timeval *tptr); }
8181.219Schristos425	STD		{ int sys___setitimer50(int which, \
8191.219Schristos			    const struct itimerval *itv, \
8201.219Schristos			    struct itimerval *oitv); }
8211.219Schristos426	STD		{ int sys___getitimer50(int which, \
8221.219Schristos			    struct itimerval *itv); }
8231.219Schristos427	STD 		{ int sys___clock_gettime50(clockid_t clock_id, \
8241.219Schristos			    struct timespec *tp); }
8251.219Schristos428	STD 		{ int sys___clock_settime50(clockid_t clock_id, \
8261.219Schristos			    const struct timespec *tp); }
8271.219Schristos429	STD 		{ int sys___clock_getres50(clockid_t clock_id, \
8281.219Schristos			    struct timespec *tp); }
8291.219Schristos430	STD 		{ int sys___nanosleep50(const struct timespec *rqtp, \
8301.219Schristos			    struct timespec *rmtp); }
8311.219Schristos431	STD 		{ int sys_____sigtimedwait50(const sigset_t *set, \
8321.219Schristos			    siginfo_t *info, \
8331.219Schristos			    struct timespec *timeout); }
8341.219Schristos432	STD 		{ int sys___mq_timedsend50(mqd_t mqdes, \
8351.219Schristos			    const char *msg_ptr, size_t msg_len, \
8361.219Schristos			    unsigned msg_prio, \
8371.219Schristos			    const struct timespec *abs_timeout); }
8381.219Schristos433	STD 		{ ssize_t sys___mq_timedreceive50(mqd_t mqdes, \
8391.219Schristos			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
8401.219Schristos			    const struct timespec *abs_timeout); }
8411.219Schristos434	STD 		{ int sys____lwp_park50(const struct timespec *ts, \
8421.219Schristos				lwpid_t unpark, const void *hint, \
8431.219Schristos				const void *unparkhint); }
8441.219Schristos435	STD 		{ int sys___kevent50(int fd, \
8451.219Schristos			    const struct kevent *changelist, size_t nchanges, \
8461.219Schristos			    struct kevent *eventlist, size_t nevents, \
8471.219Schristos			    const struct timespec *timeout); }
8481.219Schristos436	STD 		{ int sys___pselect50(int nd, fd_set *in, fd_set *ou, \
8491.219Schristos			    fd_set *ex, const struct timespec *ts, \
8501.219Schristos			    const sigset_t *mask); }
8511.219Schristos437	STD 		{ int sys___pollts50(struct pollfd *fds, u_int nfds, \
8521.219Schristos			    const struct timespec *ts, const sigset_t *mask); }
8531.219Schristos438	STD MODULAR	{ int sys___aio_suspend50( \
8541.219Schristos			    const struct aiocb *const *list, \
8551.219Schristos			    int nent, const struct timespec *timeout); }
8561.219Schristos439	STD  RUMP	{ int sys___stat50(const char *path, struct stat *ub); }
8571.219Schristos440	STD 		{ int sys___fstat50(int fd, struct stat *sb); }
8581.219Schristos441	STD  RUMP	{ int sys___lstat50(const char *path, struct stat *ub); }
8591.219Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
8601.219Schristos442	STD 		{ int sys_____semctl50(int semid, int semnum, int cmd, \
8611.219Schristos			    ... union __semun *arg); }
8621.219Schristos#else
8631.219Schristos442	EXCL		____semctl50
8641.219Schristos#endif
8651.219Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
8661.219Schristos443	STD 		{ int sys___shmctl50(int shmid, int cmd, \
8671.219Schristos			    struct shmid_ds *buf); }
8681.219Schristos#else
8691.219Schristos443	EXCL 		____shmctl50
8701.219Schristos#endif
8711.219Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
8721.219Schristos444	STD 		{ int sys___msgctl50(int msqid, int cmd, \
8731.219Schristos			    struct msqid_ds *buf); }
8741.219Schristos#else
8751.219Schristos444	EXCL 		____msgctl50
8761.219Schristos#endif
8771.219Schristos445	STD 		{ int sys___getrusage50(int who, struct rusage *rusage); }
8781.219Schristos446	STD		{ int sys___timer_settime50(timer_t timerid, \
8791.219Schristos			    int flags, const struct itimerspec *value, \
8801.219Schristos			    struct itimerspec *ovalue); }
8811.219Schristos447	STD		{ int sys___timer_gettime50(timer_t timerid, struct \
8821.219Schristos			    itimerspec *value); }
8831.219Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
8841.219Schristos448	STD		{ int sys___ntp_gettime50(struct ntptimeval *ntvp); }
8851.219Schristos#else
8861.219Schristos448	EXCL		___ntp_gettime50
8871.219Schristos#endif
8881.219Schristos449	STD 		{ int sys___wait450(int pid, int *status, \
8891.219Schristos				    int options, struct rusage *rusage); }
8901.219Schristos450	STD  RUMP	{ int sys___mknod50(const char *path, mode_t mode, \
8911.219Schristos			    dev_t dev); }
8921.219Schristos451	STD	 	{ int sys___fhstat50(const void *fhp, \
8931.219Schristos			    size_t fh_size, struct stat *sb); }
894