syscalls.master revision 1.141
11.141Sthorpej	$NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej 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.126Schristos#include "opt_quota.h"
441.16Smycroft#endif
451.1Smrg
461.1Smrg#include <sys/param.h>
471.1Smrg#include <sys/systm.h>
481.1Smrg#include <sys/signal.h>
491.1Smrg#include <sys/mount.h>
501.1Smrg#include <sys/syscallargs.h>
511.1Smrg
521.7Smrg#include <compat/netbsd32/netbsd32.h>
531.127Schristos#include <compat/netbsd32/netbsd32_syscall.h>
541.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
551.16Smycroft
561.16Smycroft%%
571.1Smrg
581.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
591.1Smrg; are reserved for use in future Berkeley releases.
601.1Smrg; Additional system calls implemented in vendor and other
611.1Smrg; redistributions should be placed in the reserved range at the end
621.1Smrg; of the current calls.
631.1Smrg
641.77Spooka0	INDIR		{ int|netbsd32||syscall(int code, \
651.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
661.77Spooka1	STD		{ void|netbsd32||exit(int rval); }
671.77Spooka2	NOARGS		{ int|sys||fork(void); }
681.77Spooka3	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
691.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
701.77Spooka4	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
711.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
721.77Spooka5	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
731.75Schristos			    ... mode_t mode); }
741.77Spooka6	STD		{ int|netbsd32||close(int fd); }
751.125Spgoyette7	COMPAT_50 MODULAR compat_netbsd32_50	\
761.125Spgoyette			{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
771.75Schristos			    int options, netbsd32_rusage50p_t rusage); }
781.125Spgoyette8	COMPAT_43 MODULAR compat_netbsd32_43	\
791.125Spgoyette			{ int|netbsd32||ocreat(netbsd32_charp path, \
801.75Schristos			    mode_t mode); }
811.77Spooka9	STD		{ int|netbsd32||link(netbsd32_charp path, \
821.75Schristos			    netbsd32_charp link); }
831.77Spooka10	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
841.1Smrg11	OBSOL		execv
851.77Spooka12	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
861.77Spooka13	STD		{ int|netbsd32||fchdir(int fd); }
871.125Spgoyette14	COMPAT_50 MODULAR compat_netbsd32_50	\
881.125Spgoyette			{ 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.125Spgoyette18	COMPAT_20 MODULAR compat_netbsd32_20	\
951.125Spgoyette			{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
961.75Schristos			    netbsd32_long bufsize, int flags); }
971.125Spgoyette19	COMPAT_43 MODULAR compat_netbsd32_43	\
981.125Spgoyette			{ netbsd32_long|netbsd32||olseek(int fd, \
991.75Schristos			    netbsd32_long offset, int whence); }
1001.131Skamil20	NOARGS 		{ pid_t|sys||getpid_with_ppid(void); } getpid
1011.125Spgoyette21	COMPAT_40 MODULAR compat_netbsd32_40	\
1021.125Spgoyette			{ int|netbsd32||mount(netbsd32_charp type, \
1031.75Schristos			    netbsd32_charp path, int flags, \
1041.75Schristos			    netbsd32_voidp data); }
1051.77Spooka22	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
1061.75Schristos			    int flags); }
1071.77Spooka23	STD		{ int|netbsd32||setuid(uid_t uid); }
1081.131Skamil24	NOARGS 		{ uid_t|sys||getuid_with_euid(void); } getuid
1091.77Spooka25	NOARGS		{ uid_t|sys||geteuid(void); }
1101.115Sskrll26	STD MODULAR compat_netbsd32_ptrace \
1111.115Sskrll			{ int|netbsd32||ptrace(int req, pid_t pid, \
1121.75Schristos			    netbsd32_voidp addr, int data); }
1131.77Spooka27	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
1141.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1151.77Spooka28	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
1161.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1171.77Spooka29	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
1181.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
1191.75Schristos			    int flags, netbsd32_sockaddrp_t from, \
1201.75Schristos			    netbsd32_intp fromlenaddr); }
1211.77Spooka30	STD		{ int|netbsd32||accept(int s, \
1221.75Schristos			    netbsd32_sockaddrp_t name, \
1231.75Schristos			    netbsd32_intp anamelen); }
1241.77Spooka31	STD		{ int|netbsd32||getpeername(int fdes, \
1251.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1261.77Spooka32	STD		{ int|netbsd32||getsockname(int fdes, \
1271.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1281.77Spooka33	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
1291.77Spooka34	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
1301.75Schristos			    netbsd32_u_long flags); }
1311.77Spooka35	STD		{ int|netbsd32||fchflags(int fd, \
1321.75Schristos			    netbsd32_u_long flags); }
1331.77Spooka36	NOARGS		{ void|sys||sync(void); }
1341.77Spooka37	STD		{ int|netbsd32||kill(int pid, int signum); }
1351.125Spgoyette38	COMPAT_43 MODULAR compat_netbsd32_43	\
1361.125Spgoyette			{ int|netbsd32||stat43(netbsd32_charp path, \
1371.75Schristos			    netbsd32_stat43p_t ub); }
1381.77Spooka39	NOARGS 		{ pid_t|sys||getppid(void); }
1391.125Spgoyette40	COMPAT_43 MODULAR compat_netbsd32_43	\
1401.125Spgoyette			{ int|netbsd32||lstat43(netbsd32_charp path, \
1411.75Schristos			    netbsd32_stat43p_t ub); }
1421.77Spooka41	STD		{ int|netbsd32||dup(int fd); }
1431.77Spooka42	NOARGS		{ int|sys||pipe(void); }
1441.77Spooka43	NOARGS 		{ gid_t|sys||getegid(void); }
1451.77Spooka44	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
1461.75Schristos			    netbsd32_size_t size, netbsd32_u_long offset, \
1471.75Schristos			    u_int scale); }
1481.77Spooka45	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
1491.75Schristos			    int facs, int pid); }
1501.77Spooka46	STD		{ int|netbsd32||sigaction(int signum, \
1511.75Schristos			    netbsd32_sigactionp_t nsa, \
1521.75Schristos			    netbsd32_sigactionp_t osa); }
1531.131Skamil47	NOARGS 		{ gid_t|sys||getgid_with_egid(void); } getgid
1541.125Spgoyette48	COMPAT_13 MODULAR compat_netbsd32_13	\
1551.125Spgoyette			{ int|netbsd32||sigprocmask(int how, \
1561.3Seeh			    int mask); } sigprocmask13
1571.77Spooka49	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
1581.75Schristos			    u_int namelen); }
1591.77Spooka50	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
1601.77Spooka51	STD		{ int|netbsd32||acct(netbsd32_charp path); }
1611.125Spgoyette52	COMPAT_13 MODULAR compat_netbsd32_13	\
1621.125Spgoyette		 	{ int|sys||sigpending(void); } sigpending13
1631.125Spgoyette53	COMPAT_13 MODULAR compat_netbsd32_13	\
1641.125Spgoyette			{ int|netbsd32||sigaltstack13( \
1651.75Schristos			    netbsd32_sigaltstack13p_t nss, \
1661.75Schristos			    netbsd32_sigaltstack13p_t oss); }
1671.77Spooka54	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
1681.75Schristos			    ... netbsd32_voidp data); }
1691.125Spgoyette55	COMPAT_12 MODULAR compat_netbsd32_12	\
1701.125Spgoyette			{ int|netbsd32||reboot(int opt); }
1711.77Spooka56	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
1721.77Spooka57	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
1731.75Schristos			    netbsd32_charp link); }
1741.77Spooka58	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
1751.75Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
1761.77Spooka59	STD		{ int|netbsd32||execve(netbsd32_charp path, \
1771.75Schristos			    netbsd32_charpp argp, netbsd32_charpp envp); }
1781.77Spooka60	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
1791.77Spooka61	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
1801.125Spgoyette62	COMPAT_43 MODULAR compat_netbsd32_43	\
1811.125Spgoyette			{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
1821.125Spgoyette63	COMPAT_43 MODULAR compat_netbsd32_43	\
1831.125Spgoyette			{ int|netbsd32||ogetkerninfo(int op, \
1841.75Schristos			    netbsd32_charp where, netbsd32_intp size, \
1851.75Schristos			    int arg); }
1861.132Spgoyette64	COMPAT_43 MODULAR compat_43	\
1871.125Spgoyette			{ int|sys||getpagesize(void); } ogetpagesize
1881.125Spgoyette65	COMPAT_12 MODULAR compat_netbsd32_12	\
1891.125Spgoyette			{ int|netbsd32||msync(netbsd32_voidp addr, \
1901.75Schristos			    netbsd32_size_t len); }
1911.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1921.77Spooka66	NOARGS		{ int|sys||vfork(void); }
1931.1Smrg67	OBSOL		vread
1941.1Smrg68	OBSOL		vwrite
1951.118Skamil69	OBSOL		sbrk
1961.117Skamil70	OBSOL		sstk
1971.125Spgoyette71	COMPAT_43 MODULAR compat_netbsd32_43	\
1981.125Spgoyette			{ int|netbsd32||ommap(netbsd32_voidp addr, \
1991.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
2001.75Schristos			    netbsd32_long pos); }
2011.120Skamil72	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
2021.77Spooka73	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
2031.75Schristos			    netbsd32_size_t len); }
2041.77Spooka74	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
2051.75Schristos			    netbsd32_size_t len, int prot); }
2061.77Spooka75	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
2071.75Schristos			    netbsd32_size_t len, int behav); }
2081.1Smrg76	OBSOL		vhangup
2091.1Smrg77	OBSOL		vlimit
2101.77Spooka78	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
2111.75Schristos			    netbsd32_size_t len, netbsd32_charp vec); }
2121.77Spooka79	STD		{ int|netbsd32||getgroups(int gidsetsize, \
2131.75Schristos			    netbsd32_gid_tp gidset); }
2141.77Spooka80	STD		{ int|netbsd32||setgroups(int gidsetsize, \
2151.75Schristos			    netbsd32_gid_tp gidset); }
2161.77Spooka81	NOARGS 		{ int|sys||getpgrp(void); }
2171.77Spooka82	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
2181.125Spgoyette83	COMPAT_50 MODULAR compat_netbsd32_50	\
2191.125Spgoyette			{ int|netbsd32||setitimer(int which, \
2201.75Schristos			    netbsd32_itimerval50p_t itv, \
2211.75Schristos			    netbsd32_itimerval50p_t oitv); }
2221.132Spgoyette84	COMPAT_43 MODULAR compat_43	\
2231.125Spgoyette			{ int|sys||wait(void); } owait
2241.125Spgoyette85	COMPAT_12 MODULAR compat_netbsd32_12	\
2251.125Spgoyette			{ int|netbsd32||oswapon(netbsd32_charp name); }
2261.125Spgoyette86	COMPAT_50 MODULAR compat_netbsd32_50	\
2271.125Spgoyette			{ int|netbsd32||getitimer(int which, \
2281.75Schristos			    netbsd32_itimerval50p_t itv); }
2291.125Spgoyette87	COMPAT_43 MODULAR compat_netbsd32_43	\
2301.125Spgoyette			{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
2311.75Schristos			    u_int len); }
2321.125Spgoyette88	COMPAT_43 MODULAR compat_netbsd32_43	\
2331.125Spgoyette			{ int|netbsd32||osethostname(netbsd32_charp hostname, \
2341.75Schristos			    u_int len); }
2351.132Spgoyette89	COMPAT_43 MODULAR compat_43	\
2361.125Spgoyette			{ int|sys||getdtablesize(void); } ogetdtablesize
2371.77Spooka90	STD		{ int|netbsd32||dup2(int from, int to); }
2381.139Srin91	STD		{ netbsd32_ssize_t|netbsd32||getrandom( \
2391.139Srin			    netbsd32_voidp buf, netbsd32_size_t buflen, \
2401.139Srin			    unsigned int flags); }
2411.77Spooka92	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
2421.75Schristos			    ... netbsd32_voidp arg); }
2431.125Spgoyette93	COMPAT_50 MODULAR compat_netbsd32_50	\
2441.125Spgoyette			{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
2451.75Schristos			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
2461.75Schristos			    netbsd32_timeval50p_t tv); }
2471.1Smrg94	UNIMPL		setdopt
2481.77Spooka95	STD		{ int|netbsd32||fsync(int fd); }
2491.77Spooka96	STD		{ int|netbsd32||setpriority(int which, int who, \
2501.75Schristos			    int prio); }
2511.125Spgoyette97	COMPAT_30 MODULAR compat_netbsd32_30	\
2521.125Spgoyette			{ int|netbsd32||socket(int domain, int type, \
2531.75Schristos			    int protocol); }
2541.77Spooka98	STD		{ int|netbsd32||connect(int s, \
2551.75Schristos			    netbsd32_sockaddrp_t name, int namelen); }
2561.125Spgoyette99	COMPAT_43 MODULAR compat_netbsd32_43	\
2571.125Spgoyette			{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
2581.75Schristos			    netbsd32_intp anamelen); }
2591.77Spooka100	STD		{ int|netbsd32||getpriority(int which, int who); }
2601.125Spgoyette101	COMPAT_43 MODULAR compat_netbsd32_43	\
2611.125Spgoyette			{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
2621.75Schristos			    int len, int flags); }
2631.125Spgoyette102	COMPAT_43 MODULAR compat_netbsd32_43	\
2641.125Spgoyette			{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
2651.75Schristos			    int len, int flags); }
2661.125Spgoyette103	COMPAT_13 MODULAR compat_netbsd32_13	\
2671.125Spgoyette			{ int|netbsd32||sigreturn( \
2681.75Schristos			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
2691.77Spooka104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
2701.75Schristos			    int namelen); }
2711.77Spooka105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
2721.75Schristos			    netbsd32_voidp val, int valsize); }
2731.77Spooka106	STD		{ int|netbsd32||listen(int s, int backlog); }
2741.1Smrg107	OBSOL		vtimes
2751.125Spgoyette108	COMPAT_43 MODULAR compat_netbsd32_43	\
2761.125Spgoyette			{ int|netbsd32||osigvec(int signum, \
2771.75Schristos			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
2781.125Spgoyette109	COMPAT_43 MODULAR compat_netbsd32_43	\
2791.125Spgoyette			{ int|netbsd32||sigblock(int mask); }
2801.125Spgoyette110	COMPAT_43 MODULAR compat_netbsd32_43	\
2811.125Spgoyette			{ int|netbsd32||sigsetmask(int mask); }
2821.125Spgoyette111	COMPAT_13 MODULAR compat_netbsd32_13	\
2831.125Spgoyette			{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
2841.125Spgoyette112	COMPAT_43 MODULAR compat_netbsd32_43	\
2851.125Spgoyette			{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
2861.75Schristos			    netbsd32_sigstackp_t oss); }
2871.125Spgoyette113	COMPAT_43 MODULAR compat_netbsd32_43	\
2881.125Spgoyette			{ int|netbsd32||orecvmsg(int s, \
2891.75Schristos			    netbsd32_omsghdrp_t msg, int flags); }
2901.125Spgoyette114	COMPAT_43 MODULAR compat_netbsd32_43	\
2911.125Spgoyette			{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
2921.75Schristos			    int flags); }
2931.1Smrg115	OBSOL		vtrace
2941.125Spgoyette116	COMPAT_50 MODULAR compat_netbsd32_50	\
2951.125Spgoyette			{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
2961.75Schristos			    netbsd32_timezonep_t tzp); }
2971.125Spgoyette117	COMPAT_50 MODULAR compat_netbsd32_50	\
2981.125Spgoyette			{ int|netbsd32||getrusage(int who, \
2991.75Schristos			    netbsd32_rusage50p_t rusage); }
3001.77Spooka118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
3011.75Schristos			    netbsd32_voidp val, netbsd32_intp avalsize); }
3021.1Smrg119	OBSOL		resuba
3031.77Spooka120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
3041.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3051.77Spooka121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
3061.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3071.125Spgoyette122	COMPAT_50 MODULAR compat_netbsd32_50	\
3081.125Spgoyette			{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
3091.75Schristos			    netbsd32_timezonep_t tzp); }
3101.77Spooka123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
3111.77Spooka124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
3121.125Spgoyette125	COMPAT_43 MODULAR compat_netbsd32_43	\
3131.125Spgoyette			{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
3141.75Schristos			    netbsd32_size_t len, int flags, \
3151.75Schristos			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
3161.77Spooka126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
3171.77Spooka127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
3181.77Spooka128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
3191.75Schristos			    netbsd32_charp to); }
3201.125Spgoyette129	COMPAT_43 MODULAR compat_netbsd32_43	\
3211.125Spgoyette			{ int|netbsd32||otruncate(netbsd32_charp path, \
3221.75Schristos			    netbsd32_long length); }
3231.125Spgoyette130	COMPAT_43 MODULAR compat_netbsd32_43	\
3241.125Spgoyette			{ int|netbsd32||oftruncate(int fd, \
3251.75Schristos			    netbsd32_long length); }
3261.77Spooka131	STD		{ int|netbsd32||flock(int fd, int how); }
3271.77Spooka132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
3281.75Schristos			    mode_t mode); }
3291.77Spooka133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
3301.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
3311.75Schristos			    int flags, netbsd32_sockaddrp_t to, int tolen); }
3321.77Spooka134	STD		{ int|netbsd32||shutdown(int s, int how); }
3331.77Spooka135	STD		{ int|netbsd32||socketpair(int domain, int type, \
3341.75Schristos			    int protocol, netbsd32_intp rsv); }
3351.77Spooka136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
3361.75Schristos			    mode_t mode); }
3371.77Spooka137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
3381.125Spgoyette138	COMPAT_50 MODULAR compat_netbsd32_50	\
3391.125Spgoyette			{ int|netbsd32||utimes(netbsd32_charp path, \
3401.75Schristos			    netbsd32_timeval50p_t tptr); }
3411.1Smrg139	OBSOL		4.2 sigreturn
3421.125Spgoyette140	COMPAT_50 MODULAR compat_netbsd32_50	\
3431.125Spgoyette			{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
3441.75Schristos			    netbsd32_timeval50p_t olddelta); }
3451.125Spgoyette141	COMPAT_43 MODULAR compat_netbsd32_43	\
3461.125Spgoyette			{ int|netbsd32||ogetpeername(int fdes, \
3471.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3481.132Spgoyette142	COMPAT_43 MODULAR compat_43	\
3491.125Spgoyette			{ int32_t|sys||gethostid(void); } ogethostid
3501.125Spgoyette143	COMPAT_43 MODULAR compat_netbsd32_43	\
3511.125Spgoyette			{ int|netbsd32||sethostid(int32_t hostid); }
3521.125Spgoyette144	COMPAT_43 MODULAR compat_netbsd32_43	\
3531.125Spgoyette			{ int|netbsd32||ogetrlimit(int which, \
3541.75Schristos			    netbsd32_orlimitp_t rlp); }
3551.125Spgoyette145	COMPAT_43 MODULAR compat_netbsd32_43	\
3561.125Spgoyette			{ int|netbsd32||osetrlimit(int which, \
3571.75Schristos			    netbsd32_orlimitp_t rlp); }
3581.125Spgoyette146	COMPAT_43 MODULAR compat_netbsd32_43	\
3591.125Spgoyette			{ int|netbsd32||killpg(int pgid, int signum); }
3601.77Spooka147	NOARGS		{ int|sys||setsid(void); }
3611.133Spgoyette148	COMPAT_50 MODULAR compat_netbsd32_quota_50	\
3621.125Spgoyette			{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
3631.75Schristos			    int uid, netbsd32_voidp arg); }
3641.126Schristos149	EXCL 		compat_netbsd32_quota
3651.125Spgoyette150	COMPAT_43 MODULAR compat_netbsd32_43	\
3661.125Spgoyette			{ int|netbsd32||ogetsockname(int fdec, \
3671.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3681.1Smrg
3691.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
3701.1Smrg; system calls.  (This includes various calls added for compatibity
3711.1Smrg; with other Unix variants.)
3721.1Smrg; Some of these calls are now supported by BSD...
3731.1Smrg151	UNIMPL
3741.1Smrg152	UNIMPL
3751.1Smrg153	UNIMPL
3761.1Smrg154	UNIMPL
3771.110Spgoyette155	STD MODULAR compat_netbsd32_nfssrv	\
3781.110Spgoyette			{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
3791.125Spgoyette156	COMPAT_43 MODULAR compat_netbsd32_43	\
3801.125Spgoyette			{ int|netbsd32||ogetdirentries(int fd, \
3811.75Schristos			    netbsd32_charp buf, u_int count, \
3821.75Schristos			    netbsd32_longp basep); }
3831.125Spgoyette157	COMPAT_20 MODULAR compat_netbsd32_20	\
3841.125Spgoyette			{ int|netbsd32||statfs(netbsd32_charp path, \
3851.75Schristos			    netbsd32_statfsp_t buf); }
3861.125Spgoyette158	COMPAT_20 MODULAR compat_netbsd32_20	\
3871.125Spgoyette			{ int|netbsd32||fstatfs(int fd, \
3881.75Schristos			    netbsd32_statfsp_t buf); }
3891.1Smrg159	UNIMPL
3901.1Smrg160	UNIMPL
3911.125Spgoyette161	COMPAT_30 MODULAR compat_netbsd32_30	\
3921.125Spgoyette			{ int|netbsd32||getfh(netbsd32_charp fname, \
3931.75Schristos			    netbsd32_compat_30_fhandlep_t fhp); }
3941.125Spgoyette162	COMPAT_09 MODULAR compat_netbsd32_09	\
3951.125Spgoyette			{ int|netbsd32||ogetdomainname( \
3961.75Schristos			    netbsd32_charp domainname, int len); }
3971.125Spgoyette163	COMPAT_09 MODULAR compat_netbsd32_09	\
3981.125Spgoyette			{ int|netbsd32||osetdomainname( \
3991.75Schristos			    netbsd32_charp domainname, int len); }
4001.125Spgoyette164	COMPAT_09 MODULAR compat_netbsd32_09	\
4011.125Spgoyette			{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
4021.77Spooka165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
4031.137Sthorpej166	STD		{ int|netbsd32||__futex(netbsd32_intp uaddr, int op, \
4041.137Sthorpej			    int val, const netbsd32_timespecp_t timeout, \
4051.137Sthorpej			    netbsd32_intp uaddr2, int val2, int val3); }
4061.137Sthorpej167	STD		{ int|netbsd32||__futex_set_robust_list( \
4071.137Sthorpej			    netbsd32_voidp head, netbsd32_size_t len); }
4081.137Sthorpej168	STD		{ int|netbsd32||__futex_get_robust_list(lwpid_t lwpid, \
4091.137Sthorpej			    netbsd32_voidp headp, netbsd32_size_tp lenp); }
4101.125Spgoyette169	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4111.112Spgoyette			{ int|netbsd32||semsys(int which, int a2, int a3, \
4121.75Schristos			    int a4, int a5); } osemsys
4131.125Spgoyette170	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4141.112Spgoyette			{ int|netbsd32||msgsys(int which, int a2, int a3, \
4151.75Schristos			    int a4, int a5, int a6); } omsgsys
4161.125Spgoyette171	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4171.112Spgoyette			{ int|netbsd32||shmsys(int which, int a2, int a3, \
4181.75Schristos			    int a4); } oshmsys
4191.1Smrg172	UNIMPL
4201.77Spooka173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
4211.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
4221.99Snjoly			    int PAD, netbsd32_off_t offset); }
4231.77Spooka174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
4241.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
4251.99Snjoly			    int PAD, netbsd32_off_t offset); }
4261.125Spgoyette175	COMPAT_30 MODULAR compat_netbsd32_30	\
4271.125Spgoyette			{ int|netbsd32||ntp_gettime( \
4281.125Spgoyette			    netbsd32_ntptimeval50p_t ntvp); }
4291.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
4301.77Spooka176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
4311.78Schristos#else
4321.78Schristos176	EXCL		ntp_adjtime
4331.78Schristos#endif
4341.140Sthorpej177	STD		{ int|netbsd32||timerfd_create( \
4351.140Sthorpej			    netbsd32_clockid_t clock_id, \
4361.140Sthorpej			    int flags); }
4371.140Sthorpej178	STD		{ int|netbsd32||timerfd_settime(int fd, int flags, \
4381.140Sthorpej			    const netbsd32_itimerspecp_t new_value, \
4391.140Sthorpej			    netbsd32_itimerspecp_t old_value); }
4401.140Sthorpej179	STD		{ int|netbsd32||timerfd_gettime(int fd, \
4411.140Sthorpej			    netbsd32_itimerspecp_t curr_value); }
4421.1Smrg180	UNIMPL
4431.1Smrg
4441.1Smrg; Syscalls 180-199 are used by/reserved for BSD
4451.77Spooka181	STD		{ int|netbsd32||setgid(gid_t gid); }
4461.77Spooka182	STD		{ int|netbsd32||setegid(gid_t egid); }
4471.77Spooka183	STD		{ int|netbsd32||seteuid(uid_t euid); }
4481.75Schristos184	EXCL		netbsd32_lfs_bmapv
4491.75Schristos185	EXCL		netbsd32_lfs_markv
4501.75Schristos186	EXCL		netbsd32_lfs_segclean
4511.75Schristos187	EXCL		netbsd32_lfs_segwait
4521.125Spgoyette188	COMPAT_12 MODULAR compat_netbsd32_12	\
4531.125Spgoyette			{ int|netbsd32||stat12(netbsd32_charp path, \
4541.75Schristos			    netbsd32_stat12p_t ub); }
4551.125Spgoyette189	COMPAT_12 MODULAR compat_netbsd32_12	\
4561.125Spgoyette			{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
4571.125Spgoyette190	COMPAT_12 MODULAR compat_netbsd32_12	\
4581.125Spgoyette			{ int|netbsd32||lstat12(netbsd32_charp path, \
4591.75Schristos			    netbsd32_stat12p_t ub); }
4601.77Spooka191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
4611.75Schristos			    int name); }
4621.77Spooka192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
4631.123Srjs193	STD		{ int|netbsd32||getsockopt2(int s, int level, int name, \
4641.123Srjs			    netbsd32_voidp val, netbsd32_intp avalsize); }
4651.77Spooka194	STD		{ int|netbsd32||getrlimit(int which, \
4661.75Schristos			    netbsd32_rlimitp_t rlp); }
4671.77Spooka195	STD		{ int|netbsd32||setrlimit(int which, \
4681.75Schristos			    netbsd32_rlimitp_t rlp); }
4691.125Spgoyette196	COMPAT_12 MODULAR compat_netbsd32_12	\
4701.125Spgoyette			{ int|netbsd32||getdirentries(int fd, \
4711.75Schristos			    netbsd32_charp buf, u_int count, \
4721.75Schristos			    netbsd32_longp basep); }
4731.77Spooka197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
4741.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
4751.99Snjoly			    netbsd32_long PAD, netbsd32_off_t pos); }
4761.77Spooka198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
4771.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
4781.99Snjoly199	STD		{ netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \
4791.99Snjoly			    netbsd32_off_t offset, int whence); }
4801.80Spooka200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
4811.99Snjoly			    netbsd32_off_t length); }
4821.80Spooka201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
4831.99Snjoly			    netbsd32_off_t length); }
4841.77Spooka202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
4851.101Sjoerg			    u_int namelen, netbsd32_voidp oldv, \
4861.101Sjoerg			    netbsd32_size_tp oldlenp, netbsd32_voidp newv, \
4871.75Schristos			    netbsd32_size_t newlen); }
4881.77Spooka203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
4891.75Schristos			    netbsd32_size_t len); }
4901.77Spooka204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
4911.75Schristos			    netbsd32_size_t len); }
4921.77Spooka205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
4931.125Spgoyette206	COMPAT_50 MODULAR compat_netbsd32_50	\
4941.125Spgoyette			{ int|netbsd32||futimes(int fd, \
4951.75Schristos			    netbsd32_timeval50p_t tptr); }
4961.77Spooka207	STD		{ int|netbsd32||getpgid(pid_t pid); }
4971.77Spooka208	STD		{ int|netbsd32||reboot(int opt, \
4981.75Schristos			    netbsd32_charp bootstr); }
4991.77Spooka209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
5001.75Schristos			    u_int nfds, int timeout); }
5011.106Smartin210	UNIMPL		{ int|netbsd32||afssys(long id, long a1, long a2, \
5021.106Smartin			    long a3, long a4, long a5, long a6); }
5031.71Sad211	UNIMPL
5041.71Sad212	UNIMPL
5051.71Sad213	UNIMPL
5061.71Sad214	UNIMPL
5071.71Sad215	UNIMPL
5081.71Sad216	UNIMPL
5091.71Sad217	UNIMPL
5101.71Sad218	UNIMPL
5111.71Sad219	UNIMPL
5121.1Smrg; System calls 220-300 are reserved for use by NetBSD
5131.125Spgoyette220	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5141.112Spgoyette			{ int|netbsd32||__semctl(int semid, int semnum, \
5151.75Schristos			    int cmd, netbsd32_semunu_t arg); }
5161.112Spgoyette221	STD MODULAR compat_netbsd32_sysvipc	\
5171.112Spgoyette			{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
5181.75Schristos			    int semflg); }
5191.112Spgoyette222	STD MODULAR compat_netbsd32_sysvipc	\
5201.112Spgoyette			{ int|netbsd32||semop(int semid, \
5211.75Schristos			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
5221.112Spgoyette223	STD MODULAR compat_netbsd32_sysvipc	\
5231.112Spgoyette			{ int|netbsd32||semconfig(int flag); }
5241.125Spgoyette224	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5251.112Spgoyette			{ int|netbsd32||msgctl(int msqid, int cmd, \
5261.75Schristos			    netbsd32_msqid_ds14p_t buf); }
5271.112Spgoyette225	STD MODULAR compat_netbsd32_sysvipc	\
5281.112Spgoyette			{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
5291.112Spgoyette226	STD MODULAR compat_netbsd32_sysvipc	\
5301.112Spgoyette			{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
5311.75Schristos			    netbsd32_size_t msgsz, int msgflg); }
5321.112Spgoyette227	STD MODULAR compat_netbsd32_sysvipc	\
5331.112Spgoyette			{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
5341.75Schristos			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
5351.75Schristos			    netbsd32_long msgtyp, int msgflg); }
5361.112Spgoyette228	STD MODULAR compat_netbsd32_sysvipc	\
5371.112Spgoyette			{ netbsd32_voidp|netbsd32||shmat(int shmid, \
5381.75Schristos			    netbsd32_voidp shmaddr, int shmflg); }
5391.125Spgoyette229	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5401.112Spgoyette			{ int|netbsd32||shmctl(int shmid, int cmd, \
5411.75Schristos			    netbsd32_shmid_dsp_t buf); }
5421.112Spgoyette230	STD MODULAR compat_netbsd32_sysvipc	\
5431.112Spgoyette			{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
5441.112Spgoyette231	STD MODULAR compat_netbsd32_sysvipc	\
5451.112Spgoyette			{ int|netbsd32||shmget(netbsd32_key_t key, \
5461.75Schristos			    netbsd32_size_t size, int shmflg); }
5471.125Spgoyette232	COMPAT_50 MODULAR compat_netbsd32_50	\
5481.125Spgoyette			{ int|netbsd32||clock_gettime( \
5491.75Schristos			    netbsd32_clockid_t clock_id, \
5501.75Schristos			    netbsd32_timespec50p_t tp); }
5511.125Spgoyette233	COMPAT_50 MODULAR compat_netbsd32_50	\
5521.125Spgoyette			{ int|netbsd32||clock_settime( \
5531.75Schristos			    netbsd32_clockid_t clock_id, \
5541.75Schristos			    netbsd32_timespec50p_t tp); }
5551.125Spgoyette234	COMPAT_50 MODULAR compat_netbsd32_50	\
5561.125Spgoyette			{ int|netbsd32||clock_getres( \
5571.75Schristos			    netbsd32_clockid_t clock_id, \
5581.75Schristos			    netbsd32_timespec50p_t tp); }
5591.77Spooka235	STD		{ int|netbsd32||timer_create( \
5601.75Schristos			    netbsd32_clockid_t clock_id, \
5611.75Schristos			    netbsd32_sigeventp_t evp, \
5621.36Scube			    netbsd32_timerp_t timerid); }
5631.77Spooka236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
5641.125Spgoyette237	COMPAT_50 MODULAR compat_netbsd32_50	\
5651.125Spgoyette			{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
5661.75Schristos			    int flags, \
5671.75Schristos			    netbsd32_itimerspec50p_t value, \
5681.75Schristos			    netbsd32_itimerspec50p_t ovalue); }
5691.125Spgoyette238	COMPAT_50 MODULAR compat_netbsd32_50	\
5701.125Spgoyette			{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
5711.75Schristos			    netbsd32_itimerspec50p_t value); }
5721.77Spooka239	STD		{ int|netbsd32||timer_getoverrun( \
5731.75Schristos			    netbsd32_timer_t timerid); }
5741.1Smrg;
5751.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
5761.1Smrg;
5771.125Spgoyette240	COMPAT_50 MODULAR compat_netbsd32_50	\
5781.125Spgoyette			{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
5791.75Schristos			    netbsd32_timespec50p_t rmtp); }
5801.77Spooka241	STD		{ int|netbsd32||fdatasync(int fd); }
5811.77Spooka242	STD		{ int|netbsd32||mlockall(int flags); }
5821.77Spooka243	NOARGS		{ int|sys||munlockall(void); }
5831.125Spgoyette244	COMPAT_50 MODULAR compat_netbsd32_50	\
5841.125Spgoyette			{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
5851.37Scube			    netbsd32_siginfop_t info, \
5861.75Schristos			    netbsd32_timespec50p_t timeout); }
5871.104Smartin245	STD		{ int|netbsd32||sigqueueinfo(pid_t pid, \
5881.104Smartin			    const netbsd32_siginfop_t info); }
5891.104Smartin246	STD		{ int|netbsd32||modctl(int cmd, netbsd32_voidp arg); }
5901.77Spooka247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
5911.75Schristos			    netbsd32_semidp_t idp); }
5921.77Spooka248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
5931.75Schristos			    int oflag, mode_t mode, unsigned int value, \
5941.75Schristos			    netbsd32_semidp_t idp); }
5951.77Spooka249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
5961.77Spooka250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
5971.77Spooka251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
5981.77Spooka252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
5991.77Spooka253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
6001.77Spooka254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
6011.42Scube			    netbsd32_intp value); }
6021.77Spooka255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
6031.93Sjoerg256	STD		{ int|netbsd32||_ksem_timedwait(intptr_t id, \
6041.93Sjoerg				const netbsd32_timespecp_t abstime); }
6051.111Spgoyette257	STD MODULAR compat_netbsd32_mqueue	\
6061.111Spgoyette			{ mqd_t|netbsd32||mq_open(const netbsd32_charp name, \
6071.104Smartin			    int oflag, mode_t mode, \
6081.104Smartin			    netbsd32_mq_attrp_t attr); }
6091.111Spgoyette258	STD MODULAR compat_netbsd32_mqueue	\
6101.111Spgoyette	 		{ int|netbsd32||mq_close(mqd_t mqdes); }
6111.111Spgoyette259	STD MODULAR compat_netbsd32_mqueue	\
6121.111Spgoyette	 		{ int|netbsd32||mq_unlink(const netbsd32_charp name); }
6131.111Spgoyette260	STD MODULAR compat_netbsd32_mqueue	\
6141.111Spgoyette			{ int|netbsd32||mq_getattr(mqd_t mqdes, \
6151.104Smartin			    netbsd32_mq_attrp_t mqstat); }
6161.111Spgoyette261	STD MODULAR compat_netbsd32_mqueue	\
6171.111Spgoyette	 		{ int|netbsd32||mq_setattr(mqd_t mqdes, \
6181.104Smartin			    const netbsd32_mq_attrp_t mqstat, \
6191.104Smartin			    netbsd32_mq_attrp_t omqstat); }
6201.111Spgoyette262	STD MODULAR compat_netbsd32_mqueue	\
6211.111Spgoyette			{ int|netbsd32||mq_notify(mqd_t mqdes, \
6221.104Smartin			    const netbsd32_sigeventp_t notification); }
6231.111Spgoyette263	STD MODULAR compat_netbsd32_mqueue	\
6241.111Spgoyette			{ int|netbsd32||mq_send(mqd_t mqdes, \
6251.104Smartin			    const netbsd32_charp msg_ptr, \
6261.104Smartin			    netbsd32_size_t msg_len, unsigned msg_prio); }
6271.111Spgoyette264	STD MODULAR compat_netbsd32_mqueue	\
6281.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \
6291.104Smartin			    netbsd32_charp msg_ptr, \
6301.104Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio); }
6311.111Spgoyette265	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6321.111Spgoyette			{ int|netbsd32||mq_timedsend(mqd_t mqdes, \
6331.104Smartin			    const netbsd32_charp msg_ptr, \
6341.104Smartin			    netbsd32_size_t msg_len, \
6351.104Smartin			    unsigned msg_prio, \
6361.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6371.111Spgoyette266	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6381.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_timedreceive( \
6391.104Smartin			    mqd_t mqdes, \
6401.104Smartin			    netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
6411.104Smartin			    netbsd32_uintp msg_prio, \
6421.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6431.141Sthorpej267	STD		{ int|netbsd32||eventfd(unsigned int val, int flags); }
6441.1Smrg268	UNIMPL
6451.1Smrg269	UNIMPL
6461.77Spooka270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
6471.75Schristos			    netbsd32_charp to); }
6481.77Spooka271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
6491.75Schristos			    int misc); }
6501.125Spgoyette272	COMPAT_30 MODULAR compat_netbsd32_30	\
6511.125Spgoyette			{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
6521.75Schristos			    netbsd32_size_t count); }
6531.77Spooka273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
6541.75Schristos			    netbsd32_size_t len, int inherit); }
6551.77Spooka274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
6561.75Schristos			    mode_t mode); }
6571.77Spooka275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
6581.75Schristos			    gid_t gid); }
6591.125Spgoyette276	COMPAT_50 MODULAR compat_netbsd32_50	\
6601.125Spgoyette			{ int|netbsd32||lutimes(netbsd32_charp path, \
6611.75Schristos			    netbsd32_timeval50p_t tptr); }
6621.77Spooka277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
6631.75Schristos			    netbsd32_size_t len, int flags); }
6641.125Spgoyette278	COMPAT_30 MODULAR compat_netbsd32_30	\
6651.125Spgoyette			{ int|netbsd32|13|stat(netbsd32_charp path, \
6661.75Schristos			    netbsd32_stat13p_t ub); }
6671.125Spgoyette279	COMPAT_30 MODULAR compat_netbsd32_30	\
6681.125Spgoyette			{ int|netbsd32|13|fstat(int fd, \
6691.75Schristos			    netbsd32_stat13p_t sb); }
6701.125Spgoyette280	COMPAT_30 MODULAR compat_netbsd32_30	\
6711.125Spgoyette			{ int|netbsd32|13|lstat(netbsd32_charp path, \
6721.75Schristos			    netbsd32_stat13p_t ub); }
6731.77Spooka281	STD		{ int|netbsd32|14|sigaltstack(\
6741.75Schristos			    netbsd32_sigaltstackp_t nss, \
6751.75Schristos			    netbsd32_sigaltstackp_t oss); }
6761.77Spooka282	NOARGS		{ int|sys|14|vfork(void); }
6771.77Spooka283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
6781.75Schristos			    uid_t uid, gid_t gid); }
6791.77Spooka284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
6801.75Schristos			    gid_t gid); }
6811.77Spooka285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
6821.75Schristos			    uid_t uid, gid_t gid); }
6831.77Spooka286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
6841.77Spooka287	STD		{ int|netbsd32||__clone(int flags, \
6851.75Schristos			    netbsd32_voidp stack); }
6861.77Spooka288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
6871.75Schristos			    int pid); }
6881.77Spooka289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
6891.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6901.99Snjoly			    netbsd32_off_t offset); }
6911.77Spooka290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
6921.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6931.99Snjoly			    netbsd32_off_t offset); }
6941.77Spooka291	STD		{ int|netbsd32|14|sigaction(int signum, \
6951.64Sdsl			    netbsd32_sigactionp_t nsa, \
6961.11Seeh			    netbsd32_sigactionp_t osa); }
6971.77Spooka292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
6981.77Spooka293	STD		{ int|netbsd32|14|sigprocmask(int how, \
6991.64Sdsl			    netbsd32_sigsetp_t set, \
7001.11Seeh			    netbsd32_sigsetp_t oset); }
7011.77Spooka294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
7021.125Spgoyette295	COMPAT_16 MODULAR compat_netbsd32_16	\
7031.125Spgoyette			{ int|netbsd32|14|sigreturn( \
7041.75Schristos			    netbsd32_sigcontextp_t sigcntxp); }
7051.77Spooka296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
7061.75Schristos			    netbsd32_size_t length); }
7071.77Spooka297	STD		{ int|netbsd32||fchroot(int fd); }
7081.125Spgoyette298	COMPAT_30 MODULAR compat_netbsd32_30	\
7091.125Spgoyette			{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
7101.11Seeh			   int flags); }
7111.125Spgoyette299	COMPAT_30 MODULAR compat_netbsd32_30	\
7121.125Spgoyette			{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
7131.45Scube			    netbsd32_stat13p_t sb); }
7141.125Spgoyette300	COMPAT_20 MODULAR compat_netbsd32_20	\
7151.125Spgoyette			{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
7161.75Schristos			    netbsd32_stat50p_t buf); }
7171.125Spgoyette301	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7181.112Spgoyette			{ int|netbsd32|14|semctl(int semid, int semnum, \
7191.75Schristos			    int cmd, ... netbsd32_semun50p_t arg); }
7201.125Spgoyette302	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7211.112Spgoyette			{ int|netbsd32|13|msgctl(int msqid, int cmd, \
7221.75Schristos			    netbsd32_msqid_ds50p_t buf); }
7231.125Spgoyette303	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7241.112Spgoyette			{ int|netbsd32|13|shmctl(int shmid, int cmd, \
7251.75Schristos			    netbsd32_shmid_ds50p_t buf); }
7261.77Spooka304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
7271.75Schristos			    netbsd32_u_long flags); }
7281.77Spooka305	NOARGS 		{ int|sys||issetugid(void); }
7291.77Spooka306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
7301.75Schristos			    netbsd32_voidp addr, netbsd32_size_t len); }
7311.77Spooka307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
7321.100Snjoly308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp); }
7331.77Spooka309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
7341.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
7351.77Spooka310	NOARGS		{ int|sys||_lwp_exit(void); }
7361.77Spooka311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
7371.77Spooka312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
7381.44Scube			    netbsd32_lwpidp departed); }
7391.77Spooka313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
7401.77Spooka314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
7411.77Spooka315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
7421.77Spooka316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
7431.77Spooka317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
7441.77Spooka318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
7451.77Spooka319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
7461.125Spgoyette320	COMPAT_50 MODULAR compat_netbsd32_50	\
7471.125Spgoyette			{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
7481.75Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
7491.75Schristos			    netbsd32_voidp unparkhint); }
7501.77Spooka321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
7511.75Schristos			    netbsd32_voidp hint); }
7521.77Spooka322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
7531.75Schristos			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
7541.75Schristos			    netbsd32_voidp hint); }
7551.77Spooka323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
7561.64Sdsl				netbsd32_charp name); }
7571.77Spooka324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
7581.63Sad				netbsd32_charp name, netbsd32_size_t len); }
7591.77Spooka325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
7601.63Sad				netbsd32_pointer_t address); }
7611.135Sthorpej326	UNIMPL
7621.18Smrg327	UNIMPL
7631.18Smrg328	UNIMPL
7641.18Smrg329	UNIMPL
7651.92Srmind330	OBSOL		netbsd32_sa_register
7661.92Srmind331	OBSOL		netbsd32_sa_stacks
7671.92Srmind332	OBSOL		sa_enable
7681.92Srmind333	OBSOL		netbsd32_sa_setconcurrency
7691.92Srmind334	OBSOL		sa_yield
7701.92Srmind335	OBSOL		netbsd32_sa_preempt
7711.44Scube336	OBSOL		sys_sa_unblockyield
7721.18Smrg337	UNIMPL
7731.18Smrg338	UNIMPL
7741.18Smrg339	UNIMPL
7751.77Spooka340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
7761.64Sdsl			    netbsd32_sigactionp_t nsa, \
7771.22Sscw			    netbsd32_sigactionp_t osa, \
7781.22Sscw			    netbsd32_voidp tramp, int vers); }
7791.122Smaxv341	OBSOL		netbsd32_pmc_get_info
7801.122Smaxv342	OBSOL		netbsd32_pmc_control
7811.77Spooka343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
7821.75Schristos			    netbsd32_size_t len, int op); }
7831.77Spooka344	NOARGS		{ int|sys||kqueue(void); }
7841.125Spgoyette345	COMPAT_50 MODULAR compat_netbsd32_50	\
7851.125Spgoyette			{ int|netbsd32||kevent(int fd, \
7861.75Schristos			    netbsd32_keventp_t changelist, \
7871.75Schristos			    netbsd32_size_t nchanges, \
7881.75Schristos			    netbsd32_keventp_t eventlist, \
7891.75Schristos			    netbsd32_size_t nevents, \
7901.75Schristos			    netbsd32_timespec50p_t timeout); }
7911.74Smrg; Scheduling system calls.
7921.77Spooka346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
7931.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
7941.77Spooka347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
7951.75Schristos			    netbsd32_intp policy, \
7961.75Schristos			    netbsd32_sched_paramp_t params); }
7971.77Spooka348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
7981.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7991.75Schristos			    const netbsd32_cpusetp_t cpuset); }
8001.77Spooka349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
8011.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
8021.75Schristos			    netbsd32_cpusetp_t cpuset); }
8031.77Spooka350	NOARGS 		{ int|sys||sched_yield(void); }
8041.113Sskrll351	STD		{ int|netbsd32||_sched_protect(int priority); }
8051.26Scube352	UNIMPL
8061.26Scube353	UNIMPL
8071.77Spooka354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
8081.99Snjoly			    netbsd32_off_t start, netbsd32_off_t length); }
8091.77Spooka355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
8101.75Schristos			    int count); }
8111.128Schristos356	COMPAT_90 MODULAR compat_netbsd32_90 \
8121.128Schristos			{ int|netbsd32||getvfsstat(netbsd32_statvfs90p_t buf, \
8131.26Scube			    netbsd32_size_t bufsize, int flags); }
8141.128Schristos357	COMPAT_90 MODULAR compat_netbsd32_90 \
8151.128Schristos			{ int|netbsd32||statvfs1(netbsd32_charp path, \
8161.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8171.128Schristos358	COMPAT_90 MODULAR compat_netbsd32_90 \
8181.128Schristos			{ int|netbsd32||fstatvfs1(int fd, \
8191.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8201.125Spgoyette359	COMPAT_30 MODULAR compat_netbsd32_30	\
8211.125Spgoyette			{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
8221.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8231.77Spooka360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
8241.75Schristos			    int cmd, netbsd32_charp filename, \
8251.75Schristos			    int attrnamespace, netbsd32_charp attrname); }
8261.77Spooka361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
8271.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8281.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8291.77Spooka362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
8301.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8311.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8321.77Spooka363	STD		{ int|netbsd32||extattr_delete_file( \
8331.75Schristos			    netbsd32_charp path, int attrnamespace, \
8341.75Schristos			    netbsd32_charp attrname); }
8351.77Spooka364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
8361.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8371.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8381.77Spooka365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
8391.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8401.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8411.77Spooka366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
8421.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
8431.77Spooka367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
8441.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8451.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8461.77Spooka368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
8471.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8481.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8491.77Spooka369	STD		{ int|netbsd32||extattr_delete_link( \
8501.75Schristos			    netbsd32_charp path, int attrnamespace, \
8511.75Schristos			    netbsd32_charp attrname); }
8521.77Spooka370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
8531.29Scube			    int attrnamespace, netbsd32_voidp data, \
8541.29Scube			    netbsd32_size_t nbytes); }
8551.77Spooka371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
8561.29Scube			    int attrnamespace, netbsd32_voidp data, \
8571.29Scube			    netbsd32_size_t nbytes); }
8581.77Spooka372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
8591.29Scube			    int attrnamespace, netbsd32_voidp data, \
8601.29Scube			    netbsd32_size_t nbytes); }
8611.125Spgoyette373	COMPAT_50 MODULAR compat_netbsd32_50	\
8621.125Spgoyette			{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
8631.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
8641.75Schristos			    netbsd32_timespec50p_t ts, \
8651.75Schristos			    netbsd32_sigsetp_t mask); }
8661.125Spgoyette374	COMPAT_50 MODULAR compat_netbsd32_50	\
8671.125Spgoyette			{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
8681.75Schristos			    u_int nfds, netbsd32_timespec50p_t ts, \
8691.75Schristos			    netbsd32_sigsetp_t mask); }
8701.77Spooka375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
8711.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8721.35Scube			    netbsd32_size_t size, int flags); }
8731.77Spooka376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
8741.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8751.35Scube			    netbsd32_size_t size, int flags); }
8761.77Spooka377	STD		{ int|netbsd32||fsetxattr(int fd, \
8771.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8781.35Scube			    netbsd32_size_t size, int flags); }
8791.77Spooka378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
8801.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8811.35Scube			    netbsd32_size_t size); }
8821.77Spooka379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
8831.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8841.35Scube			    netbsd32_size_t size); }
8851.77Spooka380	STD		{ int|netbsd32||fgetxattr(int fd, \
8861.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8871.35Scube			    netbsd32_size_t size); }
8881.77Spooka381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
8891.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8901.77Spooka382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
8911.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8921.77Spooka383	STD		{ int|netbsd32||flistxattr(int fd, \
8931.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8941.77Spooka384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
8951.64Sdsl			    netbsd32_charp name); }
8961.77Spooka385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
8971.64Sdsl			    netbsd32_charp name); }
8981.77Spooka386	STD		{ int|netbsd32||fremovexattr(int fd, \
8991.64Sdsl			    netbsd32_charp name); }
9001.125Spgoyette387     COMPAT_50 MODULAR compat_netbsd32_50	\
9011.125Spgoyette			{ int|netbsd32|30|stat(netbsd32_charp path, \
9021.75Schristos			    netbsd32_stat50p_t ub); }
9031.125Spgoyette388     COMPAT_50 MODULAR compat_netbsd32_50	\
9041.125Spgoyette			{ int|netbsd32|30|fstat(int fd, \
9051.75Schristos			    netbsd32_stat50p_t sb); }
9061.125Spgoyette389     COMPAT_50 MODULAR compat_netbsd32_50	\
9071.125Spgoyette			{ int|netbsd32|30|lstat( \
9081.75Schristos			    netbsd32_charp path, netbsd32_stat50p_t ub); }
9091.77Spooka390     STD             { int|netbsd32|30|getdents(int fd, \
9101.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
9111.68Smartin391	IGNORED		old posix fadvise
9121.125Spgoyette392	COMPAT_30 MODULAR compat_netbsd32_30	\
9131.125Spgoyette			{ int|netbsd32|30|fhstat( \
9141.64Sdsl			    netbsd32_fhandlep_t fhp, \
9151.75Schristos			    netbsd32_stat50p_t sb); }
9161.125Spgoyette393	COMPAT_50 MODULAR compat_netbsd32_50	\
9171.125Spgoyette			{ int|netbsd32||ntp_gettime( \
9181.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
9191.77Spooka394	STD		{ int|netbsd32|30|socket(int domain, int type, \
9201.75Schristos			    int protocol); }
9211.77Spooka395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
9221.75Schristos			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
9231.77Spooka396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
9241.51Smartin			    netbsd32_size_t fh_size, int flags); }
9251.128Schristos397	COMPAT_90 MODULAR compat_netbsd90 \
9261.128Schristos			{ int|netbsd32||fhstatvfs1(	\
9271.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9281.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
9291.125Spgoyette398	COMPAT_50 MODULAR compat_netbsd32_50	\
9301.125Spgoyette			{ int|netbsd32|40|fhstat(	\
9311.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9321.75Schristos			    netbsd32_stat50p_t sb); }
9331.65Sdsl
9341.65Sdsl; Asynchronous I/O system calls
9351.76Spooka399	UNIMPL		sys_aio_cancel
9361.76Spooka400	UNIMPL		sys_aio_error
9371.76Spooka401	UNIMPL		sys_aio_fsync
9381.76Spooka402	UNIMPL		sys_aio_read
9391.76Spooka403	UNIMPL		sys_aio_return
9401.76Spooka404	UNIMPL		sys_aio_suspend
9411.76Spooka405     UNIMPL		sys_aio_write
9421.76Spooka406	UNIMPL		sys_lio_listio
9431.65Sdsl
9441.65Sdsl407	UNIMPL
9451.65Sdsl408	UNIMPL
9461.65Sdsl409	UNIMPL
9471.65Sdsl
9481.81Smatt410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
9491.81Smatt			    netbsd32_charp path, int flags, \
9501.81Smatt			    netbsd32_voidp data, netbsd32_size_t data_len); }
9511.77Spooka411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
9521.65Sdsl			    netbsd32_voidp old_address, \
9531.65Sdsl			    netbsd32_size_t old_size, \
9541.65Sdsl			    netbsd32_voidp new_address, \
9551.65Sdsl			    netbsd32_size_t new_size, int flags); }
9561.67Smartin
9571.107Smartin412	STD		{ int|netbsd32||pset_create(netbsd32_psetidp_t psid); }
9581.107Smartin413	STD		{ int|netbsd32||pset_destroy(psetid_t psid); }
9591.107Smartin414	STD		{ int|netbsd32||pset_assign(psetid_t psid, \
9601.107Smartin			  cpuid_t cpuid, netbsd32_psetidp_t opsid); }
9611.107Smartin415	STD		{ int|netbsd32||_pset_bind(idtype_t idtype, \
9621.107Smartin			  id_t first_id, id_t second_id, psetid_t psid, \
9631.107Smartin			  netbsd32_psetidp_t opsid); }
9641.67Smartin
9651.80Spooka416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
9661.99Snjoly			    netbsd32_off_t offset, netbsd32_off_t len, int advice); }
9671.77Spooka417	STD 		{ int|netbsd32|50|select(int nd, \
9681.75Schristos			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
9691.75Schristos			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
9701.77Spooka418	STD 		{ int|netbsd32|50|gettimeofday( \
9711.75Schristos			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
9721.77Spooka419	STD 		{ int|netbsd32|50|settimeofday( \
9731.75Schristos			    const netbsd32_timevalp_t tv, \
9741.75Schristos			    const netbsd32_voidp tzp); }
9751.77Spooka420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
9761.75Schristos			    const netbsd32_timevalp_t tptr); }
9771.77Spooka421	STD		{ int|netbsd32|50|adjtime( \
9781.75Schristos			    const netbsd32_timevalp_t delta, \
9791.75Schristos			    netbsd32_timevalp_t olddelta); }
9801.75Schristos422	EXCL		__lfs_segwait50
9811.77Spooka423	STD 		{ int|netbsd32|50|futimes(int fd, \
9821.75Schristos			    const netbsd32_timevalp_t tptr); }
9831.77Spooka424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
9841.75Schristos			    const netbsd32_timevalp_t tptr); }
9851.77Spooka425	STD		{ int|netbsd32|50|setitimer(int which, \
9861.75Schristos			    const netbsd32_itimervalp_t itv, \
9871.75Schristos			    netbsd32_itimervalp_t oitv); }
9881.77Spooka426	STD		{ int|netbsd32|50|getitimer(int which, \
9891.75Schristos			    netbsd32_itimervalp_t itv); }
9901.77Spooka427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
9911.75Schristos			    netbsd32_timespecp_t tp); }
9921.77Spooka428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
9931.75Schristos			    const netbsd32_timespecp_t tp); }
9941.77Spooka429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
9951.75Schristos			    netbsd32_timespecp_t tp); }
9961.77Spooka430	STD 		{ int|netbsd32|50|nanosleep( \
9971.75Schristos			    const netbsd32_timespecp_t rqtp, \
9981.75Schristos			    netbsd32_timespecp_t rmtp); }
9991.77Spooka431	STD 		{ int|netbsd32|50|__sigtimedwait( \
10001.75Schristos			    const netbsd32_sigsetp_t set, \
10011.75Schristos			    netbsd32_siginfop_t info, \
10021.75Schristos			    netbsd32_timespecp_t timeout); }
10031.111Spgoyette432	STD MODULAR compat_netbsd32_mqueue	\
10041.111Spgoyette			{ int|netbsd32|50|mq_timedsend(mqd_t mqdes, \
10051.105Smartin			    const netbsd32_charp msg_ptr, \
10061.105Smartin			    netbsd32_size_t msg_len, \
10071.105Smartin			    unsigned msg_prio, \
10081.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
10091.111Spgoyette433	STD MODULAR compat_netbsd32_mqueue	\
10101.111Spgoyette			{ netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \
10111.105Smartin			    mqd_t mqdes, netbsd32_charp msg_ptr, \
10121.105Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \
10131.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
10141.125Spgoyette434	COMPAT_60 MODULAR compat_netbsd32_60	\
10151.125Spgoyette		 	{ int|netbsd32||_lwp_park( \
10161.75Schristos			    const netbsd32_timespecp_t ts, \
10171.75Schristos			    lwpid_t unpark, const netbsd32_voidp hint, \
10181.75Schristos			    const netbsd32_voidp unparkhint); }
10191.77Spooka435	STD 		{ int|netbsd32|50|kevent(int fd, \
10201.75Schristos			    const netbsd32_keventp_t changelist, \
10211.75Schristos			    netbsd32_size_t nchanges, \
10221.75Schristos			    netbsd32_keventp_t eventlist, \
10231.75Schristos			    netbsd32_size_t nevents, \
10241.75Schristos			    const netbsd32_timespecp_t timeout); }
10251.77Spooka436	STD 		{ int|netbsd32|50|pselect(int nd, \
10261.75Schristos			    netbsd32_fd_setp_t in, \
10271.75Schristos			    netbsd32_fd_setp_t ou, \
10281.75Schristos			    netbsd32_fd_setp_t ex, \
10291.75Schristos			    const netbsd32_timespecp_t ts, \
10301.75Schristos			    const netbsd32_sigsetp_t mask); }
10311.77Spooka437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
10321.75Schristos			    u_int nfds, const netbsd32_timespecp_t ts, \
10331.75Schristos			    const netbsd32_sigsetp_t mask); }
10341.76Spooka438	UNIMPL 		netbsd32___aio_suspend50
10351.77Spooka439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
10361.75Schristos			    netbsd32_statp_t ub); }
10371.77Spooka440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
10381.77Spooka441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
10391.75Schristos			    netbsd32_statp_t ub); }
10401.112Spgoyette442	STD MODULAR compat_netbsd32_sysvipc	\
10411.112Spgoyette	 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
10421.75Schristos			    int cmd, ... netbsd32_semunp_t arg); }
10431.112Spgoyette443	STD MODULAR compat_netbsd32_sysvipc	\
10441.112Spgoyette	 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
10451.75Schristos			    netbsd32_shmid_dsp_t buf); }
10461.112Spgoyette444	STD MODULAR compat_netbsd32_sysvipc	\
10471.112Spgoyette	 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
10481.75Schristos			    netbsd32_msqid_dsp_t buf); }
10491.77Spooka445	STD 		{ int|netbsd32|50|getrusage(int who, \
10501.75Schristos			    netbsd32_rusagep_t rusage); }
10511.77Spooka446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
10521.75Schristos			    int flags, const netbsd32_itimerspecp_t value, \
10531.75Schristos			    netbsd32_itimerspecp_t ovalue); }
10541.77Spooka447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
10551.75Schristos			    netbsd32_itimerspecp_t value); }
10561.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
10571.77Spooka448	STD		{ int|netbsd32|50|ntp_gettime( \
10581.75Schristos			    netbsd32_ntptimevalp_t ntvp); }
10591.75Schristos#else
10601.75Schristos448	EXCL		___ntp_gettime50
10611.75Schristos#endif
10621.77Spooka449	STD 		{ int|netbsd32|50|wait4(int pid, \
10631.75Schristos			    netbsd32_intp status, \
10641.75Schristos			    int options, netbsd32_rusagep_t rusage); }
10651.77Spooka450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
10661.79Snjoly			    mode_t mode, netbsd32_dev_t dev); }
10671.77Spooka451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
10681.75Schristos			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
10691.90Sdholland452	OBSOL		5.99 quotactl
10701.86Snjoly453	STD		{ int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
10711.87Snjoly454	STD		{ int|netbsd32||dup3(int from, int to, int flags); }
10721.88Snjoly455	STD		{ int|netbsd32||kqueue1(int flags); }
10731.89Smatt456	STD  		{ int|netbsd32||paccept(int s, \
10741.89Smatt			    netbsd32_sockaddrp_t name, \
10751.89Smatt			    netbsd32_socklenp_t anamelen, \
10761.89Smatt			    const netbsd32_sigsetp_t mask, \
10771.89Smatt			    int flags); }
10781.89Smatt457	STD  		{ int|netbsd32||linkat(int fd1, \
10791.89Smatt			    const netbsd32_charp name1, \
10801.89Smatt			    int fd2, \
10811.89Smatt			    const netbsd32_charp name2, \
10821.89Smatt			    int flags); }
10831.89Smatt458	STD  		{ int|netbsd32||renameat(int fromfd, \
10841.89Smatt			    const netbsd32_charp from, \
10851.89Smatt			    int tofd, \
10861.89Smatt			    const netbsd32_charp to); }
10871.89Smatt459	STD  		{ int|netbsd32||mkfifoat(int fd, \
10881.89Smatt			    const netbsd32_charp path, \
10891.89Smatt			    mode_t mode); }
10901.89Smatt460	STD  		{ int|netbsd32||mknodat(int fd, \
10911.89Smatt			    const netbsd32_charp path, \
10921.98Snjoly			    mode_t mode, int PAD, \
10931.98Snjoly			    netbsd32_dev_t dev); }
10941.89Smatt461	STD  		{ int|netbsd32||mkdirat(int fd, \
10951.89Smatt			    const netbsd32_charp path, \
10961.89Smatt			    mode_t mode); }
10971.89Smatt462	STD  		{ int|netbsd32||faccessat(int fd, \
10981.89Smatt			    const netbsd32_charp path, \
10991.89Smatt			    int amode, \
11001.89Smatt			    int flag); }
11011.89Smatt463	STD  		{ int|netbsd32||fchmodat(int fd, \
11021.89Smatt			    const netbsd32_charp path, \
11031.89Smatt			    mode_t mode, \
11041.89Smatt			    int flag); }
11051.89Smatt464	STD  		{ int|netbsd32||fchownat(int fd, \
11061.89Smatt			    const netbsd32_charp path, \
11071.89Smatt			    uid_t owner, \
11081.89Smatt			    gid_t group, \
11091.89Smatt			    int flag); }
11101.89Smatt465	STD  		{ int|netbsd32||fexecve(int fd, \
11111.89Smatt			    netbsd32_charpp argp, \
11121.89Smatt			    netbsd32_charpp envp); }
11131.89Smatt466	STD  		{ int|netbsd32||fstatat(int fd, \
11141.89Smatt			    const netbsd32_charp path, \
11151.89Smatt			    netbsd32_statp_t buf, \
11161.89Smatt			    int flag); }
11171.89Smatt467	STD  		{ int|netbsd32||utimensat(int fd, \
11181.89Smatt			    const netbsd32_charp path, \
11191.89Smatt			    const netbsd32_timespecp_t tptr, \
11201.89Smatt			    int flag); }
11211.89Smatt468	STD  		{ int|netbsd32||openat(int fd, \
11221.89Smatt			    const netbsd32_charp path, \
11231.89Smatt			    int oflags, ... \
11241.89Smatt			    mode_t mode); }
11251.102Schristos469	STD  		{ netbsd32_ssize_t|netbsd32||readlinkat(int fd, \
11261.89Smatt			    const netbsd32_charp path, \
11271.89Smatt			    netbsd32_charp buf, \
11281.129Srin			    netbsd32_size_t bufsize); }
11291.89Smatt470	STD  		{ int|netbsd32||symlinkat(const netbsd32_charp path1, \
11301.89Smatt			    int fd, \
11311.89Smatt			    const netbsd32_charp path2); }
11321.89Smatt471	STD  		{ int|netbsd32||unlinkat(int fd, \
11331.89Smatt			    const netbsd32_charp path, \
11341.89Smatt			    int flag); }
11351.89Smatt472	STD  		{ int|netbsd32||futimens(int fd, \
11361.89Smatt			    const netbsd32_timespecp_t tptr); }
11371.133Spgoyette473	STD MODULAR compat_netbsd32_quota	\
11381.133Spgoyette			{ int|netbsd32||__quotactl(const netbsd32_charp path, \
11391.91Sdholland			    netbsd32_voidp args); }
11401.95Smartin474	NOERR		{ int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \
11411.121Schristos			    const netbsd32_charp path, \
11421.121Schristos			    const netbsd32_posix_spawn_file_actionsp \
11431.121Schristos				file_actions, \
11441.121Schristos			    const netbsd32_posix_spawnattrp attrp, \
11451.121Schristos			    netbsd32_charpp argv, netbsd32_charpp envp); }
11461.95Smartin
11471.121Schristos475	STD		{ int|netbsd32||recvmmsg(int s, \
11481.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11491.96Schristos			    unsigned int vlen, unsigned int flags, \
11501.96Schristos			    netbsd32_timespecp_t timeout); }
11511.121Schristos476	STD		{ int|netbsd32||sendmmsg(int s, \
11521.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11531.96Schristos			    unsigned int vlen, unsigned int flags); }
11541.96Schristos477	STD 		{ int|netbsd32||clock_nanosleep(\
11551.96Schristos			    netbsd32_clockid_t clock_id, \
11561.96Schristos			    int flags, const netbsd32_timespecp_t rqtp, \
11571.96Schristos			    netbsd32_timespecp_t rmtp); }
11581.97Schristos478	STD 		{ int|netbsd32|60|_lwp_park(\
11591.97Schristos			    netbsd32_clockid_t clock_id, \
11601.116Skamil			    int flags, netbsd32_timespecp_t ts, \
11611.97Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
11621.97Schristos			    netbsd32_voidp unparkhint); }
11631.103Smartin479	NOERR		{ int|netbsd32||posix_fallocate(int fd, int PAD, \
11641.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11651.103Smartin480	STD		{ int|netbsd32||fdiscard(int fd, int PAD, \
11661.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11671.114Sskrll481	STD 		{ int|netbsd32||wait6(idtype_t idtype, id_t id, \
11681.114Sskrll			    netbsd32_intp status, int options, \
11691.114Sskrll			    netbsd32_wrusagep_t wru, netbsd32_siginfop_t info); }
11701.114Sskrll482	STD		{ int|netbsd32||clock_getcpuclockid2(idtype_t idtype, \
11711.114Sskrll			    id_t id, netbsd32_clockidp_t clock_id); }
11721.128Schristos483	STD 		{ int|netbsd32|90|getvfsstat( \
11731.128Schristos			    netbsd32_statvfsp_t buf, \
11741.130Srin			    netbsd32_size_t bufsize, int flags); }
11751.128Schristos484	STD 		{ int|netbsd32|90|statvfs1(netbsd32_charp path, \
11761.128Schristos			    netbsd32_statvfsp_t buf, int flags); }
11771.128Schristos485	STD 		{ int|netbsd32|90|fstatvfs1(int fd, \
11781.128Schristos			    netbsd32_statvfsp_t buf, int flags); }
11791.128Schristos486	STD 		{ int|netbsd32|90|fhstatvfs1(netbsd32_voidp fhp, \
11801.130Srin			    netbsd32_size_t fh_size, netbsd32_statvfsp_t buf, \
11811.128Schristos			    int flags); }
11821.138Schristos487	STD		{ int|netbsd32||__acl_get_link( \
11831.138Schristos			    const netbsd32_charp path, \
11841.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
11851.138Schristos488	STD		{ int|netbsd32||__acl_set_link( \
11861.138Schristos			    const netbsd32_charp path, \
11871.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
11881.138Schristos489	STD		{ int|netbsd32||__acl_delete_link( \
11891.138Schristos			    const netbsd32_charp path, \
11901.138Schristos			    acl_type_t type); }
11911.138Schristos490	STD		{ int|netbsd32||__acl_aclcheck_link( \
11921.138Schristos			    const netbsd32_charp path, \
11931.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
11941.138Schristos491	STD		{ int|netbsd32||__acl_get_file( \
11951.138Schristos			    const netbsd32_charp path, \
11961.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
11971.138Schristos492	STD		{ int|netbsd32||__acl_set_file( \
11981.138Schristos			    const netbsd32_charp path, \
11991.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
12001.138Schristos493	STD		{ int|netbsd32||__acl_get_fd(int filedes, \
12011.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
12021.138Schristos494	STD		{ int|netbsd32||__acl_set_fd(int filedes, \
12031.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
12041.138Schristos495	STD		{ int|netbsd32||__acl_delete_file( \
12051.138Schristos			    const netbsd32_charp path, \
12061.138Schristos			    acl_type_t type); }
12071.138Schristos496	STD		{ int|netbsd32||__acl_delete_fd(int filedes, \
12081.138Schristos			    acl_type_t type); }
12091.138Schristos497	STD		{ int|netbsd32||__acl_aclcheck_file( \
12101.138Schristos			    const netbsd32_charp path, \
12111.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
12121.138Schristos498	STD		{ int|netbsd32||__acl_aclcheck_fd(int filedes, \
12131.138Schristos			    acl_type_t type, netbsd32_aclp_t aclp); }
12141.138Schristos499	STD		{ long|netbsd32||lpathconf(const netbsd32_charp path, \
12151.138Schristos			    int name); }
1216