syscalls.master revision 1.81
11.81Smatt	$NetBSD: syscalls.master,v 1.81 2009/12/14 00:47:11 matt 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.4Stron#include "opt_sysv.h"
431.5Schristos#include "opt_compat_43.h"
441.42Scube#include "opt_posix.h"
451.1Smrg
461.1Smrg#include "fs_lfs.h"
471.1Smrg#include "fs_nfs.h"
481.16Smycroft#endif
491.1Smrg
501.1Smrg#include <sys/param.h>
511.1Smrg#include <sys/systm.h>
521.1Smrg#include <sys/signal.h>
531.1Smrg#include <sys/mount.h>
541.1Smrg#include <sys/syscallargs.h>
551.1Smrg
561.7Smrg#include <compat/netbsd32/netbsd32.h>
571.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
581.16Smycroft
591.16Smycroft%%
601.1Smrg
611.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
621.1Smrg; are reserved for use in future Berkeley releases.
631.1Smrg; Additional system calls implemented in vendor and other
641.1Smrg; redistributions should be placed in the reserved range at the end
651.1Smrg; of the current calls.
661.1Smrg
671.77Spooka0	INDIR		{ int|netbsd32||syscall(int code, \
681.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
691.77Spooka1	STD		{ void|netbsd32||exit(int rval); }
701.77Spooka2	NOARGS		{ int|sys||fork(void); }
711.77Spooka3	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
721.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
731.77Spooka4	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
741.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
751.77Spooka5	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
761.75Schristos			    ... mode_t mode); }
771.77Spooka6	STD		{ int|netbsd32||close(int fd); }
781.77Spooka7	COMPAT_50	{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
791.75Schristos			    int options, netbsd32_rusage50p_t rusage); }
801.77Spooka8	COMPAT_43	{ int|netbsd32||ocreat(netbsd32_charp path, \
811.75Schristos			    mode_t mode); }
821.77Spooka9	STD		{ int|netbsd32||link(netbsd32_charp path, \
831.75Schristos			    netbsd32_charp link); }
841.77Spooka10	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
851.1Smrg11	OBSOL		execv
861.77Spooka12	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
871.77Spooka13	STD		{ int|netbsd32||fchdir(int fd); }
881.77Spooka14	COMPAT_50	{ int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
891.75Schristos			    uint32_t dev); }
901.77Spooka15	STD		{ int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
911.77Spooka16	STD		{ int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
921.75Schristos			    gid_t gid); }
931.77Spooka17	STD		{ int|netbsd32||break(netbsd32_charp nsize); }
941.77Spooka18	COMPAT_20	{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
951.75Schristos			    netbsd32_long bufsize, int flags); }
961.77Spooka19	COMPAT_43	{ netbsd32_long|netbsd32||olseek(int fd, \
971.75Schristos			    netbsd32_long offset, int whence); }
981.77Spooka20	NOARGS 		{ pid_t|sys||getpid(void); }
991.77Spooka21	STD		{ int|netbsd32||mount(netbsd32_charp type, \
1001.75Schristos			    netbsd32_charp path, int flags, \
1011.75Schristos			    netbsd32_voidp data); }
1021.77Spooka22	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
1031.75Schristos			    int flags); }
1041.77Spooka23	STD		{ int|netbsd32||setuid(uid_t uid); }
1051.77Spooka24	NOARGS 		{ uid_t|sys||getuid(void); }
1061.77Spooka25	NOARGS		{ uid_t|sys||geteuid(void); }
1071.77Spooka26	STD		{ int|netbsd32||ptrace(int req, pid_t pid, \
1081.75Schristos			    netbsd32_voidp addr, int data); }
1091.77Spooka27	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
1101.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1111.77Spooka28	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
1121.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1131.77Spooka29	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
1141.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
1151.75Schristos			    int flags, netbsd32_sockaddrp_t from, \
1161.75Schristos			    netbsd32_intp fromlenaddr); }
1171.77Spooka30	STD		{ int|netbsd32||accept(int s, \
1181.75Schristos			    netbsd32_sockaddrp_t name, \
1191.75Schristos			    netbsd32_intp anamelen); }
1201.77Spooka31	STD		{ int|netbsd32||getpeername(int fdes, \
1211.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1221.77Spooka32	STD		{ int|netbsd32||getsockname(int fdes, \
1231.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1241.77Spooka33	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
1251.77Spooka34	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
1261.75Schristos			    netbsd32_u_long flags); }
1271.77Spooka35	STD		{ int|netbsd32||fchflags(int fd, \
1281.75Schristos			    netbsd32_u_long flags); }
1291.77Spooka36	NOARGS		{ void|sys||sync(void); }
1301.77Spooka37	STD		{ int|netbsd32||kill(int pid, int signum); }
1311.77Spooka38	COMPAT_43	{ int|netbsd32||stat43(netbsd32_charp path, \
1321.75Schristos			    netbsd32_stat43p_t ub); }
1331.77Spooka39	NOARGS 		{ pid_t|sys||getppid(void); }
1341.77Spooka40	COMPAT_43	{ int|netbsd32||lstat43(netbsd32_charp path, \
1351.75Schristos			    netbsd32_stat43p_t ub); }
1361.77Spooka41	STD		{ int|netbsd32||dup(int fd); }
1371.77Spooka42	NOARGS		{ int|sys||pipe(void); }
1381.77Spooka43	NOARGS 		{ gid_t|sys||getegid(void); }
1391.77Spooka44	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
1401.75Schristos			    netbsd32_size_t size, netbsd32_u_long offset, \
1411.75Schristos			    u_int scale); }
1421.77Spooka45	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
1431.75Schristos			    int facs, int pid); }
1441.77Spooka46	STD		{ int|netbsd32||sigaction(int signum, \
1451.75Schristos			    netbsd32_sigactionp_t nsa, \
1461.75Schristos			    netbsd32_sigactionp_t osa); }
1471.77Spooka47	NOARGS 		{ gid_t|sys||getgid(void); }
1481.77Spooka48	COMPAT_13	{ int|netbsd32||sigprocmask(int how, \
1491.3Seeh			    int mask); } sigprocmask13
1501.77Spooka49	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
1511.75Schristos			    u_int namelen); }
1521.77Spooka50	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
1531.77Spooka51	STD		{ int|netbsd32||acct(netbsd32_charp path); }
1541.77Spooka52	COMPAT_13 	{ int|sys||sigpending(void); } sigpending13
1551.77Spooka53	COMPAT_13	{ int|netbsd32||sigaltstack13( \
1561.75Schristos			    netbsd32_sigaltstack13p_t nss, \
1571.75Schristos			    netbsd32_sigaltstack13p_t oss); }
1581.77Spooka54	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
1591.75Schristos			    ... netbsd32_voidp data); }
1601.77Spooka55	COMPAT_12	{ int|netbsd32||reboot(int opt); }
1611.77Spooka56	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
1621.77Spooka57	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
1631.75Schristos			    netbsd32_charp link); }
1641.77Spooka58	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
1651.75Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
1661.77Spooka59	STD		{ int|netbsd32||execve(netbsd32_charp path, \
1671.75Schristos			    netbsd32_charpp argp, netbsd32_charpp envp); }
1681.77Spooka60	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
1691.77Spooka61	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
1701.77Spooka62	COMPAT_43	{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
1711.77Spooka63	COMPAT_43	{ int|netbsd32||ogetkerninfo(int op, \
1721.75Schristos			    netbsd32_charp where, netbsd32_intp size, \
1731.75Schristos			    int arg); }
1741.77Spooka64	COMPAT_43	{ int|sys||getpagesize(void); } ogetpagesize
1751.77Spooka65	COMPAT_12	{ int|netbsd32||msync(netbsd32_voidp addr, \
1761.75Schristos			    netbsd32_size_t len); }
1771.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1781.77Spooka66	NOARGS		{ int|sys||vfork(void); }
1791.1Smrg67	OBSOL		vread
1801.1Smrg68	OBSOL		vwrite
1811.77Spooka69	STD		{ int|netbsd32||sbrk(netbsd32_intptr_t incr); }
1821.77Spooka70	STD		{ int|netbsd32||sstk(int incr); }
1831.77Spooka71	COMPAT_43	{ int|netbsd32||ommap(netbsd32_voidp addr, \
1841.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
1851.75Schristos			    netbsd32_long pos); }
1861.77Spooka72	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
1871.77Spooka73	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
1881.75Schristos			    netbsd32_size_t len); }
1891.77Spooka74	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
1901.75Schristos			    netbsd32_size_t len, int prot); }
1911.77Spooka75	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
1921.75Schristos			    netbsd32_size_t len, int behav); }
1931.1Smrg76	OBSOL		vhangup
1941.1Smrg77	OBSOL		vlimit
1951.77Spooka78	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
1961.75Schristos			    netbsd32_size_t len, netbsd32_charp vec); }
1971.77Spooka79	STD		{ int|netbsd32||getgroups(int gidsetsize, \
1981.75Schristos			    netbsd32_gid_tp gidset); }
1991.77Spooka80	STD		{ int|netbsd32||setgroups(int gidsetsize, \
2001.75Schristos			    netbsd32_gid_tp gidset); }
2011.77Spooka81	NOARGS 		{ int|sys||getpgrp(void); }
2021.77Spooka82	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
2031.77Spooka83	COMPAT_50	{ int|netbsd32||setitimer(int which, \
2041.75Schristos			    netbsd32_itimerval50p_t itv, \
2051.75Schristos			    netbsd32_itimerval50p_t oitv); }
2061.77Spooka84	COMPAT_43	{ int|sys||wait(void); } owait
2071.77Spooka85	COMPAT_12	{ int|netbsd32||oswapon(netbsd32_charp name); }
2081.77Spooka86	COMPAT_50	{ int|netbsd32||getitimer(int which, \
2091.75Schristos			    netbsd32_itimerval50p_t itv); }
2101.77Spooka87	COMPAT_43	{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
2111.75Schristos			    u_int len); }
2121.77Spooka88	COMPAT_43	{ int|netbsd32||osethostname(netbsd32_charp hostname, \
2131.75Schristos			    u_int len); }
2141.77Spooka89	COMPAT_43	{ int|sys||getdtablesize(void); } ogetdtablesize
2151.77Spooka90	STD		{ int|netbsd32||dup2(int from, int to); }
2161.1Smrg91	UNIMPL		getdopt
2171.77Spooka92	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
2181.75Schristos			    ... netbsd32_voidp arg); }
2191.77Spooka93	COMPAT_50	{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
2201.75Schristos			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
2211.75Schristos			    netbsd32_timeval50p_t tv); }
2221.1Smrg94	UNIMPL		setdopt
2231.77Spooka95	STD		{ int|netbsd32||fsync(int fd); }
2241.77Spooka96	STD		{ int|netbsd32||setpriority(int which, int who, \
2251.75Schristos			    int prio); }
2261.77Spooka97	COMPAT_30	{ int|netbsd32||socket(int domain, int type, \
2271.75Schristos			    int protocol); }
2281.77Spooka98	STD		{ int|netbsd32||connect(int s, \
2291.75Schristos			    netbsd32_sockaddrp_t name, int namelen); }
2301.77Spooka99	COMPAT_43	{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
2311.75Schristos			    netbsd32_intp anamelen); }
2321.77Spooka100	STD		{ int|netbsd32||getpriority(int which, int who); }
2331.77Spooka101	COMPAT_43	{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
2341.75Schristos			    int len, int flags); }
2351.77Spooka102	COMPAT_43	{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
2361.75Schristos			    int len, int flags); }
2371.77Spooka103	COMPAT_13	{ int|netbsd32||sigreturn( \
2381.75Schristos			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
2391.77Spooka104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
2401.75Schristos			    int namelen); }
2411.77Spooka105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
2421.75Schristos			    netbsd32_voidp val, int valsize); }
2431.77Spooka106	STD		{ int|netbsd32||listen(int s, int backlog); }
2441.1Smrg107	OBSOL		vtimes
2451.77Spooka108	COMPAT_43	{ int|netbsd32||osigvec(int signum, \
2461.75Schristos			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
2471.77Spooka109	COMPAT_43	{ int|netbsd32||sigblock(int mask); }
2481.77Spooka110	COMPAT_43	{ int|netbsd32||sigsetmask(int mask); }
2491.77Spooka111	COMPAT_13	{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
2501.77Spooka112	COMPAT_43	{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
2511.75Schristos			    netbsd32_sigstackp_t oss); }
2521.77Spooka113	COMPAT_43	{ int|netbsd32||orecvmsg(int s, \
2531.75Schristos			    netbsd32_omsghdrp_t msg, int flags); }
2541.77Spooka114	COMPAT_43	{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
2551.75Schristos			    int flags); }
2561.1Smrg115	OBSOL		vtrace
2571.77Spooka116	COMPAT_50	{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
2581.75Schristos			    netbsd32_timezonep_t tzp); }
2591.77Spooka117	COMPAT_50	{ int|netbsd32||getrusage(int who, \
2601.75Schristos			    netbsd32_rusage50p_t rusage); }
2611.77Spooka118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
2621.75Schristos			    netbsd32_voidp val, netbsd32_intp avalsize); }
2631.1Smrg119	OBSOL		resuba
2641.77Spooka120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
2651.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
2661.77Spooka121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
2671.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
2681.77Spooka122	COMPAT_50	{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
2691.75Schristos			    netbsd32_timezonep_t tzp); }
2701.77Spooka123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
2711.77Spooka124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
2721.77Spooka125	COMPAT_43	{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
2731.75Schristos			    netbsd32_size_t len, int flags, \
2741.75Schristos			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
2751.77Spooka126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
2761.77Spooka127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
2771.77Spooka128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
2781.75Schristos			    netbsd32_charp to); }
2791.77Spooka129	COMPAT_43	{ int|netbsd32||otruncate(netbsd32_charp path, \
2801.75Schristos			    netbsd32_long length); }
2811.77Spooka130	COMPAT_43	{ int|netbsd32||oftruncate(int fd, \
2821.75Schristos			    netbsd32_long length); }
2831.77Spooka131	STD		{ int|netbsd32||flock(int fd, int how); }
2841.77Spooka132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
2851.75Schristos			    mode_t mode); }
2861.77Spooka133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
2871.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
2881.75Schristos			    int flags, netbsd32_sockaddrp_t to, int tolen); }
2891.77Spooka134	STD		{ int|netbsd32||shutdown(int s, int how); }
2901.77Spooka135	STD		{ int|netbsd32||socketpair(int domain, int type, \
2911.75Schristos			    int protocol, netbsd32_intp rsv); }
2921.77Spooka136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
2931.75Schristos			    mode_t mode); }
2941.77Spooka137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
2951.77Spooka138	COMPAT_50	{ int|netbsd32||utimes(netbsd32_charp path, \
2961.75Schristos			    netbsd32_timeval50p_t tptr); }
2971.1Smrg139	OBSOL		4.2 sigreturn
2981.77Spooka140	COMPAT_50	{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
2991.75Schristos			    netbsd32_timeval50p_t olddelta); }
3001.77Spooka141	COMPAT_43	{ int|netbsd32||ogetpeername(int fdes, \
3011.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3021.77Spooka142	COMPAT_43	{ int32_t|sys||gethostid(void); } ogethostid
3031.77Spooka143	COMPAT_43	{ int|netbsd32||sethostid(int32_t hostid); }
3041.77Spooka144	COMPAT_43	{ int|netbsd32||ogetrlimit(int which, \
3051.75Schristos			    netbsd32_orlimitp_t rlp); }
3061.77Spooka145	COMPAT_43	{ int|netbsd32||osetrlimit(int which, \
3071.75Schristos			    netbsd32_orlimitp_t rlp); }
3081.77Spooka146	COMPAT_43	{ int|netbsd32||killpg(int pgid, int signum); }
3091.77Spooka147	NOARGS		{ int|sys||setsid(void); }
3101.77Spooka148	STD		{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
3111.75Schristos			    int uid, netbsd32_voidp arg); }
3121.77Spooka149	COMPAT_43	{ int|sys||quota(void); } oquota
3131.77Spooka150	COMPAT_43	{ int|netbsd32||ogetsockname(int fdec, \
3141.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3151.1Smrg
3161.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
3171.1Smrg; system calls.  (This includes various calls added for compatibity
3181.1Smrg; with other Unix variants.)
3191.1Smrg; Some of these calls are now supported by BSD...
3201.1Smrg151	UNIMPL
3211.1Smrg152	UNIMPL
3221.1Smrg153	UNIMPL
3231.1Smrg154	UNIMPL
3241.77Spooka155	STD		{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
3251.77Spooka156	COMPAT_43	{ int|netbsd32||ogetdirentries(int fd, \
3261.75Schristos			    netbsd32_charp buf, u_int count, \
3271.75Schristos			    netbsd32_longp basep); }
3281.77Spooka157	COMPAT_20	{ int|netbsd32||statfs(netbsd32_charp path, \
3291.75Schristos			    netbsd32_statfsp_t buf); }
3301.77Spooka158	COMPAT_20	{ int|netbsd32||fstatfs(int fd, \
3311.75Schristos			    netbsd32_statfsp_t buf); }
3321.1Smrg159	UNIMPL
3331.1Smrg160	UNIMPL
3341.77Spooka161	COMPAT_30	{ int|netbsd32||getfh(netbsd32_charp fname, \
3351.75Schristos			    netbsd32_compat_30_fhandlep_t fhp); }
3361.77Spooka162	COMPAT_09	{ int|netbsd32||ogetdomainname( \
3371.75Schristos			    netbsd32_charp domainname, int len); }
3381.77Spooka163	COMPAT_09	{ int|netbsd32||osetdomainname( \
3391.75Schristos			    netbsd32_charp domainname, int len); }
3401.77Spooka164	COMPAT_09	{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
3411.77Spooka165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
3421.1Smrg166	UNIMPL
3431.1Smrg167	UNIMPL
3441.1Smrg168	UNIMPL
3451.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
3461.77Spooka169	COMPAT_10	{ int|netbsd32||semsys(int which, int a2, int a3, \
3471.75Schristos			    int a4, int a5); } osemsys
3481.1Smrg#else
3491.75Schristos169	EXCL		netbsd32_semsys
3501.1Smrg#endif
3511.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
3521.77Spooka170	COMPAT_10	{ int|netbsd32||msgsys(int which, int a2, int a3, \
3531.75Schristos			    int a4, int a5, int a6); } omsgsys
3541.1Smrg#else
3551.75Schristos170	EXCL		netbsd32_msgsys
3561.1Smrg#endif
3571.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
3581.77Spooka171	COMPAT_10	{ int|netbsd32||shmsys(int which, int a2, int a3, \
3591.75Schristos			    int a4); } oshmsys
3601.1Smrg#else
3611.75Schristos171	EXCL		netbsd32_shmsys
3621.1Smrg#endif
3631.1Smrg172	UNIMPL
3641.77Spooka173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
3651.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
3661.80Spooka			    int PAD, off_t offset); }
3671.77Spooka174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
3681.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
3691.80Spooka			    int PAD, off_t offset); }
3701.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
3711.77Spooka175	COMPAT_30	{ int|netbsd32||ntp_gettime( \
3721.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
3731.77Spooka176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
3741.78Schristos#else
3751.78Schristos175	EXCL		ntp_gettime
3761.78Schristos176	EXCL		ntp_adjtime
3771.78Schristos#endif
3781.1Smrg177	UNIMPL
3791.1Smrg178	UNIMPL
3801.1Smrg179	UNIMPL
3811.1Smrg180	UNIMPL
3821.1Smrg
3831.1Smrg; Syscalls 180-199 are used by/reserved for BSD
3841.77Spooka181	STD		{ int|netbsd32||setgid(gid_t gid); }
3851.77Spooka182	STD		{ int|netbsd32||setegid(gid_t egid); }
3861.77Spooka183	STD		{ int|netbsd32||seteuid(uid_t euid); }
3871.75Schristos#if defined(LFS) || !defined(_KERNEL_OPT)
3881.77Spooka184	STD		{ int|netbsd32||lfs_bmapv(netbsd32_fsid_tp_t fsidp, \
3891.75Schristos			    netbsd32_block_infop_t blkiov, int blkcnt); }
3901.77Spooka185	STD		{ int|netbsd32||lfs_markv(netbsd32_fsid_tp_t fsidp, \
3911.75Schristos			    netbsd32_block_infop_t blkiov, int blkcnt); }
3921.77Spooka186	STD		{ int|netbsd32||lfs_segclean(netbsd32_fsid_tp_t fsidp, \
3931.75Schristos			    netbsd32_u_long segment); }
3941.77Spooka187	COMPAT_50	{ int|netbsd32||lfs_segwait(netbsd32_fsid_tp_t fsidp, \
3951.75Schristos			    netbsd32_timeval50p_t tv); }
3961.75Schristos#else
3971.75Schristos184	EXCL		netbsd32_lfs_bmapv
3981.75Schristos185	EXCL		netbsd32_lfs_markv
3991.75Schristos186	EXCL		netbsd32_lfs_segclean
4001.75Schristos187	EXCL		netbsd32_lfs_segwait
4011.10Seeh#endif
4021.77Spooka188	COMPAT_12	{ int|netbsd32||stat12(netbsd32_charp path, \
4031.75Schristos			    netbsd32_stat12p_t ub); }
4041.77Spooka189	COMPAT_12	{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
4051.77Spooka190	COMPAT_12	{ int|netbsd32||lstat12(netbsd32_charp path, \
4061.75Schristos			    netbsd32_stat12p_t ub); }
4071.77Spooka191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
4081.75Schristos			    int name); }
4091.77Spooka192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
4101.1Smrg193	UNIMPL
4111.77Spooka194	STD		{ int|netbsd32||getrlimit(int which, \
4121.75Schristos			    netbsd32_rlimitp_t rlp); }
4131.77Spooka195	STD		{ int|netbsd32||setrlimit(int which, \
4141.75Schristos			    netbsd32_rlimitp_t rlp); }
4151.77Spooka196	COMPAT_12	{ int|netbsd32||getdirentries(int fd, \
4161.75Schristos			    netbsd32_charp buf, u_int count, \
4171.75Schristos			    netbsd32_longp basep); }
4181.77Spooka197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
4191.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
4201.80Spooka			    netbsd32_long PAD, off_t pos); }
4211.77Spooka198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
4221.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
4231.80Spooka199	STD		{ off_t|netbsd32||lseek(int fd, int PAD, off_t offset, \
4241.75Schristos			    int whence); }
4251.80Spooka200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
4261.75Schristos			    off_t length); }
4271.80Spooka201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
4281.75Schristos			    off_t length); }
4291.77Spooka202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
4301.75Schristos			    u_int namelen, netbsd32_voidp old, \
4311.75Schristos			    netbsd32_size_tp oldlenp, netbsd32_voidp new, \
4321.75Schristos			    netbsd32_size_t newlen); }
4331.77Spooka203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
4341.75Schristos			    netbsd32_size_t len); }
4351.77Spooka204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
4361.75Schristos			    netbsd32_size_t len); }
4371.77Spooka205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
4381.77Spooka206	COMPAT_50	{ int|netbsd32||futimes(int fd, \
4391.75Schristos			    netbsd32_timeval50p_t tptr); }
4401.77Spooka207	STD		{ int|netbsd32||getpgid(pid_t pid); }
4411.77Spooka208	STD		{ int|netbsd32||reboot(int opt, \
4421.75Schristos			    netbsd32_charp bootstr); }
4431.77Spooka209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
4441.75Schristos			    u_int nfds, int timeout); }
4451.71Sad210	UNIMPL
4461.71Sad211	UNIMPL
4471.71Sad212	UNIMPL
4481.71Sad213	UNIMPL
4491.71Sad214	UNIMPL
4501.71Sad215	UNIMPL
4511.71Sad216	UNIMPL
4521.71Sad217	UNIMPL
4531.71Sad218	UNIMPL
4541.71Sad219	UNIMPL
4551.1Smrg; System calls 220-300 are reserved for use by NetBSD
4561.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
4571.77Spooka220	COMPAT_14	{ int|netbsd32||__semctl(int semid, int semnum, \
4581.75Schristos			    int cmd, netbsd32_semunu_t arg); }
4591.77Spooka221	STD		{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
4601.75Schristos			    int semflg); }
4611.77Spooka222	STD		{ int|netbsd32||semop(int semid, \
4621.75Schristos			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
4631.77Spooka223	STD		{ int|netbsd32||semconfig(int flag); }
4641.10Seeh#else
4651.11Seeh220	EXCL		compat_14_netbsd32_semctl
4661.10Seeh221	EXCL		netbsd32_semget
4671.10Seeh222	EXCL		netbsd32_semop
4681.10Seeh223	EXCL		netbsd32_semconfig
4691.1Smrg#endif
4701.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
4711.77Spooka224	COMPAT_14	{ int|netbsd32||msgctl(int msqid, int cmd, \
4721.75Schristos			    netbsd32_msqid_ds14p_t buf); }
4731.77Spooka225	STD		{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
4741.77Spooka226	STD		{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
4751.75Schristos			    netbsd32_size_t msgsz, int msgflg); }
4761.77Spooka227	STD		{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
4771.75Schristos			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
4781.75Schristos			    netbsd32_long msgtyp, int msgflg); }
4791.10Seeh#else
4801.11Seeh224	EXCL		compat_14_netbsd32_msgctl
4811.10Seeh225	EXCL		netbsd32_msgget
4821.10Seeh226	EXCL		netbsd32_msgsnd
4831.10Seeh227	EXCL		netbsd32_msgrcv
4841.1Smrg#endif
4851.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
4861.77Spooka228	STD		{ netbsd32_voidp|netbsd32||shmat(int shmid, \
4871.75Schristos			    netbsd32_voidp shmaddr, int shmflg); }
4881.77Spooka229	COMPAT_14	{ int|netbsd32||shmctl(int shmid, int cmd, \
4891.75Schristos			    netbsd32_shmid_dsp_t buf); }
4901.77Spooka230	STD		{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
4911.77Spooka231	STD		{ int|netbsd32||shmget(netbsd32_key_t key, \
4921.75Schristos			    netbsd32_size_t size, int shmflg); }
4931.10Seeh#else
4941.10Seeh228	EXCL		netbsd32_shmat
4951.11Seeh229	EXCL		compat_14_netbsd32_shmctl
4961.10Seeh230	EXCL		netbsd32_shmdt
4971.10Seeh231	EXCL		netbsd32_shmget
4981.10Seeh#endif
4991.77Spooka232	COMPAT_50	{ int|netbsd32||clock_gettime( \
5001.75Schristos			    netbsd32_clockid_t clock_id, \
5011.75Schristos			    netbsd32_timespec50p_t tp); }
5021.77Spooka233	COMPAT_50	{ int|netbsd32||clock_settime( \
5031.75Schristos			    netbsd32_clockid_t clock_id, \
5041.75Schristos			    netbsd32_timespec50p_t tp); }
5051.77Spooka234	COMPAT_50	{ int|netbsd32||clock_getres( \
5061.75Schristos			    netbsd32_clockid_t clock_id, \
5071.75Schristos			    netbsd32_timespec50p_t tp); }
5081.77Spooka235	STD		{ int|netbsd32||timer_create( \
5091.75Schristos			    netbsd32_clockid_t clock_id, \
5101.75Schristos			    netbsd32_sigeventp_t evp, \
5111.36Scube			    netbsd32_timerp_t timerid); }
5121.77Spooka236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
5131.77Spooka237	COMPAT_50	{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
5141.75Schristos			    int flags, \
5151.75Schristos			    netbsd32_itimerspec50p_t value, \
5161.75Schristos			    netbsd32_itimerspec50p_t ovalue); }
5171.77Spooka238	COMPAT_50	{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
5181.75Schristos			    netbsd32_itimerspec50p_t value); }
5191.77Spooka239	STD		{ int|netbsd32||timer_getoverrun( \
5201.75Schristos			    netbsd32_timer_t timerid); }
5211.1Smrg;
5221.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
5231.1Smrg;
5241.77Spooka240	COMPAT_50	{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
5251.75Schristos			    netbsd32_timespec50p_t rmtp); }
5261.77Spooka241	STD		{ int|netbsd32||fdatasync(int fd); }
5271.77Spooka242	STD		{ int|netbsd32||mlockall(int flags); }
5281.77Spooka243	NOARGS		{ int|sys||munlockall(void); }
5291.77Spooka244	COMPAT_50	{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
5301.37Scube			    netbsd32_siginfop_t info, \
5311.75Schristos			    netbsd32_timespec50p_t timeout); }
5321.1Smrg245	UNIMPL
5331.1Smrg246	UNIMPL
5341.75Schristos#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC))
5351.77Spooka247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
5361.75Schristos			    netbsd32_semidp_t idp); }
5371.77Spooka248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
5381.75Schristos			    int oflag, mode_t mode, unsigned int value, \
5391.75Schristos			    netbsd32_semidp_t idp); }
5401.77Spooka249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
5411.77Spooka250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
5421.77Spooka251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
5431.77Spooka252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
5441.77Spooka253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
5451.77Spooka254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
5461.42Scube			    netbsd32_intp value); }
5471.77Spooka255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
5481.42Scube256	UNIMPL		sys__ksem_timedwait
5491.42Scube#else
5501.42Scube247	EXCL		sys__ksem_init
5511.42Scube248	EXCL		sys__ksem_open
5521.42Scube249	EXCL 		sys__ksem_unlink
5531.42Scube250	EXCL		sys__ksem_close
5541.42Scube251	EXCL		sys__ksem_post
5551.42Scube252	EXCL		sys__ksem_wait
5561.42Scube253	EXCL		sys__ksem_trywait
5571.42Scube254	EXCL		sys__ksem_getvalue
5581.42Scube255	EXCL		sys__ksem_destroy
5591.42Scube256	UNIMPL		sys__ksem_timedwait
5601.42Scube#endif
5611.1Smrg257	UNIMPL
5621.1Smrg258	UNIMPL
5631.1Smrg259	UNIMPL
5641.1Smrg260	UNIMPL
5651.1Smrg261	UNIMPL
5661.1Smrg262	UNIMPL
5671.1Smrg263	UNIMPL
5681.1Smrg264	UNIMPL
5691.1Smrg265	UNIMPL
5701.1Smrg266	UNIMPL
5711.1Smrg267	UNIMPL
5721.1Smrg268	UNIMPL
5731.1Smrg269	UNIMPL
5741.77Spooka270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
5751.75Schristos			    netbsd32_charp to); }
5761.77Spooka271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
5771.75Schristos			    int misc); }
5781.77Spooka272	COMPAT_30	{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
5791.75Schristos			    netbsd32_size_t count); }
5801.77Spooka273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
5811.75Schristos			    netbsd32_size_t len, int inherit); }
5821.77Spooka274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
5831.75Schristos			    mode_t mode); }
5841.77Spooka275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
5851.75Schristos			    gid_t gid); }
5861.77Spooka276	COMPAT_50	{ int|netbsd32||lutimes(netbsd32_charp path, \
5871.75Schristos			    netbsd32_timeval50p_t tptr); }
5881.77Spooka277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
5891.75Schristos			    netbsd32_size_t len, int flags); }
5901.77Spooka278	COMPAT_30	{ int|netbsd32|13|stat(netbsd32_charp path, \
5911.75Schristos			    netbsd32_stat13p_t ub); }
5921.77Spooka279	COMPAT_30	{ int|netbsd32|13|fstat(int fd, \
5931.75Schristos			    netbsd32_stat13p_t sb); }
5941.77Spooka280	COMPAT_30	{ int|netbsd32|13|lstat(netbsd32_charp path, \
5951.75Schristos			    netbsd32_stat13p_t ub); }
5961.77Spooka281	STD		{ int|netbsd32|14|sigaltstack(\
5971.75Schristos			    netbsd32_sigaltstackp_t nss, \
5981.75Schristos			    netbsd32_sigaltstackp_t oss); }
5991.77Spooka282	NOARGS		{ int|sys|14|vfork(void); }
6001.77Spooka283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
6011.75Schristos			    uid_t uid, gid_t gid); }
6021.77Spooka284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
6031.75Schristos			    gid_t gid); }
6041.77Spooka285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
6051.75Schristos			    uid_t uid, gid_t gid); }
6061.77Spooka286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
6071.77Spooka287	STD		{ int|netbsd32||__clone(int flags, \
6081.75Schristos			    netbsd32_voidp stack); }
6091.77Spooka288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
6101.75Schristos			    int pid); }
6111.77Spooka289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
6121.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6131.75Schristos			    off_t offset); }
6141.77Spooka290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
6151.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6161.75Schristos			    off_t offset); }
6171.77Spooka291	STD		{ int|netbsd32|14|sigaction(int signum, \
6181.64Sdsl			    netbsd32_sigactionp_t nsa, \
6191.11Seeh			    netbsd32_sigactionp_t osa); }
6201.77Spooka292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
6211.77Spooka293	STD		{ int|netbsd32|14|sigprocmask(int how, \
6221.64Sdsl			    netbsd32_sigsetp_t set, \
6231.11Seeh			    netbsd32_sigsetp_t oset); }
6241.77Spooka294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
6251.77Spooka295	COMPAT_16	{ int|netbsd32|14|sigreturn( \
6261.75Schristos			    netbsd32_sigcontextp_t sigcntxp); }
6271.77Spooka296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
6281.75Schristos			    netbsd32_size_t length); }
6291.77Spooka297	STD		{ int|netbsd32||fchroot(int fd); }
6301.77Spooka298	COMPAT_30	{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
6311.11Seeh			   int flags); }
6321.77Spooka299	COMPAT_30	{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
6331.45Scube			    netbsd32_stat13p_t sb); }
6341.77Spooka300	COMPAT_20	{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
6351.75Schristos			    netbsd32_stat50p_t buf); }
6361.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
6371.77Spooka301	COMPAT_50	{ int|netbsd32|14|semctl(int semid, int semnum, \
6381.75Schristos			    int cmd, ... netbsd32_semun50p_t arg); }
6391.11Seeh#else
6401.12Schristos301	EXCL		__semctl14
6411.11Seeh#endif
6421.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
6431.77Spooka302	COMPAT_50	{ int|netbsd32|13|msgctl(int msqid, int cmd, \
6441.75Schristos			    netbsd32_msqid_ds50p_t buf); }
6451.11Seeh#else
6461.11Seeh302	EXCL		__msgctl13
6471.11Seeh#endif
6481.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
6491.77Spooka303	COMPAT_50	{ int|netbsd32|13|shmctl(int shmid, int cmd, \
6501.75Schristos			    netbsd32_shmid_ds50p_t buf); }
6511.11Seeh#else
6521.11Seeh303	EXCL		__shmctl13
6531.11Seeh#endif
6541.77Spooka304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
6551.75Schristos			    netbsd32_u_long flags); }
6561.77Spooka305	NOARGS 		{ int|sys||issetugid(void); }
6571.77Spooka306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
6581.75Schristos			    netbsd32_voidp addr, netbsd32_size_t len); }
6591.77Spooka307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
6601.77Spooka308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp, \
6611.24Sfvdl			    uint32_t flags, netbsd32_lwpidp new_lwp); }
6621.77Spooka309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
6631.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
6641.77Spooka310	NOARGS		{ int|sys||_lwp_exit(void); }
6651.77Spooka311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
6661.77Spooka312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
6671.44Scube			    netbsd32_lwpidp departed); }
6681.77Spooka313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
6691.77Spooka314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
6701.77Spooka315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
6711.77Spooka316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
6721.77Spooka317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
6731.77Spooka318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
6741.77Spooka319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
6751.77Spooka320	COMPAT_50	{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
6761.75Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
6771.75Schristos			    netbsd32_voidp unparkhint); }
6781.77Spooka321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
6791.75Schristos			    netbsd32_voidp hint); }
6801.77Spooka322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
6811.75Schristos			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
6821.75Schristos			    netbsd32_voidp hint); }
6831.77Spooka323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
6841.64Sdsl				netbsd32_charp name); }
6851.77Spooka324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
6861.63Sad				netbsd32_charp name, netbsd32_size_t len); }
6871.77Spooka325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
6881.63Sad				netbsd32_pointer_t address); }
6891.18Smrg326	UNIMPL
6901.18Smrg327	UNIMPL
6911.18Smrg328	UNIMPL
6921.18Smrg329	UNIMPL
6931.77Spooka330	STD		{ int|netbsd32||sa_register(netbsd32_sa_upcall_t new, \
6941.70Swrstuden			    netbsd32_sa_upcallp_t old, int flags, \
6951.70Swrstuden			    netbsd32_ssize_t stackinfo_offset); }
6961.77Spooka331	STD		{ int|netbsd32||sa_stacks(int num, \
6971.75Schristos			    netbsd32_stackp_t stacks); }
6981.77Spooka332	NOARGS		{ int|sys||sa_enable(void); }
6991.77Spooka333	STD		{ int|netbsd32||sa_setconcurrency(int concurrency); }
7001.77Spooka334	NOARGS		{ int|sys||sa_yield(void); }
7011.77Spooka335	STD		{ int|netbsd32||sa_preempt(int sa_id); }
7021.44Scube336	OBSOL		sys_sa_unblockyield
7031.18Smrg337	UNIMPL
7041.18Smrg338	UNIMPL
7051.18Smrg339	UNIMPL
7061.77Spooka340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
7071.64Sdsl			    netbsd32_sigactionp_t nsa, \
7081.22Sscw			    netbsd32_sigactionp_t osa, \
7091.22Sscw			    netbsd32_voidp tramp, int vers); }
7101.26Scube341	UNIMPL
7111.26Scube342	UNIMPL
7121.77Spooka343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
7131.75Schristos			    netbsd32_size_t len, int op); }
7141.77Spooka344	NOARGS		{ int|sys||kqueue(void); }
7151.77Spooka345	COMPAT_50	{ int|netbsd32||kevent(int fd, \
7161.75Schristos			    netbsd32_keventp_t changelist, \
7171.75Schristos			    netbsd32_size_t nchanges, \
7181.75Schristos			    netbsd32_keventp_t eventlist, \
7191.75Schristos			    netbsd32_size_t nevents, \
7201.75Schristos			    netbsd32_timespec50p_t timeout); }
7211.74Smrg; Scheduling system calls.
7221.77Spooka346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
7231.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
7241.77Spooka347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
7251.75Schristos			    netbsd32_intp policy, \
7261.75Schristos			    netbsd32_sched_paramp_t params); }
7271.77Spooka348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
7281.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7291.75Schristos			    const netbsd32_cpusetp_t cpuset); }
7301.77Spooka349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
7311.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7321.75Schristos			    netbsd32_cpusetp_t cpuset); }
7331.77Spooka350	NOARGS 		{ int|sys||sched_yield(void); }
7341.26Scube351	UNIMPL
7351.26Scube352	UNIMPL
7361.26Scube353	UNIMPL
7371.77Spooka354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
7381.75Schristos			    off_t start, off_t length); }
7391.77Spooka355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
7401.75Schristos			    int count); }
7411.77Spooka356	STD		{ int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
7421.26Scube			    netbsd32_size_t bufsize, int flags); }
7431.77Spooka357	STD		{ int|netbsd32||statvfs1(netbsd32_charp path, \
7441.26Scube			    netbsd32_statvfsp_t buf, int flags); }
7451.77Spooka358	STD		{ int|netbsd32||fstatvfs1(int fd, \
7461.75Schristos			    netbsd32_statvfsp_t buf, int flags); }
7471.77Spooka359	COMPAT_30	{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
7481.26Scube			    netbsd32_statvfsp_t buf, int flags); }
7491.77Spooka360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
7501.75Schristos			    int cmd, netbsd32_charp filename, \
7511.75Schristos			    int attrnamespace, netbsd32_charp attrname); }
7521.77Spooka361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
7531.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7541.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7551.77Spooka362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
7561.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7571.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7581.77Spooka363	STD		{ int|netbsd32||extattr_delete_file( \
7591.75Schristos			    netbsd32_charp path, int attrnamespace, \
7601.75Schristos			    netbsd32_charp attrname); }
7611.77Spooka364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
7621.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7631.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7641.77Spooka365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
7651.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7661.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7671.77Spooka366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
7681.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
7691.77Spooka367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
7701.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7711.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7721.77Spooka368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
7731.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
7741.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
7751.77Spooka369	STD		{ int|netbsd32||extattr_delete_link( \
7761.75Schristos			    netbsd32_charp path, int attrnamespace, \
7771.75Schristos			    netbsd32_charp attrname); }
7781.77Spooka370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
7791.29Scube			    int attrnamespace, netbsd32_voidp data, \
7801.29Scube			    netbsd32_size_t nbytes); }
7811.77Spooka371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
7821.29Scube			    int attrnamespace, netbsd32_voidp data, \
7831.29Scube			    netbsd32_size_t nbytes); }
7841.77Spooka372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
7851.29Scube			    int attrnamespace, netbsd32_voidp data, \
7861.29Scube			    netbsd32_size_t nbytes); }
7871.77Spooka373	COMPAT_50	{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
7881.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
7891.75Schristos			    netbsd32_timespec50p_t ts, \
7901.75Schristos			    netbsd32_sigsetp_t mask); }
7911.77Spooka374	COMPAT_50	{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
7921.75Schristos			    u_int nfds, netbsd32_timespec50p_t ts, \
7931.75Schristos			    netbsd32_sigsetp_t mask); }
7941.77Spooka375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
7951.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7961.35Scube			    netbsd32_size_t size, int flags); }
7971.77Spooka376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
7981.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
7991.35Scube			    netbsd32_size_t size, int flags); }
8001.77Spooka377	STD		{ int|netbsd32||fsetxattr(int fd, \
8011.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8021.35Scube			    netbsd32_size_t size, int flags); }
8031.77Spooka378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
8041.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8051.35Scube			    netbsd32_size_t size); }
8061.77Spooka379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
8071.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8081.35Scube			    netbsd32_size_t size); }
8091.77Spooka380	STD		{ int|netbsd32||fgetxattr(int fd, \
8101.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8111.35Scube			    netbsd32_size_t size); }
8121.77Spooka381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
8131.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8141.77Spooka382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
8151.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8161.77Spooka383	STD		{ int|netbsd32||flistxattr(int fd, \
8171.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8181.77Spooka384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
8191.64Sdsl			    netbsd32_charp name); }
8201.77Spooka385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
8211.64Sdsl			    netbsd32_charp name); }
8221.77Spooka386	STD		{ int|netbsd32||fremovexattr(int fd, \
8231.64Sdsl			    netbsd32_charp name); }
8241.77Spooka387     COMPAT_50	{ int|netbsd32|30|stat(netbsd32_charp path, \
8251.75Schristos			    netbsd32_stat50p_t ub); }
8261.77Spooka388     COMPAT_50	{ int|netbsd32|30|fstat(int fd, \
8271.75Schristos			    netbsd32_stat50p_t sb); }
8281.77Spooka389     COMPAT_50	{ int|netbsd32|30|lstat( \
8291.75Schristos			    netbsd32_charp path, netbsd32_stat50p_t ub); }
8301.77Spooka390     STD             { int|netbsd32|30|getdents(int fd, \
8311.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
8321.68Smartin391	IGNORED		old posix fadvise
8331.77Spooka392	COMPAT_30	{ int|netbsd32|30|fhstat( \
8341.64Sdsl			    netbsd32_fhandlep_t fhp, \
8351.75Schristos			    netbsd32_stat50p_t sb); }
8361.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
8371.77Spooka393	COMPAT_50	{ int|netbsd32||ntp_gettime( \
8381.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
8391.78Schristos#else
8401.78Schristos393	EXCL		__ntp_gettime30
8411.78Schristos#endif
8421.77Spooka394	STD		{ int|netbsd32|30|socket(int domain, int type, \
8431.75Schristos			    int protocol); }
8441.77Spooka395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
8451.75Schristos			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
8461.77Spooka396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
8471.51Smartin			    netbsd32_size_t fh_size, int flags); }
8481.77Spooka397	STD		{ int|netbsd32|40|fhstatvfs1(	\
8491.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
8501.51Smartin			    netbsd32_statvfsp_t buf, int flags); }
8511.77Spooka398	COMPAT_50	{ int|netbsd32|40|fhstat(	\
8521.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
8531.75Schristos			    netbsd32_stat50p_t sb); }
8541.65Sdsl
8551.65Sdsl; Asynchronous I/O system calls
8561.76Spooka399	UNIMPL		sys_aio_cancel
8571.76Spooka400	UNIMPL		sys_aio_error
8581.76Spooka401	UNIMPL		sys_aio_fsync
8591.76Spooka402	UNIMPL		sys_aio_read
8601.76Spooka403	UNIMPL		sys_aio_return
8611.76Spooka404	UNIMPL		sys_aio_suspend
8621.76Spooka405     UNIMPL		sys_aio_write
8631.76Spooka406	UNIMPL		sys_lio_listio
8641.65Sdsl
8651.65Sdsl407	UNIMPL
8661.65Sdsl408	UNIMPL
8671.65Sdsl409	UNIMPL
8681.65Sdsl
8691.81Smatt410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
8701.81Smatt			    netbsd32_charp path, int flags, \
8711.81Smatt			    netbsd32_voidp data, netbsd32_size_t data_len); }
8721.77Spooka411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
8731.65Sdsl			    netbsd32_voidp old_address, \
8741.65Sdsl			    netbsd32_size_t old_size, \
8751.65Sdsl			    netbsd32_voidp new_address, \
8761.65Sdsl			    netbsd32_size_t new_size, int flags); }
8771.67Smartin
8781.67Smartin412	UNIMPL
8791.67Smartin413	UNIMPL
8801.67Smartin414	UNIMPL
8811.67Smartin415	UNIMPL
8821.67Smartin
8831.80Spooka416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
8841.67Smartin			    off_t offset, off_t len, int advice); }
8851.77Spooka417	STD 		{ int|netbsd32|50|select(int nd, \
8861.75Schristos			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
8871.75Schristos			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
8881.77Spooka418	STD 		{ int|netbsd32|50|gettimeofday( \
8891.75Schristos			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
8901.77Spooka419	STD 		{ int|netbsd32|50|settimeofday( \
8911.75Schristos			    const netbsd32_timevalp_t tv, \
8921.75Schristos			    const netbsd32_voidp tzp); }
8931.77Spooka420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
8941.75Schristos			    const netbsd32_timevalp_t tptr); }
8951.77Spooka421	STD		{ int|netbsd32|50|adjtime( \
8961.75Schristos			    const netbsd32_timevalp_t delta, \
8971.75Schristos			    netbsd32_timevalp_t olddelta); }
8981.75Schristos#if defined(LFS) || !defined(_KERNEL_OPT)
8991.77Spooka422	STD		{ int|netbsd32|50|lfs_segwait( \
9001.75Schristos			    netbsd32_fsid_tp_t fsidp, \
9011.75Schristos			    netbsd32_timevalp_t tv); }
9021.75Schristos#else
9031.75Schristos422	EXCL		__lfs_segwait50
9041.75Schristos#endif
9051.77Spooka423	STD 		{ int|netbsd32|50|futimes(int fd, \
9061.75Schristos			    const netbsd32_timevalp_t tptr); }
9071.77Spooka424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
9081.75Schristos			    const netbsd32_timevalp_t tptr); }
9091.77Spooka425	STD		{ int|netbsd32|50|setitimer(int which, \
9101.75Schristos			    const netbsd32_itimervalp_t itv, \
9111.75Schristos			    netbsd32_itimervalp_t oitv); }
9121.77Spooka426	STD		{ int|netbsd32|50|getitimer(int which, \
9131.75Schristos			    netbsd32_itimervalp_t itv); }
9141.77Spooka427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
9151.75Schristos			    netbsd32_timespecp_t tp); }
9161.77Spooka428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
9171.75Schristos			    const netbsd32_timespecp_t tp); }
9181.77Spooka429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
9191.75Schristos			    netbsd32_timespecp_t tp); }
9201.77Spooka430	STD 		{ int|netbsd32|50|nanosleep( \
9211.75Schristos			    const netbsd32_timespecp_t rqtp, \
9221.75Schristos			    netbsd32_timespecp_t rmtp); }
9231.77Spooka431	STD 		{ int|netbsd32|50|__sigtimedwait( \
9241.75Schristos			    const netbsd32_sigsetp_t set, \
9251.75Schristos			    netbsd32_siginfop_t info, \
9261.75Schristos			    netbsd32_timespecp_t timeout); }
9271.76Spooka432	UNIMPL 		netbsd32___mq_timedsend50
9281.76Spooka433	UNIMPL 		netbsd32___mq_timedreceive50
9291.77Spooka434	STD 		{ int|netbsd32|50|_lwp_park( \
9301.75Schristos			    const netbsd32_timespecp_t ts, \
9311.75Schristos			    lwpid_t unpark, const netbsd32_voidp hint, \
9321.75Schristos			    const netbsd32_voidp unparkhint); }
9331.77Spooka435	STD 		{ int|netbsd32|50|kevent(int fd, \
9341.75Schristos			    const netbsd32_keventp_t changelist, \
9351.75Schristos			    netbsd32_size_t nchanges, \
9361.75Schristos			    netbsd32_keventp_t eventlist, \
9371.75Schristos			    netbsd32_size_t nevents, \
9381.75Schristos			    const netbsd32_timespecp_t timeout); }
9391.77Spooka436	STD 		{ int|netbsd32|50|pselect(int nd, \
9401.75Schristos			    netbsd32_fd_setp_t in, \
9411.75Schristos			    netbsd32_fd_setp_t ou, \
9421.75Schristos			    netbsd32_fd_setp_t ex, \
9431.75Schristos			    const netbsd32_timespecp_t ts, \
9441.75Schristos			    const netbsd32_sigsetp_t mask); }
9451.77Spooka437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
9461.75Schristos			    u_int nfds, const netbsd32_timespecp_t ts, \
9471.75Schristos			    const netbsd32_sigsetp_t mask); }
9481.76Spooka438	UNIMPL 		netbsd32___aio_suspend50
9491.77Spooka439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
9501.75Schristos			    netbsd32_statp_t ub); }
9511.77Spooka440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
9521.77Spooka441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
9531.75Schristos			    netbsd32_statp_t ub); }
9541.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
9551.77Spooka442	STD 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
9561.75Schristos			    int cmd, ... netbsd32_semunp_t arg); }
9571.75Schristos#else
9581.75Schristos442	EXCL		____semctl50
9591.75Schristos#endif
9601.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
9611.77Spooka443	STD 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
9621.75Schristos			    netbsd32_shmid_dsp_t buf); }
9631.75Schristos#else
9641.75Schristos443	EXCL 		____shmctl50
9651.75Schristos#endif
9661.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
9671.77Spooka444	STD 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
9681.75Schristos			    netbsd32_msqid_dsp_t buf); }
9691.75Schristos#else
9701.75Schristos444	EXCL 		____msgctl50
9711.75Schristos#endif
9721.77Spooka445	STD 		{ int|netbsd32|50|getrusage(int who, \
9731.75Schristos			    netbsd32_rusagep_t rusage); }
9741.77Spooka446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
9751.75Schristos			    int flags, const netbsd32_itimerspecp_t value, \
9761.75Schristos			    netbsd32_itimerspecp_t ovalue); }
9771.77Spooka447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
9781.75Schristos			    netbsd32_itimerspecp_t value); }
9791.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
9801.77Spooka448	STD		{ int|netbsd32|50|ntp_gettime( \
9811.75Schristos			    netbsd32_ntptimevalp_t ntvp); }
9821.75Schristos#else
9831.75Schristos448	EXCL		___ntp_gettime50
9841.75Schristos#endif
9851.77Spooka449	STD 		{ int|netbsd32|50|wait4(int pid, \
9861.75Schristos			    netbsd32_intp status, \
9871.75Schristos			    int options, netbsd32_rusagep_t rusage); }
9881.77Spooka450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
9891.79Snjoly			    mode_t mode, netbsd32_dev_t dev); }
9901.77Spooka451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
9911.75Schristos			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
992