syscalls.master revision 1.112
11.112Spgoyette	$NetBSD: syscalls.master,v 1.112 2015/12/03 10:38:21 pgoyette Exp $
21.1Smrg
31.1Smrg;	from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
41.1Smrg;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
51.1Smrg
61.1Smrg; NetBSD system call name/number "master" file.
71.1Smrg; (See syscalls.conf to see what it is processed into.)
81.1Smrg;
91.1Smrg; Fields: number type [type-dependent ...]
101.1Smrg;	number	system call number, must be in order
111.68Smartin;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
121.1Smrg;		the compatibility options defined in syscalls.conf.
131.1Smrg;
141.1Smrg; types:
151.1Smrg;	STD	always included
161.1Smrg;	OBSOL	obsolete, not included in system
171.68Smartin;	IGNORED	syscall is a null op, but always succeeds
181.1Smrg;	UNIMPL	unimplemented, not included in system
191.8Schristos;	EXCL	implemented, but not included in system
201.1Smrg;	NODEF	included, but don't define the syscall number
211.1Smrg;	NOARGS	included, but don't define the syscall args structure
221.1Smrg;	INDIR	included, but don't define the syscall args structure,
231.1Smrg;		and allow it to be "really" varargs.
241.1Smrg;
251.1Smrg; The compat options are defined in the syscalls.conf file, and the
261.1Smrg; compat option name is prefixed to the syscall name.  Other than
271.1Smrg; that, they're like NODEF (for 'compat' options), or STD (for
281.1Smrg; 'libcompat' options).
291.1Smrg;
301.1Smrg; The type-dependent arguments are as follows:
311.1Smrg; For STD, NODEF, NOARGS, and compat syscalls:
321.1Smrg;	{ pseudo-proto } [alias]
331.1Smrg; For other syscalls:
341.1Smrg;	[comment]
351.1Smrg;
361.1Smrg; #ifdef's, etc. may be included, and are copied to the output files.
371.1Smrg; #include's are copied to the syscall names and switch definition files only.
381.1Smrg
391.20Smrg#if defined(_KERNEL_OPT)
401.1Smrg#include "opt_compat_netbsd.h"
411.3Seeh#include "opt_ntp.h"
421.5Schristos#include "opt_compat_43.h"
431.16Smycroft#endif
441.1Smrg
451.1Smrg#include <sys/param.h>
461.1Smrg#include <sys/systm.h>
471.1Smrg#include <sys/signal.h>
481.1Smrg#include <sys/mount.h>
491.1Smrg#include <sys/syscallargs.h>
501.1Smrg
511.7Smrg#include <compat/netbsd32/netbsd32.h>
521.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
531.16Smycroft
541.16Smycroft%%
551.1Smrg
561.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
571.1Smrg; are reserved for use in future Berkeley releases.
581.1Smrg; Additional system calls implemented in vendor and other
591.1Smrg; redistributions should be placed in the reserved range at the end
601.1Smrg; of the current calls.
611.1Smrg
621.77Spooka0	INDIR		{ int|netbsd32||syscall(int code, \
631.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
641.77Spooka1	STD		{ void|netbsd32||exit(int rval); }
651.77Spooka2	NOARGS		{ int|sys||fork(void); }
661.77Spooka3	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
671.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
681.77Spooka4	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
691.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
701.77Spooka5	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
711.75Schristos			    ... mode_t mode); }
721.77Spooka6	STD		{ int|netbsd32||close(int fd); }
731.77Spooka7	COMPAT_50	{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
741.75Schristos			    int options, netbsd32_rusage50p_t rusage); }
751.77Spooka8	COMPAT_43	{ int|netbsd32||ocreat(netbsd32_charp path, \
761.75Schristos			    mode_t mode); }
771.77Spooka9	STD		{ int|netbsd32||link(netbsd32_charp path, \
781.75Schristos			    netbsd32_charp link); }
791.77Spooka10	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
801.1Smrg11	OBSOL		execv
811.77Spooka12	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
821.77Spooka13	STD		{ int|netbsd32||fchdir(int fd); }
831.77Spooka14	COMPAT_50	{ int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
841.75Schristos			    uint32_t dev); }
851.77Spooka15	STD		{ int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
861.77Spooka16	STD		{ int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
871.75Schristos			    gid_t gid); }
881.77Spooka17	STD		{ int|netbsd32||break(netbsd32_charp nsize); }
891.77Spooka18	COMPAT_20	{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
901.75Schristos			    netbsd32_long bufsize, int flags); }
911.77Spooka19	COMPAT_43	{ netbsd32_long|netbsd32||olseek(int fd, \
921.75Schristos			    netbsd32_long offset, int whence); }
931.77Spooka20	NOARGS 		{ pid_t|sys||getpid(void); }
941.77Spooka21	STD		{ int|netbsd32||mount(netbsd32_charp type, \
951.75Schristos			    netbsd32_charp path, int flags, \
961.75Schristos			    netbsd32_voidp data); }
971.77Spooka22	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
981.75Schristos			    int flags); }
991.77Spooka23	STD		{ int|netbsd32||setuid(uid_t uid); }
1001.77Spooka24	NOARGS 		{ uid_t|sys||getuid(void); }
1011.77Spooka25	NOARGS		{ uid_t|sys||geteuid(void); }
1021.77Spooka26	STD		{ int|netbsd32||ptrace(int req, pid_t pid, \
1031.75Schristos			    netbsd32_voidp addr, int data); }
1041.77Spooka27	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
1051.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1061.77Spooka28	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
1071.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1081.77Spooka29	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
1091.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
1101.75Schristos			    int flags, netbsd32_sockaddrp_t from, \
1111.75Schristos			    netbsd32_intp fromlenaddr); }
1121.77Spooka30	STD		{ int|netbsd32||accept(int s, \
1131.75Schristos			    netbsd32_sockaddrp_t name, \
1141.75Schristos			    netbsd32_intp anamelen); }
1151.77Spooka31	STD		{ int|netbsd32||getpeername(int fdes, \
1161.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1171.77Spooka32	STD		{ int|netbsd32||getsockname(int fdes, \
1181.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1191.77Spooka33	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
1201.77Spooka34	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
1211.75Schristos			    netbsd32_u_long flags); }
1221.77Spooka35	STD		{ int|netbsd32||fchflags(int fd, \
1231.75Schristos			    netbsd32_u_long flags); }
1241.77Spooka36	NOARGS		{ void|sys||sync(void); }
1251.77Spooka37	STD		{ int|netbsd32||kill(int pid, int signum); }
1261.77Spooka38	COMPAT_43	{ int|netbsd32||stat43(netbsd32_charp path, \
1271.75Schristos			    netbsd32_stat43p_t ub); }
1281.77Spooka39	NOARGS 		{ pid_t|sys||getppid(void); }
1291.77Spooka40	COMPAT_43	{ int|netbsd32||lstat43(netbsd32_charp path, \
1301.75Schristos			    netbsd32_stat43p_t ub); }
1311.77Spooka41	STD		{ int|netbsd32||dup(int fd); }
1321.77Spooka42	NOARGS		{ int|sys||pipe(void); }
1331.77Spooka43	NOARGS 		{ gid_t|sys||getegid(void); }
1341.77Spooka44	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
1351.75Schristos			    netbsd32_size_t size, netbsd32_u_long offset, \
1361.75Schristos			    u_int scale); }
1371.77Spooka45	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
1381.75Schristos			    int facs, int pid); }
1391.77Spooka46	STD		{ int|netbsd32||sigaction(int signum, \
1401.75Schristos			    netbsd32_sigactionp_t nsa, \
1411.75Schristos			    netbsd32_sigactionp_t osa); }
1421.77Spooka47	NOARGS 		{ gid_t|sys||getgid(void); }
1431.77Spooka48	COMPAT_13	{ int|netbsd32||sigprocmask(int how, \
1441.3Seeh			    int mask); } sigprocmask13
1451.77Spooka49	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
1461.75Schristos			    u_int namelen); }
1471.77Spooka50	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
1481.77Spooka51	STD		{ int|netbsd32||acct(netbsd32_charp path); }
1491.77Spooka52	COMPAT_13 	{ int|sys||sigpending(void); } sigpending13
1501.77Spooka53	COMPAT_13	{ int|netbsd32||sigaltstack13( \
1511.75Schristos			    netbsd32_sigaltstack13p_t nss, \
1521.75Schristos			    netbsd32_sigaltstack13p_t oss); }
1531.77Spooka54	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
1541.75Schristos			    ... netbsd32_voidp data); }
1551.77Spooka55	COMPAT_12	{ int|netbsd32||reboot(int opt); }
1561.77Spooka56	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
1571.77Spooka57	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
1581.75Schristos			    netbsd32_charp link); }
1591.77Spooka58	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
1601.75Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
1611.77Spooka59	STD		{ int|netbsd32||execve(netbsd32_charp path, \
1621.75Schristos			    netbsd32_charpp argp, netbsd32_charpp envp); }
1631.77Spooka60	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
1641.77Spooka61	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
1651.77Spooka62	COMPAT_43	{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
1661.77Spooka63	COMPAT_43	{ int|netbsd32||ogetkerninfo(int op, \
1671.75Schristos			    netbsd32_charp where, netbsd32_intp size, \
1681.75Schristos			    int arg); }
1691.77Spooka64	COMPAT_43	{ int|sys||getpagesize(void); } ogetpagesize
1701.77Spooka65	COMPAT_12	{ int|netbsd32||msync(netbsd32_voidp addr, \
1711.75Schristos			    netbsd32_size_t len); }
1721.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1731.77Spooka66	NOARGS		{ int|sys||vfork(void); }
1741.1Smrg67	OBSOL		vread
1751.1Smrg68	OBSOL		vwrite
1761.77Spooka69	STD		{ int|netbsd32||sbrk(netbsd32_intptr_t incr); }
1771.77Spooka70	STD		{ int|netbsd32||sstk(int incr); }
1781.77Spooka71	COMPAT_43	{ int|netbsd32||ommap(netbsd32_voidp addr, \
1791.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
1801.75Schristos			    netbsd32_long pos); }
1811.77Spooka72	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
1821.77Spooka73	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
1831.75Schristos			    netbsd32_size_t len); }
1841.77Spooka74	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
1851.75Schristos			    netbsd32_size_t len, int prot); }
1861.77Spooka75	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
1871.75Schristos			    netbsd32_size_t len, int behav); }
1881.1Smrg76	OBSOL		vhangup
1891.1Smrg77	OBSOL		vlimit
1901.77Spooka78	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
1911.75Schristos			    netbsd32_size_t len, netbsd32_charp vec); }
1921.77Spooka79	STD		{ int|netbsd32||getgroups(int gidsetsize, \
1931.75Schristos			    netbsd32_gid_tp gidset); }
1941.77Spooka80	STD		{ int|netbsd32||setgroups(int gidsetsize, \
1951.75Schristos			    netbsd32_gid_tp gidset); }
1961.77Spooka81	NOARGS 		{ int|sys||getpgrp(void); }
1971.77Spooka82	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
1981.77Spooka83	COMPAT_50	{ int|netbsd32||setitimer(int which, \
1991.75Schristos			    netbsd32_itimerval50p_t itv, \
2001.75Schristos			    netbsd32_itimerval50p_t oitv); }
2011.77Spooka84	COMPAT_43	{ int|sys||wait(void); } owait
2021.77Spooka85	COMPAT_12	{ int|netbsd32||oswapon(netbsd32_charp name); }
2031.77Spooka86	COMPAT_50	{ int|netbsd32||getitimer(int which, \
2041.75Schristos			    netbsd32_itimerval50p_t itv); }
2051.77Spooka87	COMPAT_43	{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
2061.75Schristos			    u_int len); }
2071.77Spooka88	COMPAT_43	{ int|netbsd32||osethostname(netbsd32_charp hostname, \
2081.75Schristos			    u_int len); }
2091.77Spooka89	COMPAT_43	{ int|sys||getdtablesize(void); } ogetdtablesize
2101.77Spooka90	STD		{ int|netbsd32||dup2(int from, int to); }
2111.1Smrg91	UNIMPL		getdopt
2121.77Spooka92	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
2131.75Schristos			    ... netbsd32_voidp arg); }
2141.77Spooka93	COMPAT_50	{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
2151.75Schristos			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
2161.75Schristos			    netbsd32_timeval50p_t tv); }
2171.1Smrg94	UNIMPL		setdopt
2181.77Spooka95	STD		{ int|netbsd32||fsync(int fd); }
2191.77Spooka96	STD		{ int|netbsd32||setpriority(int which, int who, \
2201.75Schristos			    int prio); }
2211.77Spooka97	COMPAT_30	{ int|netbsd32||socket(int domain, int type, \
2221.75Schristos			    int protocol); }
2231.77Spooka98	STD		{ int|netbsd32||connect(int s, \
2241.75Schristos			    netbsd32_sockaddrp_t name, int namelen); }
2251.77Spooka99	COMPAT_43	{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
2261.75Schristos			    netbsd32_intp anamelen); }
2271.77Spooka100	STD		{ int|netbsd32||getpriority(int which, int who); }
2281.77Spooka101	COMPAT_43	{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
2291.75Schristos			    int len, int flags); }
2301.77Spooka102	COMPAT_43	{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
2311.75Schristos			    int len, int flags); }
2321.77Spooka103	COMPAT_13	{ int|netbsd32||sigreturn( \
2331.75Schristos			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
2341.77Spooka104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
2351.75Schristos			    int namelen); }
2361.77Spooka105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
2371.75Schristos			    netbsd32_voidp val, int valsize); }
2381.77Spooka106	STD		{ int|netbsd32||listen(int s, int backlog); }
2391.1Smrg107	OBSOL		vtimes
2401.77Spooka108	COMPAT_43	{ int|netbsd32||osigvec(int signum, \
2411.75Schristos			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
2421.77Spooka109	COMPAT_43	{ int|netbsd32||sigblock(int mask); }
2431.77Spooka110	COMPAT_43	{ int|netbsd32||sigsetmask(int mask); }
2441.77Spooka111	COMPAT_13	{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
2451.77Spooka112	COMPAT_43	{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
2461.75Schristos			    netbsd32_sigstackp_t oss); }
2471.77Spooka113	COMPAT_43	{ int|netbsd32||orecvmsg(int s, \
2481.75Schristos			    netbsd32_omsghdrp_t msg, int flags); }
2491.77Spooka114	COMPAT_43	{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
2501.75Schristos			    int flags); }
2511.1Smrg115	OBSOL		vtrace
2521.77Spooka116	COMPAT_50	{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
2531.75Schristos			    netbsd32_timezonep_t tzp); }
2541.77Spooka117	COMPAT_50	{ int|netbsd32||getrusage(int who, \
2551.75Schristos			    netbsd32_rusage50p_t rusage); }
2561.77Spooka118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
2571.75Schristos			    netbsd32_voidp val, netbsd32_intp avalsize); }
2581.1Smrg119	OBSOL		resuba
2591.77Spooka120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
2601.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
2611.77Spooka121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
2621.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
2631.77Spooka122	COMPAT_50	{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
2641.75Schristos			    netbsd32_timezonep_t tzp); }
2651.77Spooka123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
2661.77Spooka124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
2671.77Spooka125	COMPAT_43	{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
2681.75Schristos			    netbsd32_size_t len, int flags, \
2691.75Schristos			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
2701.77Spooka126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
2711.77Spooka127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
2721.77Spooka128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
2731.75Schristos			    netbsd32_charp to); }
2741.77Spooka129	COMPAT_43	{ int|netbsd32||otruncate(netbsd32_charp path, \
2751.75Schristos			    netbsd32_long length); }
2761.77Spooka130	COMPAT_43	{ int|netbsd32||oftruncate(int fd, \
2771.75Schristos			    netbsd32_long length); }
2781.77Spooka131	STD		{ int|netbsd32||flock(int fd, int how); }
2791.77Spooka132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
2801.75Schristos			    mode_t mode); }
2811.77Spooka133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
2821.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
2831.75Schristos			    int flags, netbsd32_sockaddrp_t to, int tolen); }
2841.77Spooka134	STD		{ int|netbsd32||shutdown(int s, int how); }
2851.77Spooka135	STD		{ int|netbsd32||socketpair(int domain, int type, \
2861.75Schristos			    int protocol, netbsd32_intp rsv); }
2871.77Spooka136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
2881.75Schristos			    mode_t mode); }
2891.77Spooka137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
2901.77Spooka138	COMPAT_50	{ int|netbsd32||utimes(netbsd32_charp path, \
2911.75Schristos			    netbsd32_timeval50p_t tptr); }
2921.1Smrg139	OBSOL		4.2 sigreturn
2931.77Spooka140	COMPAT_50	{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
2941.75Schristos			    netbsd32_timeval50p_t olddelta); }
2951.77Spooka141	COMPAT_43	{ int|netbsd32||ogetpeername(int fdes, \
2961.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
2971.77Spooka142	COMPAT_43	{ int32_t|sys||gethostid(void); } ogethostid
2981.77Spooka143	COMPAT_43	{ int|netbsd32||sethostid(int32_t hostid); }
2991.77Spooka144	COMPAT_43	{ int|netbsd32||ogetrlimit(int which, \
3001.75Schristos			    netbsd32_orlimitp_t rlp); }
3011.77Spooka145	COMPAT_43	{ int|netbsd32||osetrlimit(int which, \
3021.75Schristos			    netbsd32_orlimitp_t rlp); }
3031.77Spooka146	COMPAT_43	{ int|netbsd32||killpg(int pgid, int signum); }
3041.77Spooka147	NOARGS		{ int|sys||setsid(void); }
3051.85Sbouyer148	COMPAT_50	{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
3061.75Schristos			    int uid, netbsd32_voidp arg); }
3071.77Spooka149	COMPAT_43	{ int|sys||quota(void); } oquota
3081.77Spooka150	COMPAT_43	{ int|netbsd32||ogetsockname(int fdec, \
3091.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3101.1Smrg
3111.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
3121.1Smrg; system calls.  (This includes various calls added for compatibity
3131.1Smrg; with other Unix variants.)
3141.1Smrg; Some of these calls are now supported by BSD...
3151.1Smrg151	UNIMPL
3161.1Smrg152	UNIMPL
3171.1Smrg153	UNIMPL
3181.1Smrg154	UNIMPL
3191.110Spgoyette155	STD MODULAR compat_netbsd32_nfssrv	\
3201.110Spgoyette			{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
3211.77Spooka156	COMPAT_43	{ int|netbsd32||ogetdirentries(int fd, \
3221.75Schristos			    netbsd32_charp buf, u_int count, \
3231.75Schristos			    netbsd32_longp basep); }
3241.77Spooka157	COMPAT_20	{ int|netbsd32||statfs(netbsd32_charp path, \
3251.75Schristos			    netbsd32_statfsp_t buf); }
3261.77Spooka158	COMPAT_20	{ int|netbsd32||fstatfs(int fd, \
3271.75Schristos			    netbsd32_statfsp_t buf); }
3281.1Smrg159	UNIMPL
3291.1Smrg160	UNIMPL
3301.77Spooka161	COMPAT_30	{ int|netbsd32||getfh(netbsd32_charp fname, \
3311.75Schristos			    netbsd32_compat_30_fhandlep_t fhp); }
3321.77Spooka162	COMPAT_09	{ int|netbsd32||ogetdomainname( \
3331.75Schristos			    netbsd32_charp domainname, int len); }
3341.77Spooka163	COMPAT_09	{ int|netbsd32||osetdomainname( \
3351.75Schristos			    netbsd32_charp domainname, int len); }
3361.77Spooka164	COMPAT_09	{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
3371.77Spooka165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
3381.1Smrg166	UNIMPL
3391.1Smrg167	UNIMPL
3401.1Smrg168	UNIMPL
3411.112Spgoyette169	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
3421.112Spgoyette			{ int|netbsd32||semsys(int which, int a2, int a3, \
3431.75Schristos			    int a4, int a5); } osemsys
3441.112Spgoyette170	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
3451.112Spgoyette			{ int|netbsd32||msgsys(int which, int a2, int a3, \
3461.75Schristos			    int a4, int a5, int a6); } omsgsys
3471.112Spgoyette171	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
3481.112Spgoyette			{ int|netbsd32||shmsys(int which, int a2, int a3, \
3491.75Schristos			    int a4); } oshmsys
3501.1Smrg172	UNIMPL
3511.77Spooka173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
3521.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
3531.99Snjoly			    int PAD, netbsd32_off_t offset); }
3541.77Spooka174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
3551.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
3561.99Snjoly			    int PAD, netbsd32_off_t offset); }
3571.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
3581.77Spooka175	COMPAT_30	{ int|netbsd32||ntp_gettime( \
3591.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
3601.77Spooka176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
3611.78Schristos#else
3621.78Schristos175	EXCL		ntp_gettime
3631.78Schristos176	EXCL		ntp_adjtime
3641.78Schristos#endif
3651.1Smrg177	UNIMPL
3661.1Smrg178	UNIMPL
3671.1Smrg179	UNIMPL
3681.1Smrg180	UNIMPL
3691.1Smrg
3701.1Smrg; Syscalls 180-199 are used by/reserved for BSD
3711.77Spooka181	STD		{ int|netbsd32||setgid(gid_t gid); }
3721.77Spooka182	STD		{ int|netbsd32||setegid(gid_t egid); }
3731.77Spooka183	STD		{ int|netbsd32||seteuid(uid_t euid); }
3741.75Schristos184	EXCL		netbsd32_lfs_bmapv
3751.75Schristos185	EXCL		netbsd32_lfs_markv
3761.75Schristos186	EXCL		netbsd32_lfs_segclean
3771.75Schristos187	EXCL		netbsd32_lfs_segwait
3781.77Spooka188	COMPAT_12	{ int|netbsd32||stat12(netbsd32_charp path, \
3791.75Schristos			    netbsd32_stat12p_t ub); }
3801.77Spooka189	COMPAT_12	{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
3811.77Spooka190	COMPAT_12	{ int|netbsd32||lstat12(netbsd32_charp path, \
3821.75Schristos			    netbsd32_stat12p_t ub); }
3831.77Spooka191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
3841.75Schristos			    int name); }
3851.77Spooka192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
3861.1Smrg193	UNIMPL
3871.77Spooka194	STD		{ int|netbsd32||getrlimit(int which, \
3881.75Schristos			    netbsd32_rlimitp_t rlp); }
3891.77Spooka195	STD		{ int|netbsd32||setrlimit(int which, \
3901.75Schristos			    netbsd32_rlimitp_t rlp); }
3911.77Spooka196	COMPAT_12	{ int|netbsd32||getdirentries(int fd, \
3921.75Schristos			    netbsd32_charp buf, u_int count, \
3931.75Schristos			    netbsd32_longp basep); }
3941.77Spooka197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
3951.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
3961.99Snjoly			    netbsd32_long PAD, netbsd32_off_t pos); }
3971.77Spooka198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
3981.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
3991.99Snjoly199	STD		{ netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \
4001.99Snjoly			    netbsd32_off_t offset, int whence); }
4011.80Spooka200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
4021.99Snjoly			    netbsd32_off_t length); }
4031.80Spooka201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
4041.99Snjoly			    netbsd32_off_t length); }
4051.77Spooka202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
4061.101Sjoerg			    u_int namelen, netbsd32_voidp oldv, \
4071.101Sjoerg			    netbsd32_size_tp oldlenp, netbsd32_voidp newv, \
4081.75Schristos			    netbsd32_size_t newlen); }
4091.77Spooka203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
4101.75Schristos			    netbsd32_size_t len); }
4111.77Spooka204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
4121.75Schristos			    netbsd32_size_t len); }
4131.77Spooka205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
4141.77Spooka206	COMPAT_50	{ int|netbsd32||futimes(int fd, \
4151.75Schristos			    netbsd32_timeval50p_t tptr); }
4161.77Spooka207	STD		{ int|netbsd32||getpgid(pid_t pid); }
4171.77Spooka208	STD		{ int|netbsd32||reboot(int opt, \
4181.75Schristos			    netbsd32_charp bootstr); }
4191.77Spooka209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
4201.75Schristos			    u_int nfds, int timeout); }
4211.106Smartin210	UNIMPL		{ int|netbsd32||afssys(long id, long a1, long a2, \
4221.106Smartin			    long a3, long a4, long a5, long a6); }
4231.71Sad211	UNIMPL
4241.71Sad212	UNIMPL
4251.71Sad213	UNIMPL
4261.71Sad214	UNIMPL
4271.71Sad215	UNIMPL
4281.71Sad216	UNIMPL
4291.71Sad217	UNIMPL
4301.71Sad218	UNIMPL
4311.71Sad219	UNIMPL
4321.1Smrg; System calls 220-300 are reserved for use by NetBSD
4331.112Spgoyette220	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
4341.112Spgoyette			{ int|netbsd32||__semctl(int semid, int semnum, \
4351.75Schristos			    int cmd, netbsd32_semunu_t arg); }
4361.112Spgoyette221	STD MODULAR compat_netbsd32_sysvipc	\
4371.112Spgoyette			{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
4381.75Schristos			    int semflg); }
4391.112Spgoyette222	STD MODULAR compat_netbsd32_sysvipc	\
4401.112Spgoyette			{ int|netbsd32||semop(int semid, \
4411.75Schristos			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
4421.112Spgoyette223	STD MODULAR compat_netbsd32_sysvipc	\
4431.112Spgoyette			{ int|netbsd32||semconfig(int flag); }
4441.112Spgoyette224	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
4451.112Spgoyette			{ int|netbsd32||msgctl(int msqid, int cmd, \
4461.75Schristos			    netbsd32_msqid_ds14p_t buf); }
4471.112Spgoyette225	STD MODULAR compat_netbsd32_sysvipc	\
4481.112Spgoyette			{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
4491.112Spgoyette226	STD MODULAR compat_netbsd32_sysvipc	\
4501.112Spgoyette			{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
4511.75Schristos			    netbsd32_size_t msgsz, int msgflg); }
4521.112Spgoyette227	STD MODULAR compat_netbsd32_sysvipc	\
4531.112Spgoyette			{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
4541.75Schristos			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
4551.75Schristos			    netbsd32_long msgtyp, int msgflg); }
4561.112Spgoyette228	STD MODULAR compat_netbsd32_sysvipc	\
4571.112Spgoyette			{ netbsd32_voidp|netbsd32||shmat(int shmid, \
4581.75Schristos			    netbsd32_voidp shmaddr, int shmflg); }
4591.112Spgoyette229	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
4601.112Spgoyette			{ int|netbsd32||shmctl(int shmid, int cmd, \
4611.75Schristos			    netbsd32_shmid_dsp_t buf); }
4621.112Spgoyette230	STD MODULAR compat_netbsd32_sysvipc	\
4631.112Spgoyette			{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
4641.112Spgoyette231	STD MODULAR compat_netbsd32_sysvipc	\
4651.112Spgoyette			{ int|netbsd32||shmget(netbsd32_key_t key, \
4661.75Schristos			    netbsd32_size_t size, int shmflg); }
4671.77Spooka232	COMPAT_50	{ int|netbsd32||clock_gettime( \
4681.75Schristos			    netbsd32_clockid_t clock_id, \
4691.75Schristos			    netbsd32_timespec50p_t tp); }
4701.77Spooka233	COMPAT_50	{ int|netbsd32||clock_settime( \
4711.75Schristos			    netbsd32_clockid_t clock_id, \
4721.75Schristos			    netbsd32_timespec50p_t tp); }
4731.77Spooka234	COMPAT_50	{ int|netbsd32||clock_getres( \
4741.75Schristos			    netbsd32_clockid_t clock_id, \
4751.75Schristos			    netbsd32_timespec50p_t tp); }
4761.77Spooka235	STD		{ int|netbsd32||timer_create( \
4771.75Schristos			    netbsd32_clockid_t clock_id, \
4781.75Schristos			    netbsd32_sigeventp_t evp, \
4791.36Scube			    netbsd32_timerp_t timerid); }
4801.77Spooka236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
4811.77Spooka237	COMPAT_50	{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
4821.75Schristos			    int flags, \
4831.75Schristos			    netbsd32_itimerspec50p_t value, \
4841.75Schristos			    netbsd32_itimerspec50p_t ovalue); }
4851.77Spooka238	COMPAT_50	{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
4861.75Schristos			    netbsd32_itimerspec50p_t value); }
4871.77Spooka239	STD		{ int|netbsd32||timer_getoverrun( \
4881.75Schristos			    netbsd32_timer_t timerid); }
4891.1Smrg;
4901.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
4911.1Smrg;
4921.77Spooka240	COMPAT_50	{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
4931.75Schristos			    netbsd32_timespec50p_t rmtp); }
4941.77Spooka241	STD		{ int|netbsd32||fdatasync(int fd); }
4951.77Spooka242	STD		{ int|netbsd32||mlockall(int flags); }
4961.77Spooka243	NOARGS		{ int|sys||munlockall(void); }
4971.77Spooka244	COMPAT_50	{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
4981.37Scube			    netbsd32_siginfop_t info, \
4991.75Schristos			    netbsd32_timespec50p_t timeout); }
5001.104Smartin245	STD		{ int|netbsd32||sigqueueinfo(pid_t pid, \
5011.104Smartin			    const netbsd32_siginfop_t info); }
5021.104Smartin246	STD		{ int|netbsd32||modctl(int cmd, netbsd32_voidp arg); }
5031.77Spooka247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
5041.75Schristos			    netbsd32_semidp_t idp); }
5051.77Spooka248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
5061.75Schristos			    int oflag, mode_t mode, unsigned int value, \
5071.75Schristos			    netbsd32_semidp_t idp); }
5081.77Spooka249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
5091.77Spooka250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
5101.77Spooka251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
5111.77Spooka252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
5121.77Spooka253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
5131.77Spooka254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
5141.42Scube			    netbsd32_intp value); }
5151.77Spooka255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
5161.93Sjoerg256	STD		{ int|netbsd32||_ksem_timedwait(intptr_t id, \
5171.93Sjoerg				const netbsd32_timespecp_t abstime); }
5181.111Spgoyette257	STD MODULAR compat_netbsd32_mqueue	\
5191.111Spgoyette			{ mqd_t|netbsd32||mq_open(const netbsd32_charp name, \
5201.104Smartin			    int oflag, mode_t mode, \
5211.104Smartin			    netbsd32_mq_attrp_t attr); }
5221.111Spgoyette258	STD MODULAR compat_netbsd32_mqueue	\
5231.111Spgoyette	 		{ int|netbsd32||mq_close(mqd_t mqdes); }
5241.111Spgoyette259	STD MODULAR compat_netbsd32_mqueue	\
5251.111Spgoyette	 		{ int|netbsd32||mq_unlink(const netbsd32_charp name); }
5261.111Spgoyette260	STD MODULAR compat_netbsd32_mqueue	\
5271.111Spgoyette			{ int|netbsd32||mq_getattr(mqd_t mqdes, \
5281.104Smartin			    netbsd32_mq_attrp_t mqstat); }
5291.111Spgoyette261	STD MODULAR compat_netbsd32_mqueue	\
5301.111Spgoyette	 		{ int|netbsd32||mq_setattr(mqd_t mqdes, \
5311.104Smartin			    const netbsd32_mq_attrp_t mqstat, \
5321.104Smartin			    netbsd32_mq_attrp_t omqstat); }
5331.111Spgoyette262	STD MODULAR compat_netbsd32_mqueue	\
5341.111Spgoyette			{ int|netbsd32||mq_notify(mqd_t mqdes, \
5351.104Smartin			    const netbsd32_sigeventp_t notification); }
5361.111Spgoyette263	STD MODULAR compat_netbsd32_mqueue	\
5371.111Spgoyette			{ int|netbsd32||mq_send(mqd_t mqdes, \
5381.104Smartin			    const netbsd32_charp msg_ptr, \
5391.104Smartin			    netbsd32_size_t msg_len, unsigned msg_prio); }
5401.111Spgoyette264	STD MODULAR compat_netbsd32_mqueue	\
5411.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \
5421.104Smartin			    netbsd32_charp msg_ptr, \
5431.104Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio); }
5441.111Spgoyette265	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
5451.111Spgoyette			{ int|netbsd32||mq_timedsend(mqd_t mqdes, \
5461.104Smartin			    const netbsd32_charp msg_ptr, \
5471.104Smartin			    netbsd32_size_t msg_len, \
5481.104Smartin			    unsigned msg_prio, \
5491.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
5501.111Spgoyette266	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
5511.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_timedreceive( \
5521.104Smartin			    mqd_t mqdes, \
5531.104Smartin			    netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
5541.104Smartin			    netbsd32_uintp msg_prio, \
5551.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
5561.1Smrg267	UNIMPL
5571.1Smrg268	UNIMPL
5581.1Smrg269	UNIMPL
5591.77Spooka270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
5601.75Schristos			    netbsd32_charp to); }
5611.77Spooka271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
5621.75Schristos			    int misc); }
5631.77Spooka272	COMPAT_30	{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
5641.75Schristos			    netbsd32_size_t count); }
5651.77Spooka273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
5661.75Schristos			    netbsd32_size_t len, int inherit); }
5671.77Spooka274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
5681.75Schristos			    mode_t mode); }
5691.77Spooka275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
5701.75Schristos			    gid_t gid); }
5711.77Spooka276	COMPAT_50	{ int|netbsd32||lutimes(netbsd32_charp path, \
5721.75Schristos			    netbsd32_timeval50p_t tptr); }
5731.77Spooka277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
5741.75Schristos			    netbsd32_size_t len, int flags); }
5751.77Spooka278	COMPAT_30	{ int|netbsd32|13|stat(netbsd32_charp path, \
5761.75Schristos			    netbsd32_stat13p_t ub); }
5771.77Spooka279	COMPAT_30	{ int|netbsd32|13|fstat(int fd, \
5781.75Schristos			    netbsd32_stat13p_t sb); }
5791.77Spooka280	COMPAT_30	{ int|netbsd32|13|lstat(netbsd32_charp path, \
5801.75Schristos			    netbsd32_stat13p_t ub); }
5811.77Spooka281	STD		{ int|netbsd32|14|sigaltstack(\
5821.75Schristos			    netbsd32_sigaltstackp_t nss, \
5831.75Schristos			    netbsd32_sigaltstackp_t oss); }
5841.77Spooka282	NOARGS		{ int|sys|14|vfork(void); }
5851.77Spooka283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
5861.75Schristos			    uid_t uid, gid_t gid); }
5871.77Spooka284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
5881.75Schristos			    gid_t gid); }
5891.77Spooka285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
5901.75Schristos			    uid_t uid, gid_t gid); }
5911.77Spooka286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
5921.77Spooka287	STD		{ int|netbsd32||__clone(int flags, \
5931.75Schristos			    netbsd32_voidp stack); }
5941.77Spooka288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
5951.75Schristos			    int pid); }
5961.77Spooka289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
5971.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
5981.99Snjoly			    netbsd32_off_t offset); }
5991.77Spooka290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
6001.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6011.99Snjoly			    netbsd32_off_t offset); }
6021.77Spooka291	STD		{ int|netbsd32|14|sigaction(int signum, \
6031.64Sdsl			    netbsd32_sigactionp_t nsa, \
6041.11Seeh			    netbsd32_sigactionp_t osa); }
6051.77Spooka292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
6061.77Spooka293	STD		{ int|netbsd32|14|sigprocmask(int how, \
6071.64Sdsl			    netbsd32_sigsetp_t set, \
6081.11Seeh			    netbsd32_sigsetp_t oset); }
6091.77Spooka294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
6101.77Spooka295	COMPAT_16	{ int|netbsd32|14|sigreturn( \
6111.75Schristos			    netbsd32_sigcontextp_t sigcntxp); }
6121.77Spooka296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
6131.75Schristos			    netbsd32_size_t length); }
6141.77Spooka297	STD		{ int|netbsd32||fchroot(int fd); }
6151.77Spooka298	COMPAT_30	{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
6161.11Seeh			   int flags); }
6171.77Spooka299	COMPAT_30	{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
6181.45Scube			    netbsd32_stat13p_t sb); }
6191.77Spooka300	COMPAT_20	{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
6201.75Schristos			    netbsd32_stat50p_t buf); }
6211.112Spgoyette301	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
6221.112Spgoyette			{ int|netbsd32|14|semctl(int semid, int semnum, \
6231.75Schristos			    int cmd, ... netbsd32_semun50p_t arg); }
6241.112Spgoyette302	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
6251.112Spgoyette			{ int|netbsd32|13|msgctl(int msqid, int cmd, \
6261.75Schristos			    netbsd32_msqid_ds50p_t buf); }
6271.112Spgoyette303	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
6281.112Spgoyette			{ int|netbsd32|13|shmctl(int shmid, int cmd, \
6291.75Schristos			    netbsd32_shmid_ds50p_t buf); }
6301.77Spooka304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
6311.75Schristos			    netbsd32_u_long flags); }
6321.77Spooka305	NOARGS 		{ int|sys||issetugid(void); }
6331.77Spooka306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
6341.75Schristos			    netbsd32_voidp addr, netbsd32_size_t len); }
6351.77Spooka307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
6361.100Snjoly308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp); }
6371.77Spooka309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
6381.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
6391.77Spooka310	NOARGS		{ int|sys||_lwp_exit(void); }
6401.77Spooka311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
6411.77Spooka312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
6421.44Scube			    netbsd32_lwpidp departed); }
6431.77Spooka313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
6441.77Spooka314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
6451.77Spooka315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
6461.77Spooka316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
6471.77Spooka317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
6481.77Spooka318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
6491.77Spooka319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
6501.77Spooka320	COMPAT_50	{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
6511.75Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
6521.75Schristos			    netbsd32_voidp unparkhint); }
6531.77Spooka321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
6541.75Schristos			    netbsd32_voidp hint); }
6551.77Spooka322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
6561.75Schristos			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
6571.75Schristos			    netbsd32_voidp hint); }
6581.77Spooka323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
6591.64Sdsl				netbsd32_charp name); }
6601.77Spooka324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
6611.63Sad				netbsd32_charp name, netbsd32_size_t len); }
6621.77Spooka325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
6631.63Sad				netbsd32_pointer_t address); }
6641.18Smrg326	UNIMPL
6651.18Smrg327	UNIMPL
6661.18Smrg328	UNIMPL
6671.18Smrg329	UNIMPL
6681.92Srmind330	OBSOL		netbsd32_sa_register
6691.92Srmind331	OBSOL		netbsd32_sa_stacks
6701.92Srmind332	OBSOL		sa_enable
6711.92Srmind333	OBSOL		netbsd32_sa_setconcurrency
6721.92Srmind334	OBSOL		sa_yield
6731.92Srmind335	OBSOL		netbsd32_sa_preempt
6741.44Scube336	OBSOL		sys_sa_unblockyield
6751.18Smrg337	UNIMPL
6761.18Smrg338	UNIMPL
6771.18Smrg339	UNIMPL
6781.77Spooka340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
6791.64Sdsl			    netbsd32_sigactionp_t nsa, \
6801.22Sscw			    netbsd32_sigactionp_t osa, \
6811.22Sscw			    netbsd32_voidp tramp, int vers); }
6821.106Smartin341	UNIMPL		{ int|netbsd32||pmc_get_info(int ctr, int op, void *args); }
6831.106Smartin342	UNIMPL		{ int|netbsd32||pmc_control(int ctr, int op, void *args); }
6841.77Spooka343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
6851.75Schristos			    netbsd32_size_t len, int op); }
6861.77Spooka344	NOARGS		{ int|sys||kqueue(void); }
6871.77Spooka345	COMPAT_50	{ int|netbsd32||kevent(int fd, \
6881.75Schristos			    netbsd32_keventp_t changelist, \
6891.75Schristos			    netbsd32_size_t nchanges, \
6901.75Schristos			    netbsd32_keventp_t eventlist, \
6911.75Schristos			    netbsd32_size_t nevents, \
6921.75Schristos			    netbsd32_timespec50p_t timeout); }
6931.74Smrg; Scheduling system calls.
6941.77Spooka346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
6951.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
6961.77Spooka347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
6971.75Schristos			    netbsd32_intp policy, \
6981.75Schristos			    netbsd32_sched_paramp_t params); }
6991.77Spooka348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
7001.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7011.75Schristos			    const netbsd32_cpusetp_t cpuset); }
7021.77Spooka349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
7031.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7041.75Schristos			    netbsd32_cpusetp_t cpuset); }
7051.77Spooka350	NOARGS 		{ int|sys||sched_yield(void); }
7061.26Scube351	UNIMPL
7071.26Scube352	UNIMPL
7081.26Scube353	UNIMPL
7091.77Spooka354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
7101.99Snjoly			    netbsd32_off_t start, netbsd32_off_t length); }
7111.77Spooka355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
7121.75Schristos			    int count); }
7131.77Spooka356	STD		{ int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
7141.26Scube			    netbsd32_size_t bufsize, int flags); }
7151.77Spooka357	STD		{ int|netbsd32||statvfs1(netbsd32_charp path, \
7161.26Scube			    netbsd32_statvfsp_t buf, int flags); }
7171.77Spooka358	STD		{ int|netbsd32||fstatvfs1(int fd, \
7181.75Schristos			    netbsd32_statvfsp_t buf, int flags); }
7191.77Spooka359	COMPAT_30	{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
7201.26Scube			    netbsd32_statvfsp_t buf, int flags); }
7211.77Spooka360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
7221.75Schristos			    int cmd, netbsd32_charp filename, \
7231.75Schristos			    int attrnamespace, netbsd32_charp attrname); }
7241.77Spooka361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
7251.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7261.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7271.77Spooka362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
7281.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7291.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7301.77Spooka363	STD		{ int|netbsd32||extattr_delete_file( \
7311.75Schristos			    netbsd32_charp path, int attrnamespace, \
7321.75Schristos			    netbsd32_charp attrname); }
7331.77Spooka364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
7341.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7351.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7361.77Spooka365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
7371.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7381.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7391.77Spooka366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
7401.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
7411.77Spooka367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
7421.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7431.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7441.77Spooka368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
7451.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7461.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7471.77Spooka369	STD		{ int|netbsd32||extattr_delete_link( \
7481.75Schristos			    netbsd32_charp path, int attrnamespace, \
7491.75Schristos			    netbsd32_charp attrname); }
7501.77Spooka370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
7511.29Scube			    int attrnamespace, netbsd32_voidp data, \
7521.29Scube			    netbsd32_size_t nbytes); }
7531.77Spooka371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
7541.29Scube			    int attrnamespace, netbsd32_voidp data, \
7551.29Scube			    netbsd32_size_t nbytes); }
7561.77Spooka372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
7571.29Scube			    int attrnamespace, netbsd32_voidp data, \
7581.29Scube			    netbsd32_size_t nbytes); }
7591.77Spooka373	COMPAT_50	{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
7601.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
7611.75Schristos			    netbsd32_timespec50p_t ts, \
7621.75Schristos			    netbsd32_sigsetp_t mask); }
7631.77Spooka374	COMPAT_50	{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
7641.75Schristos			    u_int nfds, netbsd32_timespec50p_t ts, \
7651.75Schristos			    netbsd32_sigsetp_t mask); }
7661.77Spooka375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
7671.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7681.35Scube			    netbsd32_size_t size, int flags); }
7691.77Spooka376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
7701.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7711.35Scube			    netbsd32_size_t size, int flags); }
7721.77Spooka377	STD		{ int|netbsd32||fsetxattr(int fd, \
7731.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7741.35Scube			    netbsd32_size_t size, int flags); }
7751.77Spooka378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
7761.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7771.35Scube			    netbsd32_size_t size); }
7781.77Spooka379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
7791.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7801.35Scube			    netbsd32_size_t size); }
7811.77Spooka380	STD		{ int|netbsd32||fgetxattr(int fd, \
7821.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7831.35Scube			    netbsd32_size_t size); }
7841.77Spooka381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
7851.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
7861.77Spooka382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
7871.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
7881.77Spooka383	STD		{ int|netbsd32||flistxattr(int fd, \
7891.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
7901.77Spooka384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
7911.64Sdsl			    netbsd32_charp name); }
7921.77Spooka385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
7931.64Sdsl			    netbsd32_charp name); }
7941.77Spooka386	STD		{ int|netbsd32||fremovexattr(int fd, \
7951.64Sdsl			    netbsd32_charp name); }
7961.77Spooka387     COMPAT_50	{ int|netbsd32|30|stat(netbsd32_charp path, \
7971.75Schristos			    netbsd32_stat50p_t ub); }
7981.77Spooka388     COMPAT_50	{ int|netbsd32|30|fstat(int fd, \
7991.75Schristos			    netbsd32_stat50p_t sb); }
8001.77Spooka389     COMPAT_50	{ int|netbsd32|30|lstat( \
8011.75Schristos			    netbsd32_charp path, netbsd32_stat50p_t ub); }
8021.77Spooka390     STD             { int|netbsd32|30|getdents(int fd, \
8031.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
8041.68Smartin391	IGNORED		old posix fadvise
8051.77Spooka392	COMPAT_30	{ int|netbsd32|30|fhstat( \
8061.64Sdsl			    netbsd32_fhandlep_t fhp, \
8071.75Schristos			    netbsd32_stat50p_t sb); }
8081.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
8091.77Spooka393	COMPAT_50	{ int|netbsd32||ntp_gettime( \
8101.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
8111.78Schristos#else
8121.78Schristos393	EXCL		__ntp_gettime30
8131.78Schristos#endif
8141.77Spooka394	STD		{ int|netbsd32|30|socket(int domain, int type, \
8151.75Schristos			    int protocol); }
8161.77Spooka395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
8171.75Schristos			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
8181.77Spooka396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
8191.51Smartin			    netbsd32_size_t fh_size, int flags); }
8201.77Spooka397	STD		{ int|netbsd32|40|fhstatvfs1(	\
8211.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
8221.51Smartin			    netbsd32_statvfsp_t buf, int flags); }
8231.77Spooka398	COMPAT_50	{ int|netbsd32|40|fhstat(	\
8241.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
8251.75Schristos			    netbsd32_stat50p_t sb); }
8261.65Sdsl
8271.65Sdsl; Asynchronous I/O system calls
8281.76Spooka399	UNIMPL		sys_aio_cancel
8291.76Spooka400	UNIMPL		sys_aio_error
8301.76Spooka401	UNIMPL		sys_aio_fsync
8311.76Spooka402	UNIMPL		sys_aio_read
8321.76Spooka403	UNIMPL		sys_aio_return
8331.76Spooka404	UNIMPL		sys_aio_suspend
8341.76Spooka405     UNIMPL		sys_aio_write
8351.76Spooka406	UNIMPL		sys_lio_listio
8361.65Sdsl
8371.65Sdsl407	UNIMPL
8381.65Sdsl408	UNIMPL
8391.65Sdsl409	UNIMPL
8401.65Sdsl
8411.81Smatt410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
8421.81Smatt			    netbsd32_charp path, int flags, \
8431.81Smatt			    netbsd32_voidp data, netbsd32_size_t data_len); }
8441.77Spooka411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
8451.65Sdsl			    netbsd32_voidp old_address, \
8461.65Sdsl			    netbsd32_size_t old_size, \
8471.65Sdsl			    netbsd32_voidp new_address, \
8481.65Sdsl			    netbsd32_size_t new_size, int flags); }
8491.67Smartin
8501.107Smartin412	STD		{ int|netbsd32||pset_create(netbsd32_psetidp_t psid); }
8511.107Smartin413	STD		{ int|netbsd32||pset_destroy(psetid_t psid); }
8521.107Smartin414	STD		{ int|netbsd32||pset_assign(psetid_t psid, \
8531.107Smartin			  cpuid_t cpuid, netbsd32_psetidp_t opsid); }
8541.107Smartin415	STD		{ int|netbsd32||_pset_bind(idtype_t idtype, \
8551.107Smartin			  id_t first_id, id_t second_id, psetid_t psid, \
8561.107Smartin			  netbsd32_psetidp_t opsid); }
8571.67Smartin
8581.80Spooka416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
8591.99Snjoly			    netbsd32_off_t offset, netbsd32_off_t len, int advice); }
8601.77Spooka417	STD 		{ int|netbsd32|50|select(int nd, \
8611.75Schristos			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
8621.75Schristos			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
8631.77Spooka418	STD 		{ int|netbsd32|50|gettimeofday( \
8641.75Schristos			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
8651.77Spooka419	STD 		{ int|netbsd32|50|settimeofday( \
8661.75Schristos			    const netbsd32_timevalp_t tv, \
8671.75Schristos			    const netbsd32_voidp tzp); }
8681.77Spooka420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
8691.75Schristos			    const netbsd32_timevalp_t tptr); }
8701.77Spooka421	STD		{ int|netbsd32|50|adjtime( \
8711.75Schristos			    const netbsd32_timevalp_t delta, \
8721.75Schristos			    netbsd32_timevalp_t olddelta); }
8731.75Schristos422	EXCL		__lfs_segwait50
8741.77Spooka423	STD 		{ int|netbsd32|50|futimes(int fd, \
8751.75Schristos			    const netbsd32_timevalp_t tptr); }
8761.77Spooka424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
8771.75Schristos			    const netbsd32_timevalp_t tptr); }
8781.77Spooka425	STD		{ int|netbsd32|50|setitimer(int which, \
8791.75Schristos			    const netbsd32_itimervalp_t itv, \
8801.75Schristos			    netbsd32_itimervalp_t oitv); }
8811.77Spooka426	STD		{ int|netbsd32|50|getitimer(int which, \
8821.75Schristos			    netbsd32_itimervalp_t itv); }
8831.77Spooka427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
8841.75Schristos			    netbsd32_timespecp_t tp); }
8851.77Spooka428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
8861.75Schristos			    const netbsd32_timespecp_t tp); }
8871.77Spooka429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
8881.75Schristos			    netbsd32_timespecp_t tp); }
8891.77Spooka430	STD 		{ int|netbsd32|50|nanosleep( \
8901.75Schristos			    const netbsd32_timespecp_t rqtp, \
8911.75Schristos			    netbsd32_timespecp_t rmtp); }
8921.77Spooka431	STD 		{ int|netbsd32|50|__sigtimedwait( \
8931.75Schristos			    const netbsd32_sigsetp_t set, \
8941.75Schristos			    netbsd32_siginfop_t info, \
8951.75Schristos			    netbsd32_timespecp_t timeout); }
8961.111Spgoyette432	STD MODULAR compat_netbsd32_mqueue	\
8971.111Spgoyette			{ int|netbsd32|50|mq_timedsend(mqd_t mqdes, \
8981.105Smartin			    const netbsd32_charp msg_ptr, \
8991.105Smartin			    netbsd32_size_t msg_len, \
9001.105Smartin			    unsigned msg_prio, \
9011.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
9021.111Spgoyette433	STD MODULAR compat_netbsd32_mqueue	\
9031.111Spgoyette			{ netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \
9041.105Smartin			    mqd_t mqdes, netbsd32_charp msg_ptr, \
9051.105Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \
9061.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
9071.97Schristos434	COMPAT_60 	{ int|netbsd32||_lwp_park( \
9081.75Schristos			    const netbsd32_timespecp_t ts, \
9091.75Schristos			    lwpid_t unpark, const netbsd32_voidp hint, \
9101.75Schristos			    const netbsd32_voidp unparkhint); }
9111.77Spooka435	STD 		{ int|netbsd32|50|kevent(int fd, \
9121.75Schristos			    const netbsd32_keventp_t changelist, \
9131.75Schristos			    netbsd32_size_t nchanges, \
9141.75Schristos			    netbsd32_keventp_t eventlist, \
9151.75Schristos			    netbsd32_size_t nevents, \
9161.75Schristos			    const netbsd32_timespecp_t timeout); }
9171.77Spooka436	STD 		{ int|netbsd32|50|pselect(int nd, \
9181.75Schristos			    netbsd32_fd_setp_t in, \
9191.75Schristos			    netbsd32_fd_setp_t ou, \
9201.75Schristos			    netbsd32_fd_setp_t ex, \
9211.75Schristos			    const netbsd32_timespecp_t ts, \
9221.75Schristos			    const netbsd32_sigsetp_t mask); }
9231.77Spooka437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
9241.75Schristos			    u_int nfds, const netbsd32_timespecp_t ts, \
9251.75Schristos			    const netbsd32_sigsetp_t mask); }
9261.76Spooka438	UNIMPL 		netbsd32___aio_suspend50
9271.77Spooka439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
9281.75Schristos			    netbsd32_statp_t ub); }
9291.77Spooka440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
9301.77Spooka441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
9311.75Schristos			    netbsd32_statp_t ub); }
9321.112Spgoyette442	STD MODULAR compat_netbsd32_sysvipc	\
9331.112Spgoyette	 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
9341.75Schristos			    int cmd, ... netbsd32_semunp_t arg); }
9351.112Spgoyette443	STD MODULAR compat_netbsd32_sysvipc	\
9361.112Spgoyette	 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
9371.75Schristos			    netbsd32_shmid_dsp_t buf); }
9381.112Spgoyette444	STD MODULAR compat_netbsd32_sysvipc	\
9391.112Spgoyette	 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
9401.75Schristos			    netbsd32_msqid_dsp_t buf); }
9411.77Spooka445	STD 		{ int|netbsd32|50|getrusage(int who, \
9421.75Schristos			    netbsd32_rusagep_t rusage); }
9431.77Spooka446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
9441.75Schristos			    int flags, const netbsd32_itimerspecp_t value, \
9451.75Schristos			    netbsd32_itimerspecp_t ovalue); }
9461.77Spooka447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
9471.75Schristos			    netbsd32_itimerspecp_t value); }
9481.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
9491.77Spooka448	STD		{ int|netbsd32|50|ntp_gettime( \
9501.75Schristos			    netbsd32_ntptimevalp_t ntvp); }
9511.75Schristos#else
9521.75Schristos448	EXCL		___ntp_gettime50
9531.75Schristos#endif
9541.77Spooka449	STD 		{ int|netbsd32|50|wait4(int pid, \
9551.75Schristos			    netbsd32_intp status, \
9561.75Schristos			    int options, netbsd32_rusagep_t rusage); }
9571.77Spooka450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
9581.79Snjoly			    mode_t mode, netbsd32_dev_t dev); }
9591.77Spooka451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
9601.75Schristos			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
9611.90Sdholland452	OBSOL		5.99 quotactl
9621.86Snjoly453	STD		{ int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
9631.87Snjoly454	STD		{ int|netbsd32||dup3(int from, int to, int flags); }
9641.88Snjoly455	STD		{ int|netbsd32||kqueue1(int flags); }
9651.89Smatt456	STD  		{ int|netbsd32||paccept(int s, \
9661.89Smatt			    netbsd32_sockaddrp_t name, \
9671.89Smatt			    netbsd32_socklenp_t anamelen, \
9681.89Smatt			    const netbsd32_sigsetp_t mask, \
9691.89Smatt			    int flags); }
9701.89Smatt457	STD  		{ int|netbsd32||linkat(int fd1, \
9711.89Smatt			    const netbsd32_charp name1, \
9721.89Smatt			    int fd2, \
9731.89Smatt			    const netbsd32_charp name2, \
9741.89Smatt			    int flags); }
9751.89Smatt458	STD  		{ int|netbsd32||renameat(int fromfd, \
9761.89Smatt			    const netbsd32_charp from, \
9771.89Smatt			    int tofd, \
9781.89Smatt			    const netbsd32_charp to); }
9791.89Smatt459	STD  		{ int|netbsd32||mkfifoat(int fd, \
9801.89Smatt			    const netbsd32_charp path, \
9811.89Smatt			    mode_t mode); }
9821.89Smatt460	STD  		{ int|netbsd32||mknodat(int fd, \
9831.89Smatt			    const netbsd32_charp path, \
9841.98Snjoly			    mode_t mode, int PAD, \
9851.98Snjoly			    netbsd32_dev_t dev); }
9861.89Smatt461	STD  		{ int|netbsd32||mkdirat(int fd, \
9871.89Smatt			    const netbsd32_charp path, \
9881.89Smatt			    mode_t mode); }
9891.89Smatt462	STD  		{ int|netbsd32||faccessat(int fd, \
9901.89Smatt			    const netbsd32_charp path, \
9911.89Smatt			    int amode, \
9921.89Smatt			    int flag); }
9931.89Smatt463	STD  		{ int|netbsd32||fchmodat(int fd, \
9941.89Smatt			    const netbsd32_charp path, \
9951.89Smatt			    mode_t mode, \
9961.89Smatt			    int flag); }
9971.89Smatt464	STD  		{ int|netbsd32||fchownat(int fd, \
9981.89Smatt			    const netbsd32_charp path, \
9991.89Smatt			    uid_t owner, \
10001.89Smatt			    gid_t group, \
10011.89Smatt			    int flag); }
10021.89Smatt465	STD  		{ int|netbsd32||fexecve(int fd, \
10031.89Smatt			    netbsd32_charpp argp, \
10041.89Smatt			    netbsd32_charpp envp); }
10051.89Smatt466	STD  		{ int|netbsd32||fstatat(int fd, \
10061.89Smatt			    const netbsd32_charp path, \
10071.89Smatt			    netbsd32_statp_t buf, \
10081.89Smatt			    int flag); }
10091.89Smatt467	STD  		{ int|netbsd32||utimensat(int fd, \
10101.89Smatt			    const netbsd32_charp path, \
10111.89Smatt			    const netbsd32_timespecp_t tptr, \
10121.89Smatt			    int flag); }
10131.89Smatt468	STD  		{ int|netbsd32||openat(int fd, \
10141.89Smatt			    const netbsd32_charp path, \
10151.89Smatt			    int oflags, ... \
10161.89Smatt			    mode_t mode); }
10171.102Schristos469	STD  		{ netbsd32_ssize_t|netbsd32||readlinkat(int fd, \
10181.89Smatt			    const netbsd32_charp path, \
10191.89Smatt			    netbsd32_charp buf, \
10201.89Smatt			    size_t bufsize); }
10211.89Smatt470	STD  		{ int|netbsd32||symlinkat(const netbsd32_charp path1, \
10221.89Smatt			    int fd, \
10231.89Smatt			    const netbsd32_charp path2); }
10241.89Smatt471	STD  		{ int|netbsd32||unlinkat(int fd, \
10251.89Smatt			    const netbsd32_charp path, \
10261.89Smatt			    int flag); }
10271.89Smatt472	STD  		{ int|netbsd32||futimens(int fd, \
10281.89Smatt			    const netbsd32_timespecp_t tptr); }
10291.91Sdholland473	STD		{ int|netbsd32||__quotactl(const netbsd32_charp path, \
10301.91Sdholland			    netbsd32_voidp args); }
10311.95Smartin474	NOERR		{ int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \
10321.95Smartin				const netbsd32_charp path, \
10331.95Smartin				const netbsd32_posix_spawn_file_actionsp \
10341.95Smartin				    file_actions, \
10351.95Smartin				const netbsd32_posix_spawnattrp attrp, \
10361.95Smartin				netbsd32_charpp argv, netbsd32_charpp envp); }
10371.95Smartin
10381.96Schristos475	UNIMPL		{ int|netbsd32||recvmmsg(int s, struct mmsghdr *mmsg, \
10391.96Schristos			    unsigned int vlen, unsigned int flags, \
10401.96Schristos			    netbsd32_timespecp_t timeout); }
10411.96Schristos476	UNIMPL		{ int|netbsd32||sendmmsg(int s, struct mmsghdr *mmsg, \
10421.96Schristos			    unsigned int vlen, unsigned int flags); }
10431.96Schristos477	STD 		{ int|netbsd32||clock_nanosleep(\
10441.96Schristos			    netbsd32_clockid_t clock_id, \
10451.96Schristos			    int flags, const netbsd32_timespecp_t rqtp, \
10461.96Schristos			    netbsd32_timespecp_t rmtp); }
10471.97Schristos478	STD 		{ int|netbsd32|60|_lwp_park(\
10481.97Schristos			    netbsd32_clockid_t clock_id, \
10491.97Schristos			    int flags, const netbsd32_timespecp_t ts, \
10501.97Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
10511.97Schristos			    netbsd32_voidp unparkhint); }
10521.103Smartin479	NOERR		{ int|netbsd32||posix_fallocate(int fd, int PAD, \
10531.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
10541.103Smartin480	STD		{ int|netbsd32||fdiscard(int fd, int PAD, \
10551.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
10561.103Smartin
1057