syscalls.master revision 1.295
11.295Schristos	$NetBSD: syscalls.master,v 1.295 2019/06/18 16:06:45 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.274Spgoyette;	MODULAR modname :attempt to autoload system call module if not present
161.245Spooka;	RUMP:	generate rump syscall entry point
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.245Spooka;	NOERR	included, syscall does not set errno
291.259Schristos;	EXTERN	implemented, but as 3rd party module
301.23Scgd;
311.227Spooka; arguments:
321.227Spooka;	PAD	argument not part of the C interface, used only for padding
331.227Spooka;
341.23Scgd; The compat options are defined in the syscalls.conf file, and the
351.23Scgd; compat option name is prefixed to the syscall name.  Other than
361.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for
371.23Scgd; 'libcompat' options).
381.23Scgd;
391.23Scgd; The type-dependent arguments are as follows:
401.23Scgd; For STD, NODEF, NOARGS, and compat syscalls:
411.221Spooka;	{ return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias]
421.23Scgd; For other syscalls:
431.23Scgd;	[comment]
441.23Scgd;
451.23Scgd; #ifdef's, etc. may be included, and are copied to the output files.
461.70Sthorpej; #include's are copied to the syscall names and switch definition files only.
471.77Sthorpej
481.223Sapb#include "opt_modular.h"
491.102Sbjh21#include "opt_ntp.h"
501.85Stron#include "opt_sysv.h"
511.70Sthorpej
521.23Scgd#include <sys/param.h>
531.23Scgd#include <sys/systm.h>
541.23Scgd#include <sys/signal.h>
551.249Schristos#include <sys/socket.h>
561.23Scgd#include <sys/mount.h>
571.204Stsutsui#include <sys/sched.h>
581.283Schristos#include <sys/idtype.h>
591.23Scgd#include <sys/syscallargs.h>
601.103Smycroft
611.103Smycroft%%
621.1Sglass
631.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
641.1Sglass; are reserved for use in future Berkeley releases.
651.1Sglass; Additional system calls implemented in vendor and other
661.1Sglass; redistributions should be placed in the reserved range at the end
671.1Sglass; of the current calls.
681.1Sglass
691.221Spooka0	INDIR		{ int|sys||syscall(int code, \
701.179Sdsl			    ... register_t args[SYS_MAXSYSARGS]); }
711.221Spooka1	STD 		{ void|sys||exit(int rval); }
721.221Spooka2	STD 		{ int|sys||fork(void); }
731.221Spooka3	STD 	 RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
741.221Spooka4	STD 	 RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
751.46Scgd			    size_t nbyte); }
761.221Spooka5	STD 	 RUMP	{ int|sys||open(const char *path, \
771.60Schristos			    int flags, ... mode_t mode); }
781.221Spooka6	STD	 RUMP	{ int|sys||close(int fd); }
791.294Spgoyette7	COMPAT_50 MODULAR compat_50 { int|sys||wait4(pid_t pid, int *status, \
801.219Schristos			    int options, struct rusage50 *rusage); }
811.294Spgoyette8	COMPAT_43 MODULAR compat_43	\
821.274Spgoyette		{ int|sys||creat(const char *path, mode_t mode); } ocreat
831.221Spooka9	STD 	 RUMP	{ int|sys||link(const char *path, const char *link); }
841.221Spooka10	STD 	 RUMP	{ int|sys||unlink(const char *path); }
851.23Scgd11	OBSOL		execv
861.221Spooka12	STD 	 RUMP	{ int|sys||chdir(const char *path); }
871.221Spooka13	STD 	 RUMP	{ int|sys||fchdir(int fd); }
881.294Spgoyette14	COMPAT_50 MODULAR compat_50 RUMP	\
891.274Spgoyette		{ int|sys||mknod(const char *path, mode_t mode, uint32_t dev); }
901.221Spooka15	STD 	 RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
911.221Spooka16	STD 	 RUMP	{ int|sys||chown(const char *path, uid_t uid, \
921.46Scgd			    gid_t gid); }
931.221Spooka17	STD 		{ int|sys||obreak(char *nsize); } break
941.294Spgoyette18	COMPAT_20 MODULAR compat_20 { int|sys||getfsstat(struct statfs12 *buf, \
951.139Schristos			    long bufsize, int flags); }
961.294Spgoyette19	COMPAT_43 MODULAR compat_43	\
971.274Spgoyette		{ long|sys||lseek(int fd, long offset, int whence); }\
981.29Smycroft			    olseek
991.245Spooka20	NOERR 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
1001.294Spgoyette21	COMPAT_40 MODULAR compat_40	\
1011.274Spgoyette		{ int|sys||mount(const char *type, const char *path, \
1021.46Scgd			    int flags, void *data); }
1031.286Spgoyette22	STD 	RUMP	{ int|sys||unmount(const char *path, int flags); }
1041.236Spooka23	STD 	RUMP	{ int|sys||setuid(uid_t uid); }
1051.245Spooka24	NOERR 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
1061.245Spooka25	NOERR 	RUMP	{ uid_t|sys||geteuid(void); }
1071.286Spgoyette26	STD 	MODULAR ptrace	\
1081.286Spgoyette			{ int|sys||ptrace(int req, pid_t pid, void *addr, \
1091.23Scgd			    int data); }
1101.222Spooka27	STD 	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
1111.28Smycroft			    int flags); }
1121.222Spooka28	STD 	RUMP	{ ssize_t|sys||sendmsg(int s, \
1131.46Scgd			    const struct msghdr *msg, int flags); }
1141.222Spooka29	STD 	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
1151.46Scgd			    int flags, struct sockaddr *from, \
1161.249Schristos			    socklen_t *fromlenaddr); }
1171.221Spooka30	STD	RUMP	{ int|sys||accept(int s, struct sockaddr *name, \
1181.249Schristos			    socklen_t *anamelen); }
1191.222Spooka31	STD	RUMP	{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
1201.249Schristos			    socklen_t *alen); }
1211.222Spooka32	STD	RUMP	{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
1221.249Schristos			    socklen_t *alen); }
1231.226Spooka33	STD 	RUMP	{ int|sys||access(const char *path, int flags); }
1241.221Spooka34	STD 	 RUMP	{ int|sys||chflags(const char *path, u_long flags); }
1251.226Spooka35	STD 	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
1261.245Spooka36	NOERR 	 RUMP	{ void|sys||sync(void); }
1271.243Schristos37	STD 		{ int|sys||kill(pid_t pid, int signum); }
1281.294Spgoyette38	COMPAT_43 MODULAR compat_43	\
1291.274Spgoyette		{ int|sys||stat(const char *path, struct stat43 *ub); } stat43
1301.245Spooka39	NOERR 	RUMP	{ pid_t|sys||getppid(void); }
1311.294Spgoyette40	COMPAT_43 MODULAR compat_43	\
1321.274Spgoyette		{ int|sys||lstat(const char *path, \
1331.60Schristos			    struct stat43 *ub); } lstat43
1341.226Spooka41	STD 	RUMP	{ int|sys||dup(int fd); }
1351.231Spooka42	STD 	RUMP	{ int|sys||pipe(void); }
1361.245Spooka43	NOERR 	RUMP	{ gid_t|sys||getegid(void); }
1371.221Spooka44	STD 		{ int|sys||profil(char *samples, size_t size, \
1381.30Scgd			    u_long offset, u_int scale); }
1391.265Spooka45	STD 	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
1401.243Schristos			    int facs, pid_t pid); }
1411.294Spgoyette46	COMPAT_13 MODULAR compat_13 { int|sys||sigaction(int signum, \
1421.82Smycroft			    const struct sigaction13 *nsa, \
1431.82Smycroft			    struct sigaction13 *osa); } sigaction13
1441.245Spooka47	NOERR 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
1451.294Spgoyette48	COMPAT_13 MODULAR compat_13 { int|sys||sigprocmask(int how, \
1461.82Smycroft			    int mask); } sigprocmask13
1471.236Spooka49	STD 	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
1481.236Spooka50	STD 	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
1491.221Spooka51	STD 		{ int|sys||acct(const char *path); }
1501.294Spgoyette52	COMPAT_13 MODULAR compat_13 { int|sys||sigpending(void); } sigpending13
1511.294Spgoyette53	COMPAT_13 MODULAR compat_13 { int|sys||sigaltstack( \
1521.82Smycroft			    const struct sigaltstack13 *nss, \
1531.82Smycroft			    struct sigaltstack13 *oss); } sigaltstack13
1541.221Spooka54	STD	RUMP	{ int|sys||ioctl(int fd, \
1551.61Schristos			    u_long com, ... void *data); }
1561.294Spgoyette55	COMPAT_12 MODULAR compat_12 { int|sys||reboot(int opt); } oreboot
1571.226Spooka56	STD 	 RUMP	{ int|sys||revoke(const char *path); }
1581.221Spooka57	STD 	 RUMP	{ int|sys||symlink(const char *path, \
1591.46Scgd			    const char *link); }
1601.221Spooka58	STD 	 RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
1611.72Skleink			    size_t count); }
1621.221Spooka59	STD 		{ int|sys||execve(const char *path, \
1631.46Scgd			    char * const *argp, char * const *envp); }
1641.237Spooka60	STD 	 RUMP	{ mode_t|sys||umask(mode_t newmask); }
1651.226Spooka61	STD 	 RUMP	{ int|sys||chroot(const char *path); }
1661.294Spgoyette62	COMPAT_43 MODULAR compat_43	\
1671.274Spgoyette		{ int|sys||fstat(int fd, struct stat43 *sb); } fstat43
1681.294Spgoyette63	COMPAT_43 MODULAR compat_43	\
1691.274Spgoyette		{ int|sys||getkerninfo(int op, char *where, int *size, \
1701.29Smycroft			    int arg); } ogetkerninfo
1711.294Spgoyette64	COMPAT_43 MODULAR compat_43	\
1721.274Spgoyette		{ int|sys||getpagesize(void); } ogetpagesize
1731.294Spgoyette65	COMPAT_12 MODULAR compat_12 { int|sys||msync(void *addr, size_t len); }
1741.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1751.221Spooka66	STD 		{ int|sys||vfork(void); }
1761.23Scgd67	OBSOL		vread
1771.23Scgd68	OBSOL		vwrite
1781.289Skamil69	OBSOL 		sbrk
1791.288Skamil70	OBSOL 		sstk
1801.294Spgoyette71	COMPAT_43 MODULAR compat_43	\
1811.274Spgoyette		{ int|sys||mmap(void *addr, size_t len, int prot, \
1821.29Smycroft			    int flags, int fd, long pos); } ommap
1831.291Skamil72	STD 		{ int|sys||ovadvise(int anom); } vadvise
1841.221Spooka73	STD 		{ int|sys||munmap(void *addr, size_t len); }
1851.221Spooka74	STD 		{ int|sys||mprotect(void *addr, size_t len, \
1861.28Smycroft			    int prot); }
1871.221Spooka75	STD 		{ int|sys||madvise(void *addr, size_t len, \
1881.28Smycroft			    int behav); }
1891.23Scgd76	OBSOL		vhangup
1901.23Scgd77	OBSOL		vlimit
1911.221Spooka78	STD 		{ int|sys||mincore(void *addr, size_t len, \
1921.28Smycroft			    char *vec); }
1931.236Spooka79	STD 	RUMP	{ int|sys||getgroups(int gidsetsize, \
1941.59Smycroft			    gid_t *gidset); }
1951.236Spooka80	STD 	RUMP	{ int|sys||setgroups(int gidsetsize, \
1961.46Scgd			    const gid_t *gidset); }
1971.236Spooka81	STD 	RUMP	{ int|sys||getpgrp(void); }
1981.243Schristos82	STD 	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
1991.294Spgoyette83	COMPAT_50 MODULAR compat_50 { int|sys||setitimer(int which, \
2001.219Schristos			    const struct itimerval50 *itv, \
2011.219Schristos			    struct itimerval50 *oitv); }
2021.294Spgoyette84	COMPAT_43 MODULAR compat_43 { int|sys||wait(void); } owait
2031.294Spgoyette85	COMPAT_12 MODULAR compat_12 { int|sys||swapon(const char *name); } \
2041.294Spgoyette			    oswapon
2051.294Spgoyette86	COMPAT_50 MODULAR compat_50 { int|sys||getitimer(int which, \
2061.219Schristos			    struct itimerval50 *itv); }
2071.294Spgoyette87	COMPAT_43 MODULAR compat_43	\
2081.274Spgoyette		{ int|sys||gethostname(char *hostname, u_int len); } \
2091.29Smycroft			    ogethostname
2101.294Spgoyette88	COMPAT_43 MODULAR compat_43	\
2111.274Spgoyette		{ int|sys||sethostname(char *hostname, u_int len); } \
2121.29Smycroft			    osethostname
2131.294Spgoyette89	COMPAT_43 MODULAR compat_43	\
2141.274Spgoyette		{ int|sys||getdtablesize(void); } ogetdtablesize
2151.226Spooka90	STD 	 RUMP	{ int|sys||dup2(int from, int to); }
2161.23Scgd91	UNIMPL		getdopt
2171.226Spooka92	STD	RUMP	{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
2181.294Spgoyette93	COMPAT_50 MODULAR compat_50 RUMP	\
2191.274Spgoyette		{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
2201.219Schristos			    fd_set *ex, struct timeval50 *tv); }
2211.23Scgd94	UNIMPL		setdopt
2221.221Spooka95	STD	RUMP 	{ int|sys||fsync(int fd); }
2231.221Spooka96	STD 		{ int|sys||setpriority(int which, id_t who, int prio); }
2241.294Spgoyette97	COMPAT_30 MODULAR compat_30	\
2251.274Spgoyette		{ int|sys||socket(int domain, int type, int protocol); }
2261.221Spooka98	STD	RUMP	{ int|sys||connect(int s, const struct sockaddr *name, \
2271.249Schristos			    socklen_t namelen); }
2281.294Spgoyette99	COMPAT_43 MODULAR compat_43	\
2291.274Spgoyette		{ int|sys||accept(int s, void *name, \
2301.249Schristos			    socklen_t *anamelen); } oaccept
2311.221Spooka100	STD 		{ int|sys||getpriority(int which, id_t who); }
2321.294Spgoyette101	COMPAT_43 MODULAR compat_43 { int|sys||send(int s, void *buf, int len, \
2331.29Smycroft			    int flags); } osend
2341.294Spgoyette102	COMPAT_43 MODULAR compat_43 { int|sys||recv(int s, void *buf, int len, \
2351.29Smycroft			    int flags); } orecv
2361.294Spgoyette103	COMPAT_13 MODULAR compat_13	\
2371.274Spgoyette		{ int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
2381.83Smycroft			    sigreturn13
2391.221Spooka104	STD	RUMP	{ int|sys||bind(int s, const struct sockaddr *name, \
2401.249Schristos			    socklen_t namelen); }
2411.221Spooka105	STD	RUMP	{ int|sys||setsockopt(int s, int level, int name, \
2421.249Schristos			    const void *val, socklen_t valsize); }
2431.221Spooka106	STD	RUMP	{ int|sys||listen(int s, int backlog); }
2441.23Scgd107	OBSOL		vtimes
2451.294Spgoyette108	COMPAT_43 MODULAR compat_43	\
2461.274Spgoyette		{ int|sys||sigvec(int signum, struct sigvec *nsv, \
2471.29Smycroft			    struct sigvec *osv); } osigvec
2481.274Spgoyette109	COMPAT_43 MODULAR compat { int|sys||sigblock(int mask); } osigblock
2491.274Spgoyette110	COMPAT_43 MODULAR compat { int|sys||sigsetmask(int mask); } osigsetmask
2501.274Spgoyette111	COMPAT_13 MODULAR compat { int|sys||sigsuspend(int mask); } sigsuspend13
2511.294Spgoyette112	COMPAT_43 MODULAR compat_43 { int|sys||sigstack(struct sigstack *nss, \
2521.29Smycroft			    struct sigstack *oss); } osigstack
2531.294Spgoyette113	COMPAT_43 MODULAR compat_43	\
2541.274Spgoyette		{ int|sys||recvmsg(int s, struct omsghdr *msg, \
2551.29Smycroft			    int flags); } orecvmsg
2561.294Spgoyette114	COMPAT_43 MODULAR compat_43	\
2571.274Spgoyette		{ int|sys||sendmsg(int s, void *msg, int flags); } osendmsg
2581.23Scgd115	OBSOL		vtrace
2591.294Spgoyette116	COMPAT_50 MODULAR compat_50	\
2601.294Spgoyette		{ int|sys||gettimeofday(struct timeval50 *tp, void *tzp); }
2611.294Spgoyette117	COMPAT_50 MODULAR compat_50	\
2621.274Spgoyette		{ int|sys||getrusage(int who, struct rusage50 *rusage); }
2631.221Spooka118	STD	RUMP	{ int|sys||getsockopt(int s, int level, int name, \
2641.249Schristos			    void *val, socklen_t *avalsize); }
2651.26Scgd119	OBSOL		resuba
2661.226Spooka120	STD 	RUMP	{ ssize_t|sys||readv(int fd, \
2671.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2681.226Spooka121	STD 	RUMP	{ ssize_t|sys||writev(int fd, \
2691.58Smycroft			    const struct iovec *iovp, int iovcnt); }
2701.294Spgoyette122	COMPAT_50 MODULAR compat_50	\
2711.274Spgoyette		{ int|sys||settimeofday(const struct timeval50 *tv, \
2721.141Skleink			    const void *tzp); }
2731.226Spooka123	STD 	 RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
2741.226Spooka124	STD 	 RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
2751.294Spgoyette125	COMPAT_43 MODULAR compat_43	\
2761.274Spgoyette		{ int|sys||recvfrom(int s, void *buf, size_t len, \
2771.249Schristos			    int flags, void *from, socklen_t *fromlenaddr); } \
2781.29Smycroft			    orecvfrom
2791.236Spooka126	STD 	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
2801.236Spooka127	STD 	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
2811.221Spooka128	STD 	 RUMP	{ int|sys||rename(const char *from, const char *to); }
2821.294Spgoyette129	COMPAT_43 MODULAR compat_43	\
2831.274Spgoyette		{ int|sys||truncate(const char *path, long length); } otruncate
2841.294Spgoyette130	COMPAT_43 MODULAR compat_43	\
2851.274Spgoyette		{ int|sys||ftruncate(int fd, long length); } oftruncate
2861.226Spooka131	STD 	 RUMP	{ int|sys||flock(int fd, int how); }
2871.221Spooka132	STD 	 RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
2881.222Spooka133	STD 	 RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
2891.46Scgd			    size_t len, int flags, const struct sockaddr *to, \
2901.249Schristos			    socklen_t tolen); }
2911.222Spooka134	STD	 RUMP	{ int|sys||shutdown(int s, int how); }
2921.222Spooka135	STD	 RUMP	{ int|sys||socketpair(int domain, int type, \
2931.28Smycroft			    int protocol, int *rsv); }
2941.221Spooka136	STD 	 RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
2951.221Spooka137	STD 	 RUMP	{ int|sys||rmdir(const char *path); }
2961.294Spgoyette138	COMPAT_50 MODULAR compat_50 RUMP { int|sys||utimes(const char *path, \
2971.219Schristos			    const struct timeval50 *tptr); }
2981.23Scgd139	OBSOL		4.2 sigreturn
2991.294Spgoyette140	COMPAT_50 MODULAR compat_50	\
3001.274Spgoyette		{ int|sys||adjtime(const struct timeval50 *delta, \
3011.219Schristos			    struct timeval50 *olddelta); }
3021.294Spgoyette141	COMPAT_43 MODULAR compat_43	\
3031.274Spgoyette		{ int|sys||getpeername(int fdes, void *asa, \
3041.249Schristos			    socklen_t *alen); } ogetpeername
3051.294Spgoyette142	COMPAT_43 MODULAR compat_43	\
3061.274Spgoyette		{ int32_t|sys||gethostid(void); } ogethostid
3071.294Spgoyette143	COMPAT_43 MODULAR compat_43	\
3081.274Spgoyette		{ int|sys||sethostid(int32_t hostid); } osethostid
3091.294Spgoyette144	COMPAT_43 MODULAR compat_43	\
3101.274Spgoyette		{ int|sys||getrlimit(int which, \
3111.58Smycroft			    struct orlimit *rlp); } ogetrlimit
3121.294Spgoyette145	COMPAT_43 MODULAR compat_43 { int|sys||setrlimit(int which, \
3131.58Smycroft			    const struct orlimit *rlp); } osetrlimit
3141.294Spgoyette146	COMPAT_43 MODULAR compat_43	\
3151.274Spgoyette		{ int|sys||killpg(int pgid, int signum); } okillpg
3161.236Spooka147	STD 	RUMP 	{ int|sys||setsid(void); }
3171.295Schristos148	COMPAT_50 MODULAR compat_50 { int|sys||quotactl(const char *path, \
3181.295Schristos			  int cmd, int uid, void *arg); }
3191.294Spgoyette149	COMPAT_43 MODULAR compat_43 { int|sys||quota(void); } oquota
3201.294Spgoyette150	COMPAT_43 MODULAR compat_43 { int|sys||getsockname(int fdec,	\
3211.294Spgoyette			    void *asa, socklen_t *alen); } ogetsockname
3221.1Sglass
3231.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
3241.1Sglass; system calls.  (This includes various calls added for compatibity
3251.1Sglass; with other Unix variants.)
3261.1Sglass; Some of these calls are now supported by BSD...
3271.23Scgd151	UNIMPL
3281.23Scgd152	UNIMPL
3291.23Scgd153	UNIMPL
3301.23Scgd154	UNIMPL
3311.274Spgoyette155	STD MODULAR nfsserver RUMP  { int|sys||nfssvc(int flag, void *argp); }
3321.294Spgoyette156	COMPAT_43 MODULAR compat_43	\
3331.274Spgoyette		{ int|sys||getdirentries(int fd, char *buf, \
3341.29Smycroft			    u_int count, long *basep); } ogetdirentries
3351.294Spgoyette157	COMPAT_20 MODULAR compat_20 { int|sys||statfs(const char *path, \
3361.139Schristos			    struct statfs12 *buf); }
3371.294Spgoyette158	COMPAT_20 MODULAR compat_20	\
3381.274Spgoyette		{ int|sys||fstatfs(int fd, struct statfs12 *buf); }
3391.23Scgd159	UNIMPL
3401.23Scgd160	UNIMPL
3411.294Spgoyette161	COMPAT_30 MODULAR compat_30 { int|sys||getfh(const char *fname, \
3421.155Smartin			    struct compat_30_fhandle *fhp); }
3431.294Spgoyette162	COMPAT_09 MODULAR compat_09	\
3441.274Spgoyette		{ int|sys||getdomainname(char *domainname, int len); } \
3451.29Smycroft			    ogetdomainname
3461.294Spgoyette163	COMPAT_09 MODULAR compat_09	\
3471.274Spgoyette		{ int|sys||setdomainname(char *domainname, int len); } \
3481.29Smycroft			    osetdomainname
3491.274Spgoyette164	COMPAT_09 MODULAR compat	\
3501.274Spgoyette		{ int|sys||uname(struct outsname *name); } ouname
3511.221Spooka165	STD 		{ int|sys||sysarch(int op, void *parms); }
3521.23Scgd166	UNIMPL
3531.23Scgd167	UNIMPL
3541.23Scgd168	UNIMPL
3551.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3561.277Spgoyette#if !defined(_LP64)
3571.294Spgoyette169	COMPAT_10 MODULAR compat_sysv_10	\
3581.274Spgoyette		{ int|sys||semsys(int which, int a2, int a3, int a4, \
3591.29Smycroft			    int a5); } osemsys
3601.9Scgd#else
3611.92Schristos169	EXCL		1.0 semsys
3621.9Scgd#endif
3631.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3641.277Spgoyette#if !defined(_LP64)
3651.294Spgoyette170	COMPAT_10 MODULAR compat_sysv_10	\
3661.274Spgoyette		{ int|sys||msgsys(int which, int a2, int a3, int a4, \
3671.29Smycroft			    int a5, int a6); } omsgsys
3681.9Scgd#else
3691.92Schristos170	EXCL		1.0 msgsys
3701.9Scgd#endif
3711.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
3721.277Spgoyette#if !defined(_LP64)
3731.294Spgoyette171	COMPAT_10 MODULAR compat_sysv_10	\
3741.274Spgoyette		{ int|sys||shmsys(int which, int a2, int a3, int a4); } \
3751.29Smycroft			    oshmsys
3761.1Sglass#else
3771.92Schristos171	EXCL		1.0 shmsys
3781.1Sglass#endif
3791.23Scgd172	UNIMPL
3801.221Spooka173	STD 	 RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
3811.227Spooka			    size_t nbyte, int PAD, off_t offset); }
3821.221Spooka174	STD 	 RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
3831.227Spooka			    size_t nbyte, int PAD, off_t offset); }
3841.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
3851.294Spgoyette175	COMPAT_30 MODULAR compat_30	\
3861.294Spgoyette			{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
3871.216Sad#if defined(NTP) || !defined(_KERNEL_OPT)
3881.221Spooka176	STD 		{ int|sys||ntp_adjtime(struct timex *tp); }
3891.102Sbjh21#else
3901.102Sbjh21176	EXCL		ntp_adjtime
3911.102Sbjh21#endif
3921.23Scgd177	UNIMPL
3931.23Scgd178	UNIMPL
3941.23Scgd179	UNIMPL
3951.23Scgd180	UNIMPL
3961.1Sglass
3971.1Sglass; Syscalls 180-199 are used by/reserved for BSD
3981.236Spooka181	STD 	RUMP	{ int|sys||setgid(gid_t gid); }
3991.236Spooka182	STD 	RUMP	{ int|sys||setegid(gid_t egid); }
4001.236Spooka183	STD 	RUMP	{ int|sys||seteuid(uid_t euid); }
4011.274Spgoyette184	STD MODULAR lfs	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
4021.23Scgd			    struct block_info *blkiov, int blkcnt); }
4031.274Spgoyette185	STD MODULAR lfs	{ int|sys||lfs_markv(fsid_t *fsidp, \
4041.23Scgd			    struct block_info *blkiov, int blkcnt); }
4051.274Spgoyette186	STD MODULAR lfs	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
4061.294Spgoyette187	COMPAT_50 MODULAR compat_50 { int|sys||lfs_segwait(fsid_t *fsidp, \
4071.219Schristos			    struct timeval50 *tv); }
4081.294Spgoyette188	COMPAT_12 MODULAR compat_12	\
4091.274Spgoyette		{ int|sys||stat(const char *path, struct stat12 *ub); } stat12
4101.294Spgoyette189	COMPAT_12 MODULAR compat_12	\
4111.274Spgoyette		{ int|sys||fstat(int fd, struct stat12 *sb); } fstat12
4121.294Spgoyette190	COMPAT_12 MODULAR compat_12 { int|sys||lstat(const char *path, \
4131.60Schristos			    struct stat12 *ub); } lstat12
4141.234Snjoly191	STD 	RUMP	{ long|sys||pathconf(const char *path, int name); }
4151.234Snjoly192	STD 	RUMP	{ long|sys||fpathconf(int fd, int name); }
4161.293Srjs193	STD	RUMP	{ int|sys||getsockopt2(int s, int level, int name, \
4171.293Srjs			    void *val, socklen_t *avalsize); }
4181.233Spooka194	STD 	RUMP	{ int|sys||getrlimit(int which, \
4191.58Smycroft			    struct rlimit *rlp); }
4201.233Spooka195	STD 	RUMP	{ int|sys||setrlimit(int which, \
4211.46Scgd			    const struct rlimit *rlp); }
4221.294Spgoyette196	COMPAT_12 MODULAR compat_12	\
4231.274Spgoyette		{ int|sys||getdirentries(int fd, char *buf, \
4241.28Smycroft			    u_int count, long *basep); }
4251.221Spooka197	STD 		{ void *|sys||mmap(void *addr, size_t len, int prot, \
4261.227Spooka			    int flags, int fd, long PAD, off_t pos); }
4271.221Spooka198	INDIR		{ quad_t|sys||__syscall(quad_t code, \
4281.179Sdsl			    ... register_t args[SYS_MAXSYSARGS]); }
4291.227Spooka199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
4301.23Scgd			    int whence); }
4311.227Spooka200	STD 	 RUMP	{ int|sys||truncate(const char *path, int PAD, \
4321.46Scgd			    off_t length); }
4331.227Spooka201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
4341.221Spooka202	STD	 RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
4351.269Sjoerg			    void *oldv, size_t *oldlenp, const void *newv, \
4361.28Smycroft			    size_t newlen); }
4371.221Spooka203	STD 		{ int|sys||mlock(const void *addr, size_t len); }
4381.221Spooka204	STD 		{ int|sys||munlock(const void *addr, size_t len); }
4391.221Spooka205	STD 		{ int|sys||undelete(const char *path); }
4401.294Spgoyette206	COMPAT_50 MODULAR compat_50 RUMP { int|sys||futimes(int fd, \
4411.219Schristos			    const struct timeval50 *tptr); }
4421.236Spooka207	STD 	 RUMP	{ pid_t|sys||getpgid(pid_t pid); }
4431.226Spooka208	STD	 RUMP	{ int|sys||reboot(int opt, char *bootstr); }
4441.226Spooka209	STD 	 RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
4451.35Smycroft			    int timeout); }
4461.11Scgd;
4471.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
4481.11Scgd;
4491.274Spgoyette210	EXTERN	MODULAR openafs { int|sys||afssys(long id, long a1, long a2, \
4501.259Schristos			  long a3, long a4, long a5, long a6); }
4511.212Sad211	UNIMPL
4521.212Sad212	UNIMPL
4531.212Sad213	UNIMPL
4541.212Sad214	UNIMPL
4551.212Sad215	UNIMPL
4561.212Sad216	UNIMPL
4571.212Sad217	UNIMPL
4581.212Sad218	UNIMPL
4591.212Sad219	UNIMPL
4601.49Skleink; System calls 220-300 are reserved for use by NetBSD
4611.294Spgoyette220	COMPAT_14 MODULAR compat_sysv_14	\
4621.274Spgoyette		{ int|sys||__semctl(int semid, int semnum, int cmd, \
4631.97Sthorpej			    union __semun *arg); }
4641.277Spgoyette221	STD MODULAR sysv_ipc { int|sys||semget(key_t key, int nsems, \
4651.277Spgoyette			    int semflg); }
4661.277Spgoyette222	STD MODULAR sysv_ipc { int|sys||semop(int semid, struct sembuf *sops, \
4671.74Skleink			    size_t nsops); }
4681.277Spgoyette223	STD MODULAR sysv_ipc { int|sys||semconfig(int flag); }
4691.294Spgoyette224	COMPAT_14 MODULAR compat_sysv_14 { int|sys||msgctl(int msqid, int cmd, \
4701.97Sthorpej			    struct msqid_ds14 *buf); }
4711.277Spgoyette225	STD MODULAR sysv_ipc { int|sys||msgget(key_t key, int msgflg); }
4721.277Spgoyette226	STD MODULAR sysv_ipc { int|sys||msgsnd(int msqid, const void *msgp, \
4731.74Skleink			    size_t msgsz, int msgflg); }
4741.277Spgoyette227	STD MODULAR sysv_ipc { ssize_t|sys||msgrcv(int msqid, void *msgp, \
4751.74Skleink			    size_t msgsz, long msgtyp, int msgflg); }
4761.277Spgoyette228	STD MODULAR sysv_ipc { void *|sys||shmat(int shmid,	\
4771.277Spgoyette			    const void *shmaddr, int shmflg); }
4781.294Spgoyette229	COMPAT_14 MODULAR compat_sysv_14 { int|sys||shmctl(int shmid, int cmd, \
4791.97Sthorpej			    struct shmid_ds14 *buf); }
4801.277Spgoyette230	STD MODULAR sysv_ipc { int|sys||shmdt(const void *shmaddr); }
4811.277Spgoyette231	STD MODULAR sysv_ipc { int|sys||shmget(key_t key, size_t size,	\
4821.277Spgoyette			    int shmflg); }
4831.294Spgoyette232	COMPAT_50 MODULAR compat_50	\
4841.294Spgoyette		{ int|sys||clock_gettime(clockid_t clock_id, \
4851.294Spgoyette		    struct timespec50 *tp); }
4861.294Spgoyette233	COMPAT_50 MODULAR compat_50	\
4871.294Spgoyette		{ int|sys||clock_settime(clockid_t clock_id, \
4881.294Spgoyette		    const struct timespec50 *tp); }
4891.294Spgoyette234	COMPAT_50 MODULAR compat_50	\
4901.294Spgoyette		{ int|sys||clock_getres(clockid_t clock_id, \
4911.294Spgoyette		    struct timespec50 *tp); }
4921.267Spooka235	STD  RUMP	{ int|sys||timer_create(clockid_t clock_id, \
4931.118Sthorpej			    struct sigevent *evp, timer_t *timerid); }
4941.267Spooka236	STD  RUMP	{ int|sys||timer_delete(timer_t timerid); }
4951.294Spgoyette237	COMPAT_50 MODULAR compat_50 { int|sys||timer_settime(timer_t timerid, \
4961.274Spgoyette			    int flags, const struct itimerspec50 *value, \
4971.219Schristos			    struct itimerspec50 *ovalue); }
4981.294Spgoyette238	COMPAT_50 MODULAR compat_50 { int|sys||timer_gettime(timer_t timerid, \
4991.274Spgoyette			    struct itimerspec50 *value); }
5001.267Spooka239	STD  RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
5011.54Sveego;
5021.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
5031.54Sveego;
5041.294Spgoyette240	COMPAT_50 MODULAR compat_50	\
5051.274Spgoyette		{ int|sys||nanosleep(const struct timespec50 *rqtp, \
5061.219Schristos			    struct timespec50 *rmtp); }
5071.226Spooka241	STD 	 RUMP	{ int|sys||fdatasync(int fd); }
5081.221Spooka242	STD 		{ int|sys||mlockall(int flags); }
5091.221Spooka243	STD 		{ int|sys||munlockall(void); }
5101.294Spgoyette244	COMPAT_50 MODULAR compat_50	\
5111.274Spgoyette		{ int|sys||__sigtimedwait(const sigset_t *set, \
5121.274Spgoyette			    siginfo_t *info, struct timespec50 *timeout); }
5131.240Schristos245	STD		{ int|sys||sigqueueinfo(pid_t pid, \
5141.240Schristos			    const siginfo_t *info); }
5151.230Spooka246	STD RUMP 	{ int|sys||modctl(int cmd, void *arg); }
5161.274Spgoyette247	STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
5171.274Spgoyette248	STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \
5181.214Sad			    mode_t mode, unsigned int value, intptr_t *idp); }
5191.274Spgoyette249	STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); }
5201.274Spgoyette250	STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); }
5211.274Spgoyette251	STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); }
5221.274Spgoyette252	STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); }
5231.274Spgoyette253	STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); }
5241.274Spgoyette254	STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \
5251.119Schristos			    unsigned int *value); }
5261.274Spgoyette255	STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); }
5271.274Spgoyette256	STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \
5281.258Sjoerg				const struct timespec *abstime); }
5291.274Spgoyette257	STD MODULAR mqueue	\
5301.274Spgoyette			{ mqd_t|sys||mq_open(const char * name, int oflag, \
5311.177Srmind			    mode_t mode, struct mq_attr *attr); }
5321.274Spgoyette258	STD MODULAR mqueue	{ int|sys||mq_close(mqd_t mqdes); }
5331.274Spgoyette259	STD MODULAR mqueue	{ int|sys||mq_unlink(const char *name); }
5341.274Spgoyette260	STD MODULAR mqueue	\
5351.274Spgoyette			{ int|sys||mq_getattr(mqd_t mqdes, \
5361.177Srmind			    struct mq_attr *mqstat); }
5371.274Spgoyette261	STD MODULAR mqueue	\
5381.274Spgoyette			{ int|sys||mq_setattr(mqd_t mqdes, \
5391.177Srmind			    const struct mq_attr *mqstat, \
5401.177Srmind			    struct mq_attr *omqstat); }
5411.274Spgoyette262	STD MODULAR mqueue	\
5421.274Spgoyette			{ int|sys||mq_notify(mqd_t mqdes, \
5431.177Srmind			    const struct sigevent *notification); }
5441.274Spgoyette263	STD MODULAR mqueue	\
5451.274Spgoyette			{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
5461.177Srmind			    size_t msg_len, unsigned msg_prio); }
5471.274Spgoyette264	STD MODULAR mqueue	\
5481.274Spgoyette			{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
5491.177Srmind			    size_t msg_len, unsigned *msg_prio); }
5501.294Spgoyette265	COMPAT_50 MODULAR compat_50	\
5511.294Spgoyette		{ int|sys||mq_timedsend(mqd_t mqdes, \
5521.294Spgoyette		    const char *msg_ptr, size_t msg_len, \
5531.294Spgoyette		    unsigned msg_prio, \
5541.294Spgoyette		    const struct timespec50 *abs_timeout); }
5551.294Spgoyette266	COMPAT_50 MODULAR compat_50	\
5561.294Spgoyette		{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
5571.294Spgoyette		    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
5581.294Spgoyette		    const struct timespec50 *abs_timeout); }
5591.49Skleink267	UNIMPL
5601.49Skleink268	UNIMPL
5611.49Skleink269	UNIMPL
5621.273Sjustin270	STD 	 RUMP	{ int|sys||__posix_rename(const char *from, \
5631.49Skleink			    const char *to); }
5641.221Spooka271	STD 		{ int|sys||swapctl(int cmd, void *arg, int misc); }
5651.294Spgoyette272	COMPAT_30 MODULAR compat_30	\
5661.294Spgoyette		{ int|sys||getdents(int fd, char *buf, size_t count); }
5671.221Spooka273	STD 		{ int|sys||minherit(void *addr, size_t len, \
5681.54Sveego			    int inherit); }
5691.221Spooka274	STD 	 RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
5701.221Spooka275	STD 	 RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
5711.56Senami			    gid_t gid); }
5721.294Spgoyette276	COMPAT_50 MODULAR compat_50 RUMP { int|sys||lutimes(const char *path, \
5731.219Schristos			    const struct timeval50 *tptr); }
5741.221Spooka277	STD 		{ int|sys|13|msync(void *addr, size_t len, int flags); }
5751.294Spgoyette278	COMPAT_30 MODULAR compat_30	\
5761.274Spgoyette		{ int|sys|13|stat(const char *path, struct stat13 *ub); }
5771.294Spgoyette279	COMPAT_30 MODULAR compat_30	\
5781.274Spgoyette		{ int|sys|13|fstat(int fd, struct stat13 *sb); }
5791.294Spgoyette280	COMPAT_30 MODULAR compat_30	\
5801.274Spgoyette		{ int|sys|13|lstat(const char *path, struct stat13 *ub); }
5811.221Spooka281	STD 		{ int|sys|14|sigaltstack( \
5821.82Smycroft			    const struct sigaltstack *nss, \
5831.82Smycroft			    struct sigaltstack *oss); }
5841.221Spooka282	STD 		{ int|sys|14|vfork(void); }
5851.278Spooka283	STD 	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
5861.69Skleink			    gid_t gid); }
5871.278Spooka284	STD 	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
5881.69Skleink			    gid_t gid); }
5891.278Spooka285	STD 	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
5901.69Skleink			    gid_t gid); }
5911.236Spooka286	STD 	RUMP	{ pid_t|sys||getsid(pid_t pid); }
5921.221Spooka287	STD 		{ pid_t|sys||__clone(int flags, void *stack); }
5931.265Spooka288	STD 	RUMP	{ int|sys||fktrace(int fd, int ops, \
5941.243Schristos			    int facs, pid_t pid); }
5951.244Spooka289	STD 	RUMP	{ ssize_t|sys||preadv(int fd, \
5961.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
5971.227Spooka			    int PAD, off_t offset); }
5981.244Spooka290	STD 	RUMP	{ ssize_t|sys||pwritev(int fd, \
5991.79Sthorpej			    const struct iovec *iovp, int iovcnt, \
6001.227Spooka			    int PAD, off_t offset); }
6011.294Spgoyette291	COMPAT_16 MODULAR compat_16 { int|sys|14|sigaction(int signum, \
6021.82Smycroft			    const struct sigaction *nsa, \
6031.82Smycroft			    struct sigaction *osa); }
6041.221Spooka292	STD 		{ int|sys|14|sigpending(sigset_t *set); }
6051.221Spooka293	STD 		{ int|sys|14|sigprocmask(int how, \
6061.82Smycroft			    const sigset_t *set, \
6071.82Smycroft			    sigset_t *oset); }
6081.221Spooka294	STD 		{ int|sys|14|sigsuspend(const sigset_t *set); }
6091.294Spgoyette295	COMPAT_16 MODULAR compat_16	\
6101.274Spgoyette		{ int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
6111.238Spooka296	STD 	 RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
6121.226Spooka297	STD 	 RUMP	{ int|sys||fchroot(int fd); }
6131.294Spgoyette298	COMPAT_30 MODULAR compat_30	\
6141.274Spgoyette		{ int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
6151.294Spgoyette299	COMPAT_30 MODULAR compat_30	\
6161.274Spgoyette		{ int|sys||fhstat(const struct compat_30_fhandle *fhp, \
6171.152Schristos			    struct stat13 *sb); }
6181.294Spgoyette300	COMPAT_20 MODULAR compat_20	\
6191.274Spgoyette		{ int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
6201.139Schristos			    struct statfs12 *buf); }
6211.294Spgoyette301	COMPAT_50 MODULAR compat_sysv_50	\
6221.274Spgoyette		{ int|sys|13|__semctl(int semid, int semnum, int cmd, \
6231.99Schristos			    ... union __semun *arg); }
6241.294Spgoyette302	COMPAT_50 MODULAR compat_sysv_50	\
6251.294Spgoyette		{ int|sys|13|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
6261.294Spgoyette303	COMPAT_50 MODULAR compat_sysv_50	\
6271.294Spgoyette		{ int|sys|13|shmctl(int shmid, int cmd, \
6281.219Schristos			    struct shmid_ds13 *buf); }
6291.294Spgoyette304	STD 	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
6301.245Spooka305	NOERR 	RUMP	{ int|sys||issetugid(void); }
6311.266Spooka306	STD	RUMP	{ int|sys||utrace(const char *label, void *addr, \
6321.118Sthorpej				size_t len); }
6331.221Spooka307	STD 		{ int|sys||getcontext(struct __ucontext *ucp); }
6341.221Spooka308	STD 		{ int|sys||setcontext(const struct __ucontext *ucp); }
6351.221Spooka309	STD 		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
6361.118Sthorpej				u_long flags, lwpid_t *new_lwp); }
6371.221Spooka310	STD 		{ int|sys||_lwp_exit(void); }
6381.221Spooka311	STD 		{ lwpid_t|sys||_lwp_self(void); }
6391.221Spooka312	STD 		{ int|sys||_lwp_wait(lwpid_t wait_for, \
6401.118Sthorpej				lwpid_t *departed); }
6411.221Spooka313	STD 		{ int|sys||_lwp_suspend(lwpid_t target); }
6421.221Spooka314	STD 		{ int|sys||_lwp_continue(lwpid_t target); }
6431.221Spooka315	STD 		{ int|sys||_lwp_wakeup(lwpid_t target); }
6441.221Spooka316	STD 		{ void *|sys||_lwp_getprivate(void); }
6451.221Spooka317	STD 		{ void|sys||_lwp_setprivate(void *ptr); }
6461.221Spooka318	STD 		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
6471.221Spooka319	STD 		{ int|sys||_lwp_detach(lwpid_t target); }
6481.294Spgoyette320	COMPAT_50 MODULAR compat_50	\
6491.274Spgoyette		{ int|sys||_lwp_park(const struct timespec50 *ts, \
6501.175Sad				lwpid_t unpark, const void *hint, \
6511.175Sad				const void *unparkhint); }
6521.221Spooka321	STD 		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
6531.221Spooka322	STD 		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
6541.164Sad				size_t ntargets, const void *hint); }
6551.221Spooka323	STD 		{ int|sys||_lwp_setname(lwpid_t target, \
6561.178Sad				const char *name); }
6571.221Spooka324	STD 		{ int|sys||_lwp_getname(lwpid_t target, \
6581.178Sad				char *name, size_t len); }
6591.221Spooka325	STD 		{ int|sys||_lwp_ctl(int features, \
6601.180Sad				struct lwpctl **address); }
6611.180Sad; Syscalls 326-339 reserved for LWP syscalls.
6621.107Snathanw326	UNIMPL
6631.107Snathanw327	UNIMPL
6641.107Snathanw328	UNIMPL
6651.107Snathanw329	UNIMPL
6661.256Smatt; SA system calls.
6671.294Spgoyette330	COMPAT_60 MODULAR compat_60	\
6681.294Spgoyette		 	{ int|sys||sa_register(void *newv, void **oldv, \
6691.257Smatt				int flags, ssize_t stackinfo_offset); }
6701.294Spgoyette331	COMPAT_60 MODULAR compat_60	\
6711.294Spgoyette			{ int|sys||sa_stacks(int num, stack_t *stacks); }
6721.294Spgoyette332	COMPAT_60 MODULAR compat_60	\
6731.294Spgoyette			{ int|sys||sa_enable(void); }
6741.294Spgoyette333	COMPAT_60 MODULAR compat_60	\
6751.294Spgoyette			{ int|sys||sa_setconcurrency(int concurrency); }
6761.294Spgoyette334	COMPAT_60 MODULAR compat_60	\
6771.294Spgoyette			{ int|sys||sa_yield(void); }
6781.294Spgoyette335	COMPAT_60 MODULAR compat_60	\
6791.294Spgoyette			{ int|sys||sa_preempt(int sa_id); }
6801.209Swrstuden336	OBSOL 		sys_sa_unblockyield
6811.209Swrstuden;
6821.209Swrstuden; Syscalls 337-339 are reserved for other scheduler activation syscalls.
6831.209Swrstuden;
6841.107Snathanw337	UNIMPL
6851.107Snathanw338	UNIMPL
6861.107Snathanw339	UNIMPL
6871.221Spooka340	STD 		{ int|sys||__sigaction_sigtramp(int signum, \
6881.112Sthorpej			    const struct sigaction *nsa, \
6891.112Sthorpej			    struct sigaction *osa, \
6901.132Smatt			    const void *tramp, int vers); }
6911.292Smaxv341	OBSOL		sys_pmc_get_info
6921.292Smaxv342	OBSOL		sys_pmc_control
6931.221Spooka343	STD 		{ int|sys||rasctl(void *addr, size_t len, int op); }
6941.224Spooka344	STD	RUMP	{ int|sys||kqueue(void); }
6951.294Spgoyette345	COMPAT_50 MODULAR compat_50 RUMP { int|sys||kevent(int fd, \
6961.116Sjdolecek			    const struct kevent *changelist, size_t nchanges, \
6971.116Sjdolecek			    struct kevent *eventlist, size_t nevents, \
6981.219Schristos			    const struct timespec50 *timeout); }
6991.184Srmind
7001.184Srmind; Scheduling system calls.
7011.221Spooka346	STD 		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
7021.188Syamt			    int policy, const struct sched_param *params); }
7031.221Spooka347	STD 		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
7041.188Syamt			    int *policy, struct sched_param *params); }
7051.221Spooka348	STD 		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
7061.202Schristos			    size_t size, const cpuset_t *cpuset); }
7071.221Spooka349	STD 		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
7081.202Schristos			    size_t size, cpuset_t *cpuset); }
7091.221Spooka350	STD 		{ int|sys||sched_yield(void); }
7101.285Schristos351	STD		{ int|sys||_sched_protect(int priority); }	
7111.184Srmind352	UNIMPL
7121.184Srmind353	UNIMPL
7131.134Sthorpej
7141.226Spooka354	STD	RUMP	{ int|sys||fsync_range(int fd, int flags, off_t start, \
7151.134Sthorpej			    off_t length); }
7161.221Spooka355	STD 		{ int|sys||uuidgen(struct uuid *store, int count); }
7171.226Spooka356	STD 	RUMP	{ int|sys||getvfsstat(struct statvfs *buf, \
7181.139Schristos			    size_t bufsize, int flags); }
7191.221Spooka357	STD 	RUMP	{ int|sys||statvfs1(const char *path, \
7201.139Schristos			    struct statvfs *buf, int flags); }
7211.226Spooka358	STD 	RUMP	{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
7221.139Schristos			    int flags); }
7231.294Spgoyette359	COMPAT_30 MODULAR compat_30	\
7241.274Spgoyette		{ int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
7251.139Schristos			    struct statvfs *buf, int flags); }
7261.226Spooka360	STD 	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
7271.143Sthorpej			    const char *filename, int attrnamespace, \
7281.143Sthorpej			    const char *attrname); }
7291.226Spooka361	STD 	RUMP	{ int|sys||extattr_set_file(const char *path, \
7301.143Sthorpej			    int attrnamespace, const char *attrname, \
7311.143Sthorpej			    const void *data, size_t nbytes); }
7321.226Spooka362	STD 	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
7331.143Sthorpej			    int attrnamespace, const char *attrname, \
7341.143Sthorpej			    void *data, size_t nbytes); }
7351.226Spooka363	STD 	RUMP	{ int|sys||extattr_delete_file(const char *path, \
7361.143Sthorpej			    int attrnamespace, const char *attrname); }
7371.226Spooka364	STD 	RUMP	{ int|sys||extattr_set_fd(int fd, \
7381.143Sthorpej			    int attrnamespace, const char *attrname, \
7391.143Sthorpej			    const void *data, size_t nbytes); }
7401.226Spooka365	STD 	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
7411.143Sthorpej			    int attrnamespace, const char *attrname, \
7421.143Sthorpej			    void *data, size_t nbytes); }
7431.226Spooka366	STD 	RUMP	{ int|sys||extattr_delete_fd(int fd, \
7441.143Sthorpej			    int attrnamespace, const char *attrname); }
7451.226Spooka367	STD 	RUMP	{ int|sys||extattr_set_link(const char *path, \
7461.143Sthorpej			    int attrnamespace, const char *attrname, \
7471.143Sthorpej			    const void *data, size_t nbytes); }
7481.226Spooka368	STD 	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
7491.143Sthorpej			    int attrnamespace, const char *attrname, \
7501.143Sthorpej			    void *data, size_t nbytes); }
7511.226Spooka369	STD 	RUMP	{ int|sys||extattr_delete_link(const char *path, \
7521.143Sthorpej			    int attrnamespace, const char *attrname); }
7531.226Spooka370	STD 	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
7541.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7551.226Spooka371	STD 	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
7561.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7571.226Spooka372	STD 	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
7581.143Sthorpej			    int attrnamespace, void *data, size_t nbytes); }
7591.294Spgoyette373	COMPAT_50 MODULAR compat_50 RUMP	\
7601.274Spgoyette		{ int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
7611.219Schristos			    fd_set *ex, const struct timespec50 *ts, \
7621.145Smatt			    const sigset_t *mask); }
7631.294Spgoyette374	COMPAT_50 MODULAR compat_50 RUMP	\
7641.274Spgoyette		{ int|sys||pollts(struct pollfd *fds, u_int nfds, \
7651.219Schristos			    const struct timespec50 *ts, const sigset_t *mask); }
7661.226Spooka375	STD 	RUMP	{ int|sys||setxattr(const char *path, \
7671.250Sdrochner			    const char *name, const void *value, size_t size, \
7681.147Sthorpej			    int flags); }
7691.226Spooka376	STD 	RUMP	{ int|sys||lsetxattr(const char *path, \
7701.250Sdrochner			    const char *name, const void *value, size_t size, \
7711.147Sthorpej			    int flags); }
7721.226Spooka377	STD 	RUMP	{ int|sys||fsetxattr(int fd, \
7731.250Sdrochner			    const char *name, const void *value, size_t size, \
7741.147Sthorpej			    int flags); }
7751.226Spooka378	STD 	RUMP	{ int|sys||getxattr(const char *path, \
7761.147Sthorpej			    const char *name, void *value, size_t size); }
7771.226Spooka379	STD 	RUMP	{ int|sys||lgetxattr(const char *path, \
7781.147Sthorpej			    const char *name, void *value, size_t size); }
7791.226Spooka380	STD 	RUMP	{ int|sys||fgetxattr(int fd, \
7801.147Sthorpej			    const char *name, void *value, size_t size); }
7811.226Spooka381	STD 	RUMP	{ int|sys||listxattr(const char *path, \
7821.147Sthorpej			    char *list, size_t size); }
7831.226Spooka382	STD 	RUMP	{ int|sys||llistxattr(const char *path, \
7841.147Sthorpej			    char *list, size_t size); }
7851.226Spooka383	STD 	RUMP	{ int|sys||flistxattr(int fd, \
7861.147Sthorpej			    char *list, size_t size); }
7871.226Spooka384	STD 	RUMP	{ int|sys||removexattr(const char *path, \
7881.147Sthorpej			    const char *name); }
7891.226Spooka385	STD 	RUMP	{ int|sys||lremovexattr(const char *path, \
7901.147Sthorpej			    const char *name); }
7911.226Spooka386	STD 	RUMP	{ int|sys||fremovexattr(int fd, \
7921.147Sthorpej			    const char *name); }
7931.294Spgoyette387	COMPAT_50 MODULAR compat_50 RUMP	\
7941.274Spgoyette		{ int|sys|30|stat(const char *path, struct stat30 *ub); }
7951.294Spgoyette388	COMPAT_50 MODULAR compat_50 RUMP	\
7961.274Spgoyette		{ int|sys|30|fstat(int fd, struct stat30 *sb); }
7971.294Spgoyette389	COMPAT_50 MODULAR compat_50 RUMP	\
7981.274Spgoyette		{ int|sys|30|lstat(const char *path, struct stat30 *ub); }
7991.226Spooka390	STD 	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
8001.190Smartin391	IGNORED		old posix_fadvise
8011.294Spgoyette392	COMPAT_30 MODULAR compat_30	\
8021.294Spgoyette		{ int|sys|30|fhstat(const struct compat_30_fhandle \
8031.219Schristos			    *fhp, struct stat30 *sb); }
8041.294Spgoyette393	COMPAT_50 MODULAR compat_30	\
8051.274Spgoyette		{ int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
8061.221Spooka394	STD	 RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
8071.221Spooka395	STD 	 RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
8081.156Smartin			    size_t *fh_size); }
8091.229Spooka396	STD 	 RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
8101.156Smartin			    int flags); }
8111.229Spooka397	STD 	 RUMP	{ int|sys|40|fhstatvfs1(const void *fhp, \
8121.156Smartin			    size_t fh_size, struct statvfs *buf, int flags); }
8131.294Spgoyette398	COMPAT_50 MODULAR compat_50 RUMP { int|sys|40|fhstat(const void *fhp, \
8141.219Schristos			    size_t fh_size, struct stat30 *sb); }
8151.169Srmind
8161.169Srmind; Asynchronous I/O system calls
8171.274Spgoyette399	STD MODULAR aio RUMP	\
8181.274Spgoyette		{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
8191.274Spgoyette400	STD MODULAR aio RUMP	\
8201.274Spgoyette		{ int|sys||aio_error(const struct aiocb *aiocbp); }
8211.274Spgoyette401	STD MODULAR aio RUMP	\
8221.274Spgoyette		{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
8231.274Spgoyette402	STD MODULAR aio RUMP	\
8241.274Spgoyette		{ int|sys||aio_read(struct aiocb *aiocbp); }
8251.274Spgoyette403	STD MODULAR aio RUMP	\
8261.274Spgoyette		{ int|sys||aio_return(struct aiocb *aiocbp); }
8271.274Spgoyette404	COMPAT_50 MODULAR compat	\
8281.274Spgoyette		{ int|sys||aio_suspend(const struct aiocb *const *list, \
8291.274Spgoyette		    int nent, const struct timespec50 *timeout); }
8301.274Spgoyette405	STD MODULAR aio RUMP	\
8311.274Spgoyette		{ int|sys||aio_write(struct aiocb *aiocbp); }
8321.274Spgoyette406	STD MODULAR aio RUMP	\
8331.274Spgoyette		{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
8341.274Spgoyette		    int nent, struct sigevent *sig); }
8351.171Sjoerg
8361.170Sdsl407	UNIMPL
8371.170Sdsl408	UNIMPL
8381.170Sdsl409	UNIMPL
8391.170Sdsl
8401.225Spooka410	STD  RUMP	{ int|sys|50|mount(const char *type, \
8411.170Sdsl			    const char *path, int flags, void *data, \
8421.170Sdsl			    size_t data_len); }
8431.221Spooka411	STD 		{ void *|sys||mremap(void *old_address, size_t old_size, \
8441.171Sjoerg			    void *new_address, size_t new_size, int flags); }
8451.184Srmind
8461.184Srmind; Processor-sets system calls
8471.221Spooka412	STD 		{ int|sys||pset_create(psetid_t *psid); }
8481.221Spooka413	STD 		{ int|sys||pset_destroy(psetid_t psid); }
8491.221Spooka414	STD 		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
8501.184Srmind			    psetid_t *opsid); }
8511.221Spooka415	STD 		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
8521.184Srmind			    id_t second_id, psetid_t psid, psetid_t *opsid); }
8531.245Spooka416	NOERR RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
8541.187Smartin			    off_t offset, off_t len, int advice); }
8551.226Spooka417	STD  RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
8561.219Schristos			    fd_set *ex, struct timeval *tv); }
8571.267Spooka418	STD  RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
8581.219Schristos			    void *tzp); }
8591.267Spooka419	STD  RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
8601.219Schristos			    const void *tzp); }
8611.221Spooka420	STD  RUMP	{ int|sys|50|utimes(const char *path, \
8621.219Schristos			    const struct timeval *tptr); }
8631.267Spooka421	STD  RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
8641.219Schristos			    struct timeval *olddelta); }
8651.274Spgoyette422	STD  MODULAR lfs { int|sys|50|lfs_segwait(fsid_t *fsidp, \
8661.219Schristos			    struct timeval *tv); }
8671.226Spooka423	STD  RUMP	{ int|sys|50|futimes(int fd, \
8681.219Schristos			    const struct timeval *tptr); }
8691.221Spooka424	STD  RUMP 	{ int|sys|50|lutimes(const char *path, \
8701.219Schristos			    const struct timeval *tptr); }
8711.267Spooka425	STD  RUMP	{ int|sys|50|setitimer(int which, \
8721.219Schristos			    const struct itimerval *itv, \
8731.219Schristos			    struct itimerval *oitv); }
8741.267Spooka426	STD  RUMP	{ int|sys|50|getitimer(int which, \
8751.219Schristos			    struct itimerval *itv); }
8761.267Spooka427	STD  RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
8771.219Schristos			    struct timespec *tp); }
8781.267Spooka428	STD  RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
8791.219Schristos			    const struct timespec *tp); }
8801.267Spooka429	STD  RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
8811.219Schristos			    struct timespec *tp); }
8821.267Spooka430	STD  RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
8831.219Schristos			    struct timespec *rmtp); }
8841.221Spooka431	STD 		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
8851.219Schristos			    siginfo_t *info, \
8861.219Schristos			    struct timespec *timeout); }
8871.274Spgoyette432	STD MODULAR mqueue	\
8881.274Spgoyette		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
8891.219Schristos			    const char *msg_ptr, size_t msg_len, \
8901.219Schristos			    unsigned msg_prio, \
8911.219Schristos			    const struct timespec *abs_timeout); }
8921.274Spgoyette433	STD MODULAR mqueue	\
8931.274Spgoyette		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
8941.219Schristos			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
8951.219Schristos			    const struct timespec *abs_timeout); }
8961.294Spgoyette434	COMPAT_60 MODULAR compat_60 \
8971.274Spgoyette		{ int|sys||_lwp_park(const struct timespec *ts, \
8981.219Schristos				lwpid_t unpark, const void *hint, \
8991.219Schristos				const void *unparkhint); }
9001.226Spooka435	STD	RUMP	{ int|sys|50|kevent(int fd, \
9011.219Schristos			    const struct kevent *changelist, size_t nchanges, \
9021.219Schristos			    struct kevent *eventlist, size_t nevents, \
9031.219Schristos			    const struct timespec *timeout); }
9041.226Spooka436	STD 	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
9051.219Schristos			    fd_set *ex, const struct timespec *ts, \
9061.219Schristos			    const sigset_t *mask); }
9071.226Spooka437	STD 	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
9081.219Schristos			    const struct timespec *ts, const sigset_t *mask); }
9091.274Spgoyette438	STD MODULAR aio RUMP { int|sys|50|aio_suspend( \
9101.219Schristos			    const struct aiocb *const *list, \
9111.219Schristos			    int nent, const struct timespec *timeout); }
9121.221Spooka439	STD  RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
9131.226Spooka440	STD  RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
9141.221Spooka441	STD  RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
9151.277Spgoyette442	STD MODULAR sysv_ipc { int|sys|50|__semctl(int semid, int semnum, \
9161.277Spgoyette			    int cmd, ... union __semun *arg); }
9171.277Spgoyette443	STD MODULAR sysv_ipc { int|sys|50|shmctl(int shmid, int cmd, \
9181.219Schristos			    struct shmid_ds *buf); }
9191.277Spgoyette444	STD MODULAR sysv_ipc { int|sys|50|msgctl(int msqid, int cmd, \
9201.219Schristos			    struct msqid_ds *buf); }
9211.221Spooka445	STD 		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
9221.267Spooka446	STD  RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
9231.219Schristos			    int flags, const struct itimerspec *value, \
9241.219Schristos			    struct itimerspec *ovalue); }
9251.267Spooka447	STD  RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
9261.219Schristos			    itimerspec *value); }
9271.219Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
9281.221Spooka448	STD		{ int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
9291.219Schristos#else
9301.219Schristos448	EXCL		___ntp_gettime50
9311.219Schristos#endif
9321.243Schristos449	STD 		{ int|sys|50|wait4(pid_t pid, int *status, \
9331.219Schristos				    int options, struct rusage *rusage); }
9341.221Spooka450	STD  RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
9351.219Schristos			    dev_t dev); }
9361.226Spooka451	STD  RUMP 	{ int|sys|50|fhstat(const void *fhp, \
9371.219Schristos			    size_t fh_size, struct stat *sb); }
9381.253Sdholland; 452 only ever appeared in 5.99.x and can be reused after netbsd-7
9391.253Sdholland452	OBSOL		5.99 quotactl
9401.249Schristos453	STD  RUMP	{ int|sys||pipe2(int *fildes, int flags); }
9411.249Schristos454	STD  RUMP	{ int|sys||dup3(int from, int to, int flags); }
9421.249Schristos455	STD  RUMP	{ int|sys||kqueue1(int flags); }
9431.249Schristos456	STD  RUMP	{ int|sys||paccept(int s, struct sockaddr *name, \
9441.249Schristos			    socklen_t *anamelen, const sigset_t *mask, \
9451.249Schristos			    int flags); }
9461.251Smanu457	STD  RUMP	{ int|sys||linkat(int fd1, const char *name1, \
9471.251Smanu			    int fd2, const char *name2, int flags); }
9481.251Smanu458	STD  RUMP	{ int|sys||renameat(int fromfd, const char *from, \
9491.251Smanu			    int tofd, const char *to); }
9501.251Smanu459	STD  RUMP	{ int|sys||mkfifoat(int fd, const char *path, \
9511.251Smanu			    mode_t mode); }
9521.251Smanu460	STD  RUMP	{ int|sys||mknodat(int fd, const char *path, \
9531.264Snjoly			    mode_t mode, int PAD, dev_t dev); }
9541.251Smanu461	STD  RUMP	{ int|sys||mkdirat(int fd, const char *path, \
9551.251Smanu			    mode_t mode); }
9561.251Smanu462	STD  RUMP	{ int|sys||faccessat(int fd, const char *path, \
9571.251Smanu			    int amode, int flag); }
9581.251Smanu463	STD  RUMP	{ int|sys||fchmodat(int fd, const char *path, \
9591.251Smanu			    mode_t mode, int flag); }
9601.251Smanu464	STD  RUMP	{ int|sys||fchownat(int fd, const char *path, \
9611.251Smanu			    uid_t owner, gid_t group, int flag); }
9621.263Spooka465	STD  		{ int|sys||fexecve(int fd, \
9631.251Smanu			    char * const *argp, char * const *envp); }
9641.251Smanu466	STD  RUMP	{ int|sys||fstatat(int fd, const char *path, \
9651.251Smanu			    struct stat *buf, int flag); }
9661.251Smanu467	STD  RUMP	{ int|sys||utimensat(int fd, const char *path, \
9671.251Smanu			    const struct timespec *tptr, int flag); }
9681.251Smanu468	STD  RUMP	{ int|sys||openat(int fd, const char *path, \
9691.251Smanu			    int oflags, ... mode_t mode); }
9701.272Schristos469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
9711.251Smanu			    char *buf, size_t bufsize); }
9721.251Smanu470	STD  RUMP	{ int|sys||symlinkat(const char *path1, int fd, \
9731.251Smanu			    const char *path2); }
9741.251Smanu471	STD  RUMP	{ int|sys||unlinkat(int fd, const char *path, \
9751.251Smanu			    int flag); }
9761.252Smanu472	STD  RUMP	{ int|sys||futimens(int fd, \
9771.252Smanu			    const struct timespec *tptr); }
9781.253Sdholland473	STD  RUMP	{ int|sys||__quotactl(const char *path, \
9791.253Sdholland			    struct quotactl_args *args); }
9801.254Smartin474	NOERR		{ int|sys||posix_spawn(pid_t *pid, const char *path, \
9811.260Schristos			    const struct posix_spawn_file_actions *file_actions, \
9821.260Schristos			    const struct posix_spawnattr *attrp, \
9831.260Schristos			    char *const *argv, char *const *envp); }
9841.263Spooka475	STD  RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
9851.260Schristos			    unsigned int vlen, unsigned int flags, \
9861.260Schristos			    struct timespec *timeout); }
9871.263Spooka476	STD  RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
9881.260Schristos			    unsigned int vlen, unsigned int flags); }
9891.279Schristos477	NOERR	RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
9901.261Schristos			    int flags, const struct timespec *rqtp, \
9911.261Schristos			    struct timespec *rmtp); }
9921.262Schristos478	STD 		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
9931.287Schristos			    struct timespec *ts, lwpid_t unpark, \
9941.262Schristos			    const void *hint, const void *unparkhint); }
9951.271Smartin479	NOERR	RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
9961.270Sdholland			    off_t len); }
9971.270Sdholland480	STD  RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
9981.270Sdholland			    off_t len); }
9991.282Schristos481	STD 		{ int|sys||wait6(idtype_t idtype, id_t id, \
10001.282Schristos			    int *status, int options, struct wrusage *wru, \
10011.282Schristos			    siginfo_t *info); }
10021.284Schristos482	STD		{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
10031.284Schristos			    id_t id, clockid_t *clock_id); }
1004