syscalls.master revision 1.126
11.126Schristos	$NetBSD: syscalls.master,v 1.126 2019/06/18 01:36:50 christos 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.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
541.16Smycroft
551.16Smycroft%%
561.1Smrg
571.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
581.1Smrg; are reserved for use in future Berkeley releases.
591.1Smrg; Additional system calls implemented in vendor and other
601.1Smrg; redistributions should be placed in the reserved range at the end
611.1Smrg; of the current calls.
621.1Smrg
631.77Spooka0	INDIR		{ int|netbsd32||syscall(int code, \
641.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
651.77Spooka1	STD		{ void|netbsd32||exit(int rval); }
661.77Spooka2	NOARGS		{ int|sys||fork(void); }
671.77Spooka3	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
681.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
691.77Spooka4	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
701.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
711.77Spooka5	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
721.75Schristos			    ... mode_t mode); }
731.77Spooka6	STD		{ int|netbsd32||close(int fd); }
741.125Spgoyette7	COMPAT_50 MODULAR compat_netbsd32_50	\
751.125Spgoyette			{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
761.75Schristos			    int options, netbsd32_rusage50p_t rusage); }
771.125Spgoyette8	COMPAT_43 MODULAR compat_netbsd32_43	\
781.125Spgoyette			{ int|netbsd32||ocreat(netbsd32_charp path, \
791.75Schristos			    mode_t mode); }
801.77Spooka9	STD		{ int|netbsd32||link(netbsd32_charp path, \
811.75Schristos			    netbsd32_charp link); }
821.77Spooka10	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
831.1Smrg11	OBSOL		execv
841.77Spooka12	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
851.77Spooka13	STD		{ int|netbsd32||fchdir(int fd); }
861.125Spgoyette14	COMPAT_50 MODULAR compat_netbsd32_50	\
871.125Spgoyette			{ int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
881.75Schristos			    uint32_t dev); }
891.77Spooka15	STD		{ int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
901.77Spooka16	STD		{ int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
911.75Schristos			    gid_t gid); }
921.77Spooka17	STD		{ int|netbsd32||break(netbsd32_charp nsize); }
931.125Spgoyette18	COMPAT_20 MODULAR compat_netbsd32_20	\
941.125Spgoyette			{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
951.75Schristos			    netbsd32_long bufsize, int flags); }
961.125Spgoyette19	COMPAT_43 MODULAR compat_netbsd32_43	\
971.125Spgoyette			{ netbsd32_long|netbsd32||olseek(int fd, \
981.75Schristos			    netbsd32_long offset, int whence); }
991.77Spooka20	NOARGS 		{ pid_t|sys||getpid(void); }
1001.125Spgoyette21	COMPAT_40 MODULAR compat_netbsd32_40	\
1011.125Spgoyette			{ int|netbsd32||mount(netbsd32_charp type, \
1021.75Schristos			    netbsd32_charp path, int flags, \
1031.75Schristos			    netbsd32_voidp data); }
1041.77Spooka22	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
1051.75Schristos			    int flags); }
1061.77Spooka23	STD		{ int|netbsd32||setuid(uid_t uid); }
1071.77Spooka24	NOARGS 		{ uid_t|sys||getuid(void); }
1081.77Spooka25	NOARGS		{ uid_t|sys||geteuid(void); }
1091.115Sskrll26	STD MODULAR compat_netbsd32_ptrace \
1101.115Sskrll			{ int|netbsd32||ptrace(int req, pid_t pid, \
1111.75Schristos			    netbsd32_voidp addr, int data); }
1121.77Spooka27	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
1131.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1141.77Spooka28	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
1151.75Schristos			    netbsd32_msghdrp_t msg, int flags); }
1161.77Spooka29	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
1171.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
1181.75Schristos			    int flags, netbsd32_sockaddrp_t from, \
1191.75Schristos			    netbsd32_intp fromlenaddr); }
1201.77Spooka30	STD		{ int|netbsd32||accept(int s, \
1211.75Schristos			    netbsd32_sockaddrp_t name, \
1221.75Schristos			    netbsd32_intp anamelen); }
1231.77Spooka31	STD		{ int|netbsd32||getpeername(int fdes, \
1241.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1251.77Spooka32	STD		{ int|netbsd32||getsockname(int fdes, \
1261.75Schristos			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1271.77Spooka33	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
1281.77Spooka34	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
1291.75Schristos			    netbsd32_u_long flags); }
1301.77Spooka35	STD		{ int|netbsd32||fchflags(int fd, \
1311.75Schristos			    netbsd32_u_long flags); }
1321.77Spooka36	NOARGS		{ void|sys||sync(void); }
1331.77Spooka37	STD		{ int|netbsd32||kill(int pid, int signum); }
1341.125Spgoyette38	COMPAT_43 MODULAR compat_netbsd32_43	\
1351.125Spgoyette			{ int|netbsd32||stat43(netbsd32_charp path, \
1361.75Schristos			    netbsd32_stat43p_t ub); }
1371.77Spooka39	NOARGS 		{ pid_t|sys||getppid(void); }
1381.125Spgoyette40	COMPAT_43 MODULAR compat_netbsd32_43	\
1391.125Spgoyette			{ int|netbsd32||lstat43(netbsd32_charp path, \
1401.75Schristos			    netbsd32_stat43p_t ub); }
1411.77Spooka41	STD		{ int|netbsd32||dup(int fd); }
1421.77Spooka42	NOARGS		{ int|sys||pipe(void); }
1431.77Spooka43	NOARGS 		{ gid_t|sys||getegid(void); }
1441.77Spooka44	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
1451.75Schristos			    netbsd32_size_t size, netbsd32_u_long offset, \
1461.75Schristos			    u_int scale); }
1471.77Spooka45	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
1481.75Schristos			    int facs, int pid); }
1491.77Spooka46	STD		{ int|netbsd32||sigaction(int signum, \
1501.75Schristos			    netbsd32_sigactionp_t nsa, \
1511.75Schristos			    netbsd32_sigactionp_t osa); }
1521.77Spooka47	NOARGS 		{ gid_t|sys||getgid(void); }
1531.125Spgoyette48	COMPAT_13 MODULAR compat_netbsd32_13	\
1541.125Spgoyette			{ int|netbsd32||sigprocmask(int how, \
1551.3Seeh			    int mask); } sigprocmask13
1561.77Spooka49	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
1571.75Schristos			    u_int namelen); }
1581.77Spooka50	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
1591.77Spooka51	STD		{ int|netbsd32||acct(netbsd32_charp path); }
1601.125Spgoyette52	COMPAT_13 MODULAR compat_netbsd32_13	\
1611.125Spgoyette		 	{ int|sys||sigpending(void); } sigpending13
1621.125Spgoyette53	COMPAT_13 MODULAR compat_netbsd32_13	\
1631.125Spgoyette			{ int|netbsd32||sigaltstack13( \
1641.75Schristos			    netbsd32_sigaltstack13p_t nss, \
1651.75Schristos			    netbsd32_sigaltstack13p_t oss); }
1661.77Spooka54	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
1671.75Schristos			    ... netbsd32_voidp data); }
1681.125Spgoyette55	COMPAT_12 MODULAR compat_netbsd32_12	\
1691.125Spgoyette			{ int|netbsd32||reboot(int opt); }
1701.77Spooka56	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
1711.77Spooka57	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
1721.75Schristos			    netbsd32_charp link); }
1731.77Spooka58	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
1741.75Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
1751.77Spooka59	STD		{ int|netbsd32||execve(netbsd32_charp path, \
1761.75Schristos			    netbsd32_charpp argp, netbsd32_charpp envp); }
1771.77Spooka60	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
1781.77Spooka61	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
1791.125Spgoyette62	COMPAT_43 MODULAR compat_netbsd32_43	\
1801.125Spgoyette			{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
1811.125Spgoyette63	COMPAT_43 MODULAR compat_netbsd32_43	\
1821.125Spgoyette			{ int|netbsd32||ogetkerninfo(int op, \
1831.75Schristos			    netbsd32_charp where, netbsd32_intp size, \
1841.75Schristos			    int arg); }
1851.125Spgoyette64	COMPAT_43 MODULAR compat_netbsd32_43	\
1861.125Spgoyette			{ int|sys||getpagesize(void); } ogetpagesize
1871.125Spgoyette65	COMPAT_12 MODULAR compat_netbsd32_12	\
1881.125Spgoyette			{ int|netbsd32||msync(netbsd32_voidp addr, \
1891.75Schristos			    netbsd32_size_t len); }
1901.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1911.77Spooka66	NOARGS		{ int|sys||vfork(void); }
1921.1Smrg67	OBSOL		vread
1931.1Smrg68	OBSOL		vwrite
1941.118Skamil69	OBSOL		sbrk
1951.117Skamil70	OBSOL		sstk
1961.125Spgoyette71	COMPAT_43 MODULAR compat_netbsd32_43	\
1971.125Spgoyette			{ int|netbsd32||ommap(netbsd32_voidp addr, \
1981.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
1991.75Schristos			    netbsd32_long pos); }
2001.120Skamil72	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
2011.77Spooka73	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
2021.75Schristos			    netbsd32_size_t len); }
2031.77Spooka74	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
2041.75Schristos			    netbsd32_size_t len, int prot); }
2051.77Spooka75	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
2061.75Schristos			    netbsd32_size_t len, int behav); }
2071.1Smrg76	OBSOL		vhangup
2081.1Smrg77	OBSOL		vlimit
2091.77Spooka78	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
2101.75Schristos			    netbsd32_size_t len, netbsd32_charp vec); }
2111.77Spooka79	STD		{ int|netbsd32||getgroups(int gidsetsize, \
2121.75Schristos			    netbsd32_gid_tp gidset); }
2131.77Spooka80	STD		{ int|netbsd32||setgroups(int gidsetsize, \
2141.75Schristos			    netbsd32_gid_tp gidset); }
2151.77Spooka81	NOARGS 		{ int|sys||getpgrp(void); }
2161.77Spooka82	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
2171.125Spgoyette83	COMPAT_50 MODULAR compat_netbsd32_50	\
2181.125Spgoyette			{ int|netbsd32||setitimer(int which, \
2191.75Schristos			    netbsd32_itimerval50p_t itv, \
2201.75Schristos			    netbsd32_itimerval50p_t oitv); }
2211.125Spgoyette84	COMPAT_43 MODULAR compat_netbsd32_43	\
2221.125Spgoyette			{ int|sys||wait(void); } owait
2231.125Spgoyette85	COMPAT_12 MODULAR compat_netbsd32_12	\
2241.125Spgoyette			{ int|netbsd32||oswapon(netbsd32_charp name); }
2251.125Spgoyette86	COMPAT_50 MODULAR compat_netbsd32_50	\
2261.125Spgoyette			{ int|netbsd32||getitimer(int which, \
2271.75Schristos			    netbsd32_itimerval50p_t itv); }
2281.125Spgoyette87	COMPAT_43 MODULAR compat_netbsd32_43	\
2291.125Spgoyette			{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
2301.75Schristos			    u_int len); }
2311.125Spgoyette88	COMPAT_43 MODULAR compat_netbsd32_43	\
2321.125Spgoyette			{ int|netbsd32||osethostname(netbsd32_charp hostname, \
2331.75Schristos			    u_int len); }
2341.125Spgoyette89	COMPAT_43 MODULAR compat_netbsd32_43	\
2351.125Spgoyette			{ int|sys||getdtablesize(void); } ogetdtablesize
2361.77Spooka90	STD		{ int|netbsd32||dup2(int from, int to); }
2371.1Smrg91	UNIMPL		getdopt
2381.77Spooka92	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
2391.75Schristos			    ... netbsd32_voidp arg); }
2401.125Spgoyette93	COMPAT_50 MODULAR compat_netbsd32_50	\
2411.125Spgoyette			{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
2421.75Schristos			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
2431.75Schristos			    netbsd32_timeval50p_t tv); }
2441.1Smrg94	UNIMPL		setdopt
2451.77Spooka95	STD		{ int|netbsd32||fsync(int fd); }
2461.77Spooka96	STD		{ int|netbsd32||setpriority(int which, int who, \
2471.75Schristos			    int prio); }
2481.125Spgoyette97	COMPAT_30 MODULAR compat_netbsd32_30	\
2491.125Spgoyette			{ int|netbsd32||socket(int domain, int type, \
2501.75Schristos			    int protocol); }
2511.77Spooka98	STD		{ int|netbsd32||connect(int s, \
2521.75Schristos			    netbsd32_sockaddrp_t name, int namelen); }
2531.125Spgoyette99	COMPAT_43 MODULAR compat_netbsd32_43	\
2541.125Spgoyette			{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
2551.75Schristos			    netbsd32_intp anamelen); }
2561.77Spooka100	STD		{ int|netbsd32||getpriority(int which, int who); }
2571.125Spgoyette101	COMPAT_43 MODULAR compat_netbsd32_43	\
2581.125Spgoyette			{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
2591.75Schristos			    int len, int flags); }
2601.125Spgoyette102	COMPAT_43 MODULAR compat_netbsd32_43	\
2611.125Spgoyette			{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
2621.75Schristos			    int len, int flags); }
2631.125Spgoyette103	COMPAT_13 MODULAR compat_netbsd32_13	\
2641.125Spgoyette			{ int|netbsd32||sigreturn( \
2651.75Schristos			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
2661.77Spooka104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
2671.75Schristos			    int namelen); }
2681.77Spooka105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
2691.75Schristos			    netbsd32_voidp val, int valsize); }
2701.77Spooka106	STD		{ int|netbsd32||listen(int s, int backlog); }
2711.1Smrg107	OBSOL		vtimes
2721.125Spgoyette108	COMPAT_43 MODULAR compat_netbsd32_43	\
2731.125Spgoyette			{ int|netbsd32||osigvec(int signum, \
2741.75Schristos			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
2751.125Spgoyette109	COMPAT_43 MODULAR compat_netbsd32_43	\
2761.125Spgoyette			{ int|netbsd32||sigblock(int mask); }
2771.125Spgoyette110	COMPAT_43 MODULAR compat_netbsd32_43	\
2781.125Spgoyette			{ int|netbsd32||sigsetmask(int mask); }
2791.125Spgoyette111	COMPAT_13 MODULAR compat_netbsd32_13	\
2801.125Spgoyette			{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
2811.125Spgoyette112	COMPAT_43 MODULAR compat_netbsd32_43	\
2821.125Spgoyette			{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
2831.75Schristos			    netbsd32_sigstackp_t oss); }
2841.125Spgoyette113	COMPAT_43 MODULAR compat_netbsd32_43	\
2851.125Spgoyette			{ int|netbsd32||orecvmsg(int s, \
2861.75Schristos			    netbsd32_omsghdrp_t msg, int flags); }
2871.125Spgoyette114	COMPAT_43 MODULAR compat_netbsd32_43	\
2881.125Spgoyette			{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
2891.75Schristos			    int flags); }
2901.1Smrg115	OBSOL		vtrace
2911.125Spgoyette116	COMPAT_50 MODULAR compat_netbsd32_50	\
2921.125Spgoyette			{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
2931.75Schristos			    netbsd32_timezonep_t tzp); }
2941.125Spgoyette117	COMPAT_50 MODULAR compat_netbsd32_50	\
2951.125Spgoyette			{ int|netbsd32||getrusage(int who, \
2961.75Schristos			    netbsd32_rusage50p_t rusage); }
2971.77Spooka118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
2981.75Schristos			    netbsd32_voidp val, netbsd32_intp avalsize); }
2991.1Smrg119	OBSOL		resuba
3001.77Spooka120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
3011.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3021.77Spooka121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
3031.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3041.125Spgoyette122	COMPAT_50 MODULAR compat_netbsd32_50	\
3051.125Spgoyette			{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
3061.75Schristos			    netbsd32_timezonep_t tzp); }
3071.77Spooka123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
3081.77Spooka124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
3091.125Spgoyette125	COMPAT_43 MODULAR compat_netbsd32_43	\
3101.125Spgoyette			{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
3111.75Schristos			    netbsd32_size_t len, int flags, \
3121.75Schristos			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
3131.77Spooka126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
3141.77Spooka127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
3151.77Spooka128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
3161.75Schristos			    netbsd32_charp to); }
3171.125Spgoyette129	COMPAT_43 MODULAR compat_netbsd32_43	\
3181.125Spgoyette			{ int|netbsd32||otruncate(netbsd32_charp path, \
3191.75Schristos			    netbsd32_long length); }
3201.125Spgoyette130	COMPAT_43 MODULAR compat_netbsd32_43	\
3211.125Spgoyette			{ int|netbsd32||oftruncate(int fd, \
3221.75Schristos			    netbsd32_long length); }
3231.77Spooka131	STD		{ int|netbsd32||flock(int fd, int how); }
3241.77Spooka132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
3251.75Schristos			    mode_t mode); }
3261.77Spooka133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
3271.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
3281.75Schristos			    int flags, netbsd32_sockaddrp_t to, int tolen); }
3291.77Spooka134	STD		{ int|netbsd32||shutdown(int s, int how); }
3301.77Spooka135	STD		{ int|netbsd32||socketpair(int domain, int type, \
3311.75Schristos			    int protocol, netbsd32_intp rsv); }
3321.77Spooka136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
3331.75Schristos			    mode_t mode); }
3341.77Spooka137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
3351.125Spgoyette138	COMPAT_50 MODULAR compat_netbsd32_50	\
3361.125Spgoyette			{ int|netbsd32||utimes(netbsd32_charp path, \
3371.75Schristos			    netbsd32_timeval50p_t tptr); }
3381.1Smrg139	OBSOL		4.2 sigreturn
3391.125Spgoyette140	COMPAT_50 MODULAR compat_netbsd32_50	\
3401.125Spgoyette			{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
3411.75Schristos			    netbsd32_timeval50p_t olddelta); }
3421.125Spgoyette141	COMPAT_43 MODULAR compat_netbsd32_43	\
3431.125Spgoyette			{ int|netbsd32||ogetpeername(int fdes, \
3441.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3451.125Spgoyette142	COMPAT_43 MODULAR compat_netbsd32_43	\
3461.125Spgoyette			{ int32_t|sys||gethostid(void); } ogethostid
3471.125Spgoyette143	COMPAT_43 MODULAR compat_netbsd32_43	\
3481.125Spgoyette			{ int|netbsd32||sethostid(int32_t hostid); }
3491.125Spgoyette144	COMPAT_43 MODULAR compat_netbsd32_43	\
3501.125Spgoyette			{ int|netbsd32||ogetrlimit(int which, \
3511.75Schristos			    netbsd32_orlimitp_t rlp); }
3521.125Spgoyette145	COMPAT_43 MODULAR compat_netbsd32_43	\
3531.125Spgoyette			{ int|netbsd32||osetrlimit(int which, \
3541.75Schristos			    netbsd32_orlimitp_t rlp); }
3551.125Spgoyette146	COMPAT_43 MODULAR compat_netbsd32_43	\
3561.125Spgoyette			{ int|netbsd32||killpg(int pgid, int signum); }
3571.77Spooka147	NOARGS		{ int|sys||setsid(void); }
3581.126Schristos#if defined(QUOTA) || !defined(_KERNEL_OPT)
3591.125Spgoyette148	COMPAT_50 MODULAR compat_netbsd32_50	\
3601.125Spgoyette			{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
3611.75Schristos			    int uid, netbsd32_voidp arg); }
3621.125Spgoyette149	COMPAT_43 MODULAR compat_netbsd32_43	\
3631.125Spgoyette			{ int|sys||quota(void); } oquota
3641.126Schristos#else
3651.126Schristos148	EXCL 		compat_netbsd32_quotactl
3661.126Schristos149	EXCL 		compat_netbsd32_quota
3671.126Schristos#endif
3681.125Spgoyette150	COMPAT_43 MODULAR compat_netbsd32_43	\
3691.125Spgoyette			{ int|netbsd32||ogetsockname(int fdec, \
3701.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3711.1Smrg
3721.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
3731.1Smrg; system calls.  (This includes various calls added for compatibity
3741.1Smrg; with other Unix variants.)
3751.1Smrg; Some of these calls are now supported by BSD...
3761.1Smrg151	UNIMPL
3771.1Smrg152	UNIMPL
3781.1Smrg153	UNIMPL
3791.1Smrg154	UNIMPL
3801.110Spgoyette155	STD MODULAR compat_netbsd32_nfssrv	\
3811.110Spgoyette			{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
3821.125Spgoyette156	COMPAT_43 MODULAR compat_netbsd32_43	\
3831.125Spgoyette			{ int|netbsd32||ogetdirentries(int fd, \
3841.75Schristos			    netbsd32_charp buf, u_int count, \
3851.75Schristos			    netbsd32_longp basep); }
3861.125Spgoyette157	COMPAT_20 MODULAR compat_netbsd32_20	\
3871.125Spgoyette			{ int|netbsd32||statfs(netbsd32_charp path, \
3881.75Schristos			    netbsd32_statfsp_t buf); }
3891.125Spgoyette158	COMPAT_20 MODULAR compat_netbsd32_20	\
3901.125Spgoyette			{ int|netbsd32||fstatfs(int fd, \
3911.75Schristos			    netbsd32_statfsp_t buf); }
3921.1Smrg159	UNIMPL
3931.1Smrg160	UNIMPL
3941.125Spgoyette161	COMPAT_30 MODULAR compat_netbsd32_30	\
3951.125Spgoyette			{ int|netbsd32||getfh(netbsd32_charp fname, \
3961.75Schristos			    netbsd32_compat_30_fhandlep_t fhp); }
3971.125Spgoyette162	COMPAT_09 MODULAR compat_netbsd32_09	\
3981.125Spgoyette			{ int|netbsd32||ogetdomainname( \
3991.75Schristos			    netbsd32_charp domainname, int len); }
4001.125Spgoyette163	COMPAT_09 MODULAR compat_netbsd32_09	\
4011.125Spgoyette			{ int|netbsd32||osetdomainname( \
4021.75Schristos			    netbsd32_charp domainname, int len); }
4031.125Spgoyette164	COMPAT_09 MODULAR compat_netbsd32_09	\
4041.125Spgoyette			{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
4051.77Spooka165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
4061.1Smrg166	UNIMPL
4071.1Smrg167	UNIMPL
4081.1Smrg168	UNIMPL
4091.125Spgoyette169	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4101.112Spgoyette			{ int|netbsd32||semsys(int which, int a2, int a3, \
4111.75Schristos			    int a4, int a5); } osemsys
4121.125Spgoyette170	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4131.112Spgoyette			{ int|netbsd32||msgsys(int which, int a2, int a3, \
4141.75Schristos			    int a4, int a5, int a6); } omsgsys
4151.125Spgoyette171	COMPAT_10 MODULAR compat_netbsd32_sysvipc_10	\
4161.112Spgoyette			{ int|netbsd32||shmsys(int which, int a2, int a3, \
4171.75Schristos			    int a4); } oshmsys
4181.1Smrg172	UNIMPL
4191.77Spooka173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
4201.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
4211.99Snjoly			    int PAD, netbsd32_off_t offset); }
4221.77Spooka174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
4231.75Schristos			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
4241.99Snjoly			    int PAD, netbsd32_off_t offset); }
4251.125Spgoyette175	COMPAT_30 MODULAR compat_netbsd32_30	\
4261.125Spgoyette			{ int|netbsd32||ntp_gettime( \
4271.125Spgoyette			    netbsd32_ntptimeval50p_t ntvp); }
4281.78Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
4291.77Spooka176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
4301.78Schristos#else
4311.78Schristos176	EXCL		ntp_adjtime
4321.78Schristos#endif
4331.1Smrg177	UNIMPL
4341.1Smrg178	UNIMPL
4351.1Smrg179	UNIMPL
4361.1Smrg180	UNIMPL
4371.1Smrg
4381.1Smrg; Syscalls 180-199 are used by/reserved for BSD
4391.77Spooka181	STD		{ int|netbsd32||setgid(gid_t gid); }
4401.77Spooka182	STD		{ int|netbsd32||setegid(gid_t egid); }
4411.77Spooka183	STD		{ int|netbsd32||seteuid(uid_t euid); }
4421.75Schristos184	EXCL		netbsd32_lfs_bmapv
4431.75Schristos185	EXCL		netbsd32_lfs_markv
4441.75Schristos186	EXCL		netbsd32_lfs_segclean
4451.75Schristos187	EXCL		netbsd32_lfs_segwait
4461.125Spgoyette188	COMPAT_12 MODULAR compat_netbsd32_12	\
4471.125Spgoyette			{ int|netbsd32||stat12(netbsd32_charp path, \
4481.75Schristos			    netbsd32_stat12p_t ub); }
4491.125Spgoyette189	COMPAT_12 MODULAR compat_netbsd32_12	\
4501.125Spgoyette			{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
4511.125Spgoyette190	COMPAT_12 MODULAR compat_netbsd32_12	\
4521.125Spgoyette			{ int|netbsd32||lstat12(netbsd32_charp path, \
4531.75Schristos			    netbsd32_stat12p_t ub); }
4541.77Spooka191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
4551.75Schristos			    int name); }
4561.77Spooka192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
4571.123Srjs193	STD		{ int|netbsd32||getsockopt2(int s, int level, int name, \
4581.123Srjs			    netbsd32_voidp val, netbsd32_intp avalsize); }
4591.77Spooka194	STD		{ int|netbsd32||getrlimit(int which, \
4601.75Schristos			    netbsd32_rlimitp_t rlp); }
4611.77Spooka195	STD		{ int|netbsd32||setrlimit(int which, \
4621.75Schristos			    netbsd32_rlimitp_t rlp); }
4631.125Spgoyette196	COMPAT_12 MODULAR compat_netbsd32_12	\
4641.125Spgoyette			{ int|netbsd32||getdirentries(int fd, \
4651.75Schristos			    netbsd32_charp buf, u_int count, \
4661.75Schristos			    netbsd32_longp basep); }
4671.77Spooka197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
4681.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
4691.99Snjoly			    netbsd32_long PAD, netbsd32_off_t pos); }
4701.77Spooka198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
4711.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
4721.99Snjoly199	STD		{ netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \
4731.99Snjoly			    netbsd32_off_t offset, int whence); }
4741.80Spooka200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
4751.99Snjoly			    netbsd32_off_t length); }
4761.80Spooka201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
4771.99Snjoly			    netbsd32_off_t length); }
4781.77Spooka202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
4791.101Sjoerg			    u_int namelen, netbsd32_voidp oldv, \
4801.101Sjoerg			    netbsd32_size_tp oldlenp, netbsd32_voidp newv, \
4811.75Schristos			    netbsd32_size_t newlen); }
4821.77Spooka203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
4831.75Schristos			    netbsd32_size_t len); }
4841.77Spooka204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
4851.75Schristos			    netbsd32_size_t len); }
4861.77Spooka205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
4871.125Spgoyette206	COMPAT_50 MODULAR compat_netbsd32_50	\
4881.125Spgoyette			{ int|netbsd32||futimes(int fd, \
4891.75Schristos			    netbsd32_timeval50p_t tptr); }
4901.77Spooka207	STD		{ int|netbsd32||getpgid(pid_t pid); }
4911.77Spooka208	STD		{ int|netbsd32||reboot(int opt, \
4921.75Schristos			    netbsd32_charp bootstr); }
4931.77Spooka209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
4941.75Schristos			    u_int nfds, int timeout); }
4951.106Smartin210	UNIMPL		{ int|netbsd32||afssys(long id, long a1, long a2, \
4961.106Smartin			    long a3, long a4, long a5, long a6); }
4971.71Sad211	UNIMPL
4981.71Sad212	UNIMPL
4991.71Sad213	UNIMPL
5001.71Sad214	UNIMPL
5011.71Sad215	UNIMPL
5021.71Sad216	UNIMPL
5031.71Sad217	UNIMPL
5041.71Sad218	UNIMPL
5051.71Sad219	UNIMPL
5061.1Smrg; System calls 220-300 are reserved for use by NetBSD
5071.125Spgoyette220	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5081.112Spgoyette			{ int|netbsd32||__semctl(int semid, int semnum, \
5091.75Schristos			    int cmd, netbsd32_semunu_t arg); }
5101.112Spgoyette221	STD MODULAR compat_netbsd32_sysvipc	\
5111.112Spgoyette			{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
5121.75Schristos			    int semflg); }
5131.112Spgoyette222	STD MODULAR compat_netbsd32_sysvipc	\
5141.112Spgoyette			{ int|netbsd32||semop(int semid, \
5151.75Schristos			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
5161.112Spgoyette223	STD MODULAR compat_netbsd32_sysvipc	\
5171.112Spgoyette			{ int|netbsd32||semconfig(int flag); }
5181.125Spgoyette224	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5191.112Spgoyette			{ int|netbsd32||msgctl(int msqid, int cmd, \
5201.75Schristos			    netbsd32_msqid_ds14p_t buf); }
5211.112Spgoyette225	STD MODULAR compat_netbsd32_sysvipc	\
5221.112Spgoyette			{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
5231.112Spgoyette226	STD MODULAR compat_netbsd32_sysvipc	\
5241.112Spgoyette			{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
5251.75Schristos			    netbsd32_size_t msgsz, int msgflg); }
5261.112Spgoyette227	STD MODULAR compat_netbsd32_sysvipc	\
5271.112Spgoyette			{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
5281.75Schristos			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
5291.75Schristos			    netbsd32_long msgtyp, int msgflg); }
5301.112Spgoyette228	STD MODULAR compat_netbsd32_sysvipc	\
5311.112Spgoyette			{ netbsd32_voidp|netbsd32||shmat(int shmid, \
5321.75Schristos			    netbsd32_voidp shmaddr, int shmflg); }
5331.125Spgoyette229	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5341.112Spgoyette			{ int|netbsd32||shmctl(int shmid, int cmd, \
5351.75Schristos			    netbsd32_shmid_dsp_t buf); }
5361.112Spgoyette230	STD MODULAR compat_netbsd32_sysvipc	\
5371.112Spgoyette			{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
5381.112Spgoyette231	STD MODULAR compat_netbsd32_sysvipc	\
5391.112Spgoyette			{ int|netbsd32||shmget(netbsd32_key_t key, \
5401.75Schristos			    netbsd32_size_t size, int shmflg); }
5411.125Spgoyette232	COMPAT_50 MODULAR compat_netbsd32_50	\
5421.125Spgoyette			{ int|netbsd32||clock_gettime( \
5431.75Schristos			    netbsd32_clockid_t clock_id, \
5441.75Schristos			    netbsd32_timespec50p_t tp); }
5451.125Spgoyette233	COMPAT_50 MODULAR compat_netbsd32_50	\
5461.125Spgoyette			{ int|netbsd32||clock_settime( \
5471.75Schristos			    netbsd32_clockid_t clock_id, \
5481.75Schristos			    netbsd32_timespec50p_t tp); }
5491.125Spgoyette234	COMPAT_50 MODULAR compat_netbsd32_50	\
5501.125Spgoyette			{ int|netbsd32||clock_getres( \
5511.75Schristos			    netbsd32_clockid_t clock_id, \
5521.75Schristos			    netbsd32_timespec50p_t tp); }
5531.77Spooka235	STD		{ int|netbsd32||timer_create( \
5541.75Schristos			    netbsd32_clockid_t clock_id, \
5551.75Schristos			    netbsd32_sigeventp_t evp, \
5561.36Scube			    netbsd32_timerp_t timerid); }
5571.77Spooka236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
5581.125Spgoyette237	COMPAT_50 MODULAR compat_netbsd32_50	\
5591.125Spgoyette			{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
5601.75Schristos			    int flags, \
5611.75Schristos			    netbsd32_itimerspec50p_t value, \
5621.75Schristos			    netbsd32_itimerspec50p_t ovalue); }
5631.125Spgoyette238	COMPAT_50 MODULAR compat_netbsd32_50	\
5641.125Spgoyette			{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
5651.75Schristos			    netbsd32_itimerspec50p_t value); }
5661.77Spooka239	STD		{ int|netbsd32||timer_getoverrun( \
5671.75Schristos			    netbsd32_timer_t timerid); }
5681.1Smrg;
5691.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
5701.1Smrg;
5711.125Spgoyette240	COMPAT_50 MODULAR compat_netbsd32_50	\
5721.125Spgoyette			{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
5731.75Schristos			    netbsd32_timespec50p_t rmtp); }
5741.77Spooka241	STD		{ int|netbsd32||fdatasync(int fd); }
5751.77Spooka242	STD		{ int|netbsd32||mlockall(int flags); }
5761.77Spooka243	NOARGS		{ int|sys||munlockall(void); }
5771.125Spgoyette244	COMPAT_50 MODULAR compat_netbsd32_50	\
5781.125Spgoyette			{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
5791.37Scube			    netbsd32_siginfop_t info, \
5801.75Schristos			    netbsd32_timespec50p_t timeout); }
5811.104Smartin245	STD		{ int|netbsd32||sigqueueinfo(pid_t pid, \
5821.104Smartin			    const netbsd32_siginfop_t info); }
5831.104Smartin246	STD		{ int|netbsd32||modctl(int cmd, netbsd32_voidp arg); }
5841.77Spooka247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
5851.75Schristos			    netbsd32_semidp_t idp); }
5861.77Spooka248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
5871.75Schristos			    int oflag, mode_t mode, unsigned int value, \
5881.75Schristos			    netbsd32_semidp_t idp); }
5891.77Spooka249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
5901.77Spooka250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
5911.77Spooka251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
5921.77Spooka252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
5931.77Spooka253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
5941.77Spooka254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
5951.42Scube			    netbsd32_intp value); }
5961.77Spooka255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
5971.93Sjoerg256	STD		{ int|netbsd32||_ksem_timedwait(intptr_t id, \
5981.93Sjoerg				const netbsd32_timespecp_t abstime); }
5991.111Spgoyette257	STD MODULAR compat_netbsd32_mqueue	\
6001.111Spgoyette			{ mqd_t|netbsd32||mq_open(const netbsd32_charp name, \
6011.104Smartin			    int oflag, mode_t mode, \
6021.104Smartin			    netbsd32_mq_attrp_t attr); }
6031.111Spgoyette258	STD MODULAR compat_netbsd32_mqueue	\
6041.111Spgoyette	 		{ int|netbsd32||mq_close(mqd_t mqdes); }
6051.111Spgoyette259	STD MODULAR compat_netbsd32_mqueue	\
6061.111Spgoyette	 		{ int|netbsd32||mq_unlink(const netbsd32_charp name); }
6071.111Spgoyette260	STD MODULAR compat_netbsd32_mqueue	\
6081.111Spgoyette			{ int|netbsd32||mq_getattr(mqd_t mqdes, \
6091.104Smartin			    netbsd32_mq_attrp_t mqstat); }
6101.111Spgoyette261	STD MODULAR compat_netbsd32_mqueue	\
6111.111Spgoyette	 		{ int|netbsd32||mq_setattr(mqd_t mqdes, \
6121.104Smartin			    const netbsd32_mq_attrp_t mqstat, \
6131.104Smartin			    netbsd32_mq_attrp_t omqstat); }
6141.111Spgoyette262	STD MODULAR compat_netbsd32_mqueue	\
6151.111Spgoyette			{ int|netbsd32||mq_notify(mqd_t mqdes, \
6161.104Smartin			    const netbsd32_sigeventp_t notification); }
6171.111Spgoyette263	STD MODULAR compat_netbsd32_mqueue	\
6181.111Spgoyette			{ int|netbsd32||mq_send(mqd_t mqdes, \
6191.104Smartin			    const netbsd32_charp msg_ptr, \
6201.104Smartin			    netbsd32_size_t msg_len, unsigned msg_prio); }
6211.111Spgoyette264	STD MODULAR compat_netbsd32_mqueue	\
6221.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \
6231.104Smartin			    netbsd32_charp msg_ptr, \
6241.104Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio); }
6251.111Spgoyette265	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6261.111Spgoyette			{ int|netbsd32||mq_timedsend(mqd_t mqdes, \
6271.104Smartin			    const netbsd32_charp msg_ptr, \
6281.104Smartin			    netbsd32_size_t msg_len, \
6291.104Smartin			    unsigned msg_prio, \
6301.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6311.111Spgoyette266	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6321.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_timedreceive( \
6331.104Smartin			    mqd_t mqdes, \
6341.104Smartin			    netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
6351.104Smartin			    netbsd32_uintp msg_prio, \
6361.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6371.1Smrg267	UNIMPL
6381.1Smrg268	UNIMPL
6391.1Smrg269	UNIMPL
6401.77Spooka270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
6411.75Schristos			    netbsd32_charp to); }
6421.77Spooka271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
6431.75Schristos			    int misc); }
6441.125Spgoyette272	COMPAT_30 MODULAR compat_netbsd32_30	\
6451.125Spgoyette			{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
6461.75Schristos			    netbsd32_size_t count); }
6471.77Spooka273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
6481.75Schristos			    netbsd32_size_t len, int inherit); }
6491.77Spooka274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
6501.75Schristos			    mode_t mode); }
6511.77Spooka275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
6521.75Schristos			    gid_t gid); }
6531.125Spgoyette276	COMPAT_50 MODULAR compat_netbsd32_50	\
6541.125Spgoyette			{ int|netbsd32||lutimes(netbsd32_charp path, \
6551.75Schristos			    netbsd32_timeval50p_t tptr); }
6561.77Spooka277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
6571.75Schristos			    netbsd32_size_t len, int flags); }
6581.125Spgoyette278	COMPAT_30 MODULAR compat_netbsd32_30	\
6591.125Spgoyette			{ int|netbsd32|13|stat(netbsd32_charp path, \
6601.75Schristos			    netbsd32_stat13p_t ub); }
6611.125Spgoyette279	COMPAT_30 MODULAR compat_netbsd32_30	\
6621.125Spgoyette			{ int|netbsd32|13|fstat(int fd, \
6631.75Schristos			    netbsd32_stat13p_t sb); }
6641.125Spgoyette280	COMPAT_30 MODULAR compat_netbsd32_30	\
6651.125Spgoyette			{ int|netbsd32|13|lstat(netbsd32_charp path, \
6661.75Schristos			    netbsd32_stat13p_t ub); }
6671.77Spooka281	STD		{ int|netbsd32|14|sigaltstack(\
6681.75Schristos			    netbsd32_sigaltstackp_t nss, \
6691.75Schristos			    netbsd32_sigaltstackp_t oss); }
6701.77Spooka282	NOARGS		{ int|sys|14|vfork(void); }
6711.77Spooka283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
6721.75Schristos			    uid_t uid, gid_t gid); }
6731.77Spooka284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
6741.75Schristos			    gid_t gid); }
6751.77Spooka285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
6761.75Schristos			    uid_t uid, gid_t gid); }
6771.77Spooka286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
6781.77Spooka287	STD		{ int|netbsd32||__clone(int flags, \
6791.75Schristos			    netbsd32_voidp stack); }
6801.77Spooka288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
6811.75Schristos			    int pid); }
6821.77Spooka289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
6831.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6841.99Snjoly			    netbsd32_off_t offset); }
6851.77Spooka290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
6861.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6871.99Snjoly			    netbsd32_off_t offset); }
6881.77Spooka291	STD		{ int|netbsd32|14|sigaction(int signum, \
6891.64Sdsl			    netbsd32_sigactionp_t nsa, \
6901.11Seeh			    netbsd32_sigactionp_t osa); }
6911.77Spooka292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
6921.77Spooka293	STD		{ int|netbsd32|14|sigprocmask(int how, \
6931.64Sdsl			    netbsd32_sigsetp_t set, \
6941.11Seeh			    netbsd32_sigsetp_t oset); }
6951.77Spooka294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
6961.125Spgoyette295	COMPAT_16 MODULAR compat_netbsd32_16	\
6971.125Spgoyette			{ int|netbsd32|14|sigreturn( \
6981.75Schristos			    netbsd32_sigcontextp_t sigcntxp); }
6991.77Spooka296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
7001.75Schristos			    netbsd32_size_t length); }
7011.77Spooka297	STD		{ int|netbsd32||fchroot(int fd); }
7021.125Spgoyette298	COMPAT_30 MODULAR compat_netbsd32_30	\
7031.125Spgoyette			{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
7041.11Seeh			   int flags); }
7051.125Spgoyette299	COMPAT_30 MODULAR compat_netbsd32_30	\
7061.125Spgoyette			{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
7071.45Scube			    netbsd32_stat13p_t sb); }
7081.125Spgoyette300	COMPAT_20 MODULAR compat_netbsd32_20	\
7091.125Spgoyette			{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
7101.75Schristos			    netbsd32_stat50p_t buf); }
7111.125Spgoyette301	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7121.112Spgoyette			{ int|netbsd32|14|semctl(int semid, int semnum, \
7131.75Schristos			    int cmd, ... netbsd32_semun50p_t arg); }
7141.125Spgoyette302	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7151.112Spgoyette			{ int|netbsd32|13|msgctl(int msqid, int cmd, \
7161.75Schristos			    netbsd32_msqid_ds50p_t buf); }
7171.125Spgoyette303	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7181.112Spgoyette			{ int|netbsd32|13|shmctl(int shmid, int cmd, \
7191.75Schristos			    netbsd32_shmid_ds50p_t buf); }
7201.77Spooka304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
7211.75Schristos			    netbsd32_u_long flags); }
7221.77Spooka305	NOARGS 		{ int|sys||issetugid(void); }
7231.77Spooka306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
7241.75Schristos			    netbsd32_voidp addr, netbsd32_size_t len); }
7251.77Spooka307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
7261.100Snjoly308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp); }
7271.77Spooka309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
7281.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
7291.77Spooka310	NOARGS		{ int|sys||_lwp_exit(void); }
7301.77Spooka311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
7311.77Spooka312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
7321.44Scube			    netbsd32_lwpidp departed); }
7331.77Spooka313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
7341.77Spooka314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
7351.77Spooka315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
7361.77Spooka316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
7371.77Spooka317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
7381.77Spooka318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
7391.77Spooka319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
7401.125Spgoyette320	COMPAT_50 MODULAR compat_netbsd32_50	\
7411.125Spgoyette			{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
7421.75Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
7431.75Schristos			    netbsd32_voidp unparkhint); }
7441.77Spooka321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
7451.75Schristos			    netbsd32_voidp hint); }
7461.77Spooka322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
7471.75Schristos			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
7481.75Schristos			    netbsd32_voidp hint); }
7491.77Spooka323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
7501.64Sdsl				netbsd32_charp name); }
7511.77Spooka324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
7521.63Sad				netbsd32_charp name, netbsd32_size_t len); }
7531.77Spooka325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
7541.63Sad				netbsd32_pointer_t address); }
7551.18Smrg326	UNIMPL
7561.18Smrg327	UNIMPL
7571.18Smrg328	UNIMPL
7581.18Smrg329	UNIMPL
7591.92Srmind330	OBSOL		netbsd32_sa_register
7601.92Srmind331	OBSOL		netbsd32_sa_stacks
7611.92Srmind332	OBSOL		sa_enable
7621.92Srmind333	OBSOL		netbsd32_sa_setconcurrency
7631.92Srmind334	OBSOL		sa_yield
7641.92Srmind335	OBSOL		netbsd32_sa_preempt
7651.44Scube336	OBSOL		sys_sa_unblockyield
7661.18Smrg337	UNIMPL
7671.18Smrg338	UNIMPL
7681.18Smrg339	UNIMPL
7691.77Spooka340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
7701.64Sdsl			    netbsd32_sigactionp_t nsa, \
7711.22Sscw			    netbsd32_sigactionp_t osa, \
7721.22Sscw			    netbsd32_voidp tramp, int vers); }
7731.122Smaxv341	OBSOL		netbsd32_pmc_get_info
7741.122Smaxv342	OBSOL		netbsd32_pmc_control
7751.77Spooka343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
7761.75Schristos			    netbsd32_size_t len, int op); }
7771.77Spooka344	NOARGS		{ int|sys||kqueue(void); }
7781.125Spgoyette345	COMPAT_50 MODULAR compat_netbsd32_50	\
7791.125Spgoyette			{ int|netbsd32||kevent(int fd, \
7801.75Schristos			    netbsd32_keventp_t changelist, \
7811.75Schristos			    netbsd32_size_t nchanges, \
7821.75Schristos			    netbsd32_keventp_t eventlist, \
7831.75Schristos			    netbsd32_size_t nevents, \
7841.75Schristos			    netbsd32_timespec50p_t timeout); }
7851.74Smrg; Scheduling system calls.
7861.77Spooka346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
7871.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
7881.77Spooka347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
7891.75Schristos			    netbsd32_intp policy, \
7901.75Schristos			    netbsd32_sched_paramp_t params); }
7911.77Spooka348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
7921.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7931.75Schristos			    const netbsd32_cpusetp_t cpuset); }
7941.77Spooka349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
7951.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7961.75Schristos			    netbsd32_cpusetp_t cpuset); }
7971.77Spooka350	NOARGS 		{ int|sys||sched_yield(void); }
7981.113Sskrll351	STD		{ int|netbsd32||_sched_protect(int priority); }
7991.26Scube352	UNIMPL
8001.26Scube353	UNIMPL
8011.77Spooka354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
8021.99Snjoly			    netbsd32_off_t start, netbsd32_off_t length); }
8031.77Spooka355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
8041.75Schristos			    int count); }
8051.77Spooka356	STD		{ int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
8061.26Scube			    netbsd32_size_t bufsize, int flags); }
8071.77Spooka357	STD		{ int|netbsd32||statvfs1(netbsd32_charp path, \
8081.26Scube			    netbsd32_statvfsp_t buf, int flags); }
8091.77Spooka358	STD		{ int|netbsd32||fstatvfs1(int fd, \
8101.75Schristos			    netbsd32_statvfsp_t buf, int flags); }
8111.125Spgoyette359	COMPAT_30 MODULAR compat_netbsd32_30	\
8121.125Spgoyette			{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
8131.26Scube			    netbsd32_statvfsp_t buf, int flags); }
8141.77Spooka360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
8151.75Schristos			    int cmd, netbsd32_charp filename, \
8161.75Schristos			    int attrnamespace, netbsd32_charp attrname); }
8171.77Spooka361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
8181.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8191.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8201.77Spooka362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
8211.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8221.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8231.77Spooka363	STD		{ int|netbsd32||extattr_delete_file( \
8241.75Schristos			    netbsd32_charp path, int attrnamespace, \
8251.75Schristos			    netbsd32_charp attrname); }
8261.77Spooka364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
8271.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8281.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8291.77Spooka365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
8301.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8311.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8321.77Spooka366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
8331.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
8341.77Spooka367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
8351.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8361.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8371.77Spooka368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
8381.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8391.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8401.77Spooka369	STD		{ int|netbsd32||extattr_delete_link( \
8411.75Schristos			    netbsd32_charp path, int attrnamespace, \
8421.75Schristos			    netbsd32_charp attrname); }
8431.77Spooka370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
8441.29Scube			    int attrnamespace, netbsd32_voidp data, \
8451.29Scube			    netbsd32_size_t nbytes); }
8461.77Spooka371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
8471.29Scube			    int attrnamespace, netbsd32_voidp data, \
8481.29Scube			    netbsd32_size_t nbytes); }
8491.77Spooka372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
8501.29Scube			    int attrnamespace, netbsd32_voidp data, \
8511.29Scube			    netbsd32_size_t nbytes); }
8521.125Spgoyette373	COMPAT_50 MODULAR compat_netbsd32_50	\
8531.125Spgoyette			{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
8541.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
8551.75Schristos			    netbsd32_timespec50p_t ts, \
8561.75Schristos			    netbsd32_sigsetp_t mask); }
8571.125Spgoyette374	COMPAT_50 MODULAR compat_netbsd32_50	\
8581.125Spgoyette			{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
8591.75Schristos			    u_int nfds, netbsd32_timespec50p_t ts, \
8601.75Schristos			    netbsd32_sigsetp_t mask); }
8611.77Spooka375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
8621.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8631.35Scube			    netbsd32_size_t size, int flags); }
8641.77Spooka376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
8651.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8661.35Scube			    netbsd32_size_t size, int flags); }
8671.77Spooka377	STD		{ int|netbsd32||fsetxattr(int fd, \
8681.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8691.35Scube			    netbsd32_size_t size, int flags); }
8701.77Spooka378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
8711.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8721.35Scube			    netbsd32_size_t size); }
8731.77Spooka379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
8741.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8751.35Scube			    netbsd32_size_t size); }
8761.77Spooka380	STD		{ int|netbsd32||fgetxattr(int fd, \
8771.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8781.35Scube			    netbsd32_size_t size); }
8791.77Spooka381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
8801.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8811.77Spooka382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
8821.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8831.77Spooka383	STD		{ int|netbsd32||flistxattr(int fd, \
8841.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8851.77Spooka384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
8861.64Sdsl			    netbsd32_charp name); }
8871.77Spooka385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
8881.64Sdsl			    netbsd32_charp name); }
8891.77Spooka386	STD		{ int|netbsd32||fremovexattr(int fd, \
8901.64Sdsl			    netbsd32_charp name); }
8911.125Spgoyette387     COMPAT_50 MODULAR compat_netbsd32_50	\
8921.125Spgoyette			{ int|netbsd32|30|stat(netbsd32_charp path, \
8931.75Schristos			    netbsd32_stat50p_t ub); }
8941.125Spgoyette388     COMPAT_50 MODULAR compat_netbsd32_50	\
8951.125Spgoyette			{ int|netbsd32|30|fstat(int fd, \
8961.75Schristos			    netbsd32_stat50p_t sb); }
8971.125Spgoyette389     COMPAT_50 MODULAR compat_netbsd32_50	\
8981.125Spgoyette			{ int|netbsd32|30|lstat( \
8991.75Schristos			    netbsd32_charp path, netbsd32_stat50p_t ub); }
9001.77Spooka390     STD             { int|netbsd32|30|getdents(int fd, \
9011.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
9021.68Smartin391	IGNORED		old posix fadvise
9031.125Spgoyette392	COMPAT_30 MODULAR compat_netbsd32_30	\
9041.125Spgoyette			{ int|netbsd32|30|fhstat( \
9051.64Sdsl			    netbsd32_fhandlep_t fhp, \
9061.75Schristos			    netbsd32_stat50p_t sb); }
9071.125Spgoyette393	COMPAT_50 MODULAR compat_netbsd32_50	\
9081.125Spgoyette			{ int|netbsd32||ntp_gettime( \
9091.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
9101.77Spooka394	STD		{ int|netbsd32|30|socket(int domain, int type, \
9111.75Schristos			    int protocol); }
9121.77Spooka395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
9131.75Schristos			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
9141.77Spooka396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
9151.51Smartin			    netbsd32_size_t fh_size, int flags); }
9161.77Spooka397	STD		{ int|netbsd32|40|fhstatvfs1(	\
9171.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9181.51Smartin			    netbsd32_statvfsp_t buf, int flags); }
9191.125Spgoyette398	COMPAT_50 MODULAR compat_netbsd32_50	\
9201.125Spgoyette			{ int|netbsd32|40|fhstat(	\
9211.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9221.75Schristos			    netbsd32_stat50p_t sb); }
9231.65Sdsl
9241.65Sdsl; Asynchronous I/O system calls
9251.76Spooka399	UNIMPL		sys_aio_cancel
9261.76Spooka400	UNIMPL		sys_aio_error
9271.76Spooka401	UNIMPL		sys_aio_fsync
9281.76Spooka402	UNIMPL		sys_aio_read
9291.76Spooka403	UNIMPL		sys_aio_return
9301.76Spooka404	UNIMPL		sys_aio_suspend
9311.76Spooka405     UNIMPL		sys_aio_write
9321.76Spooka406	UNIMPL		sys_lio_listio
9331.65Sdsl
9341.65Sdsl407	UNIMPL
9351.65Sdsl408	UNIMPL
9361.65Sdsl409	UNIMPL
9371.65Sdsl
9381.81Smatt410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
9391.81Smatt			    netbsd32_charp path, int flags, \
9401.81Smatt			    netbsd32_voidp data, netbsd32_size_t data_len); }
9411.77Spooka411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
9421.65Sdsl			    netbsd32_voidp old_address, \
9431.65Sdsl			    netbsd32_size_t old_size, \
9441.65Sdsl			    netbsd32_voidp new_address, \
9451.65Sdsl			    netbsd32_size_t new_size, int flags); }
9461.67Smartin
9471.107Smartin412	STD		{ int|netbsd32||pset_create(netbsd32_psetidp_t psid); }
9481.107Smartin413	STD		{ int|netbsd32||pset_destroy(psetid_t psid); }
9491.107Smartin414	STD		{ int|netbsd32||pset_assign(psetid_t psid, \
9501.107Smartin			  cpuid_t cpuid, netbsd32_psetidp_t opsid); }
9511.107Smartin415	STD		{ int|netbsd32||_pset_bind(idtype_t idtype, \
9521.107Smartin			  id_t first_id, id_t second_id, psetid_t psid, \
9531.107Smartin			  netbsd32_psetidp_t opsid); }
9541.67Smartin
9551.80Spooka416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
9561.99Snjoly			    netbsd32_off_t offset, netbsd32_off_t len, int advice); }
9571.77Spooka417	STD 		{ int|netbsd32|50|select(int nd, \
9581.75Schristos			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
9591.75Schristos			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
9601.77Spooka418	STD 		{ int|netbsd32|50|gettimeofday( \
9611.75Schristos			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
9621.77Spooka419	STD 		{ int|netbsd32|50|settimeofday( \
9631.75Schristos			    const netbsd32_timevalp_t tv, \
9641.75Schristos			    const netbsd32_voidp tzp); }
9651.77Spooka420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
9661.75Schristos			    const netbsd32_timevalp_t tptr); }
9671.77Spooka421	STD		{ int|netbsd32|50|adjtime( \
9681.75Schristos			    const netbsd32_timevalp_t delta, \
9691.75Schristos			    netbsd32_timevalp_t olddelta); }
9701.75Schristos422	EXCL		__lfs_segwait50
9711.77Spooka423	STD 		{ int|netbsd32|50|futimes(int fd, \
9721.75Schristos			    const netbsd32_timevalp_t tptr); }
9731.77Spooka424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
9741.75Schristos			    const netbsd32_timevalp_t tptr); }
9751.77Spooka425	STD		{ int|netbsd32|50|setitimer(int which, \
9761.75Schristos			    const netbsd32_itimervalp_t itv, \
9771.75Schristos			    netbsd32_itimervalp_t oitv); }
9781.77Spooka426	STD		{ int|netbsd32|50|getitimer(int which, \
9791.75Schristos			    netbsd32_itimervalp_t itv); }
9801.77Spooka427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
9811.75Schristos			    netbsd32_timespecp_t tp); }
9821.77Spooka428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
9831.75Schristos			    const netbsd32_timespecp_t tp); }
9841.77Spooka429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
9851.75Schristos			    netbsd32_timespecp_t tp); }
9861.77Spooka430	STD 		{ int|netbsd32|50|nanosleep( \
9871.75Schristos			    const netbsd32_timespecp_t rqtp, \
9881.75Schristos			    netbsd32_timespecp_t rmtp); }
9891.77Spooka431	STD 		{ int|netbsd32|50|__sigtimedwait( \
9901.75Schristos			    const netbsd32_sigsetp_t set, \
9911.75Schristos			    netbsd32_siginfop_t info, \
9921.75Schristos			    netbsd32_timespecp_t timeout); }
9931.111Spgoyette432	STD MODULAR compat_netbsd32_mqueue	\
9941.111Spgoyette			{ int|netbsd32|50|mq_timedsend(mqd_t mqdes, \
9951.105Smartin			    const netbsd32_charp msg_ptr, \
9961.105Smartin			    netbsd32_size_t msg_len, \
9971.105Smartin			    unsigned msg_prio, \
9981.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
9991.111Spgoyette433	STD MODULAR compat_netbsd32_mqueue	\
10001.111Spgoyette			{ netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \
10011.105Smartin			    mqd_t mqdes, netbsd32_charp msg_ptr, \
10021.105Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \
10031.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
10041.125Spgoyette434	COMPAT_60 MODULAR compat_netbsd32_60	\
10051.125Spgoyette		 	{ int|netbsd32||_lwp_park( \
10061.75Schristos			    const netbsd32_timespecp_t ts, \
10071.75Schristos			    lwpid_t unpark, const netbsd32_voidp hint, \
10081.75Schristos			    const netbsd32_voidp unparkhint); }
10091.77Spooka435	STD 		{ int|netbsd32|50|kevent(int fd, \
10101.75Schristos			    const netbsd32_keventp_t changelist, \
10111.75Schristos			    netbsd32_size_t nchanges, \
10121.75Schristos			    netbsd32_keventp_t eventlist, \
10131.75Schristos			    netbsd32_size_t nevents, \
10141.75Schristos			    const netbsd32_timespecp_t timeout); }
10151.77Spooka436	STD 		{ int|netbsd32|50|pselect(int nd, \
10161.75Schristos			    netbsd32_fd_setp_t in, \
10171.75Schristos			    netbsd32_fd_setp_t ou, \
10181.75Schristos			    netbsd32_fd_setp_t ex, \
10191.75Schristos			    const netbsd32_timespecp_t ts, \
10201.75Schristos			    const netbsd32_sigsetp_t mask); }
10211.77Spooka437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
10221.75Schristos			    u_int nfds, const netbsd32_timespecp_t ts, \
10231.75Schristos			    const netbsd32_sigsetp_t mask); }
10241.76Spooka438	UNIMPL 		netbsd32___aio_suspend50
10251.77Spooka439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
10261.75Schristos			    netbsd32_statp_t ub); }
10271.77Spooka440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
10281.77Spooka441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
10291.75Schristos			    netbsd32_statp_t ub); }
10301.112Spgoyette442	STD MODULAR compat_netbsd32_sysvipc	\
10311.112Spgoyette	 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
10321.75Schristos			    int cmd, ... netbsd32_semunp_t arg); }
10331.112Spgoyette443	STD MODULAR compat_netbsd32_sysvipc	\
10341.112Spgoyette	 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
10351.75Schristos			    netbsd32_shmid_dsp_t buf); }
10361.112Spgoyette444	STD MODULAR compat_netbsd32_sysvipc	\
10371.112Spgoyette	 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
10381.75Schristos			    netbsd32_msqid_dsp_t buf); }
10391.77Spooka445	STD 		{ int|netbsd32|50|getrusage(int who, \
10401.75Schristos			    netbsd32_rusagep_t rusage); }
10411.77Spooka446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
10421.75Schristos			    int flags, const netbsd32_itimerspecp_t value, \
10431.75Schristos			    netbsd32_itimerspecp_t ovalue); }
10441.77Spooka447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
10451.75Schristos			    netbsd32_itimerspecp_t value); }
10461.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
10471.77Spooka448	STD		{ int|netbsd32|50|ntp_gettime( \
10481.75Schristos			    netbsd32_ntptimevalp_t ntvp); }
10491.75Schristos#else
10501.75Schristos448	EXCL		___ntp_gettime50
10511.75Schristos#endif
10521.77Spooka449	STD 		{ int|netbsd32|50|wait4(int pid, \
10531.75Schristos			    netbsd32_intp status, \
10541.75Schristos			    int options, netbsd32_rusagep_t rusage); }
10551.77Spooka450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
10561.79Snjoly			    mode_t mode, netbsd32_dev_t dev); }
10571.77Spooka451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
10581.75Schristos			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
10591.90Sdholland452	OBSOL		5.99 quotactl
10601.86Snjoly453	STD		{ int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
10611.87Snjoly454	STD		{ int|netbsd32||dup3(int from, int to, int flags); }
10621.88Snjoly455	STD		{ int|netbsd32||kqueue1(int flags); }
10631.89Smatt456	STD  		{ int|netbsd32||paccept(int s, \
10641.89Smatt			    netbsd32_sockaddrp_t name, \
10651.89Smatt			    netbsd32_socklenp_t anamelen, \
10661.89Smatt			    const netbsd32_sigsetp_t mask, \
10671.89Smatt			    int flags); }
10681.89Smatt457	STD  		{ int|netbsd32||linkat(int fd1, \
10691.89Smatt			    const netbsd32_charp name1, \
10701.89Smatt			    int fd2, \
10711.89Smatt			    const netbsd32_charp name2, \
10721.89Smatt			    int flags); }
10731.89Smatt458	STD  		{ int|netbsd32||renameat(int fromfd, \
10741.89Smatt			    const netbsd32_charp from, \
10751.89Smatt			    int tofd, \
10761.89Smatt			    const netbsd32_charp to); }
10771.89Smatt459	STD  		{ int|netbsd32||mkfifoat(int fd, \
10781.89Smatt			    const netbsd32_charp path, \
10791.89Smatt			    mode_t mode); }
10801.89Smatt460	STD  		{ int|netbsd32||mknodat(int fd, \
10811.89Smatt			    const netbsd32_charp path, \
10821.98Snjoly			    mode_t mode, int PAD, \
10831.98Snjoly			    netbsd32_dev_t dev); }
10841.89Smatt461	STD  		{ int|netbsd32||mkdirat(int fd, \
10851.89Smatt			    const netbsd32_charp path, \
10861.89Smatt			    mode_t mode); }
10871.89Smatt462	STD  		{ int|netbsd32||faccessat(int fd, \
10881.89Smatt			    const netbsd32_charp path, \
10891.89Smatt			    int amode, \
10901.89Smatt			    int flag); }
10911.89Smatt463	STD  		{ int|netbsd32||fchmodat(int fd, \
10921.89Smatt			    const netbsd32_charp path, \
10931.89Smatt			    mode_t mode, \
10941.89Smatt			    int flag); }
10951.89Smatt464	STD  		{ int|netbsd32||fchownat(int fd, \
10961.89Smatt			    const netbsd32_charp path, \
10971.89Smatt			    uid_t owner, \
10981.89Smatt			    gid_t group, \
10991.89Smatt			    int flag); }
11001.89Smatt465	STD  		{ int|netbsd32||fexecve(int fd, \
11011.89Smatt			    netbsd32_charpp argp, \
11021.89Smatt			    netbsd32_charpp envp); }
11031.89Smatt466	STD  		{ int|netbsd32||fstatat(int fd, \
11041.89Smatt			    const netbsd32_charp path, \
11051.89Smatt			    netbsd32_statp_t buf, \
11061.89Smatt			    int flag); }
11071.89Smatt467	STD  		{ int|netbsd32||utimensat(int fd, \
11081.89Smatt			    const netbsd32_charp path, \
11091.89Smatt			    const netbsd32_timespecp_t tptr, \
11101.89Smatt			    int flag); }
11111.89Smatt468	STD  		{ int|netbsd32||openat(int fd, \
11121.89Smatt			    const netbsd32_charp path, \
11131.89Smatt			    int oflags, ... \
11141.89Smatt			    mode_t mode); }
11151.102Schristos469	STD  		{ netbsd32_ssize_t|netbsd32||readlinkat(int fd, \
11161.89Smatt			    const netbsd32_charp path, \
11171.89Smatt			    netbsd32_charp buf, \
11181.89Smatt			    size_t bufsize); }
11191.89Smatt470	STD  		{ int|netbsd32||symlinkat(const netbsd32_charp path1, \
11201.89Smatt			    int fd, \
11211.89Smatt			    const netbsd32_charp path2); }
11221.89Smatt471	STD  		{ int|netbsd32||unlinkat(int fd, \
11231.89Smatt			    const netbsd32_charp path, \
11241.89Smatt			    int flag); }
11251.89Smatt472	STD  		{ int|netbsd32||futimens(int fd, \
11261.89Smatt			    const netbsd32_timespecp_t tptr); }
11271.91Sdholland473	STD		{ int|netbsd32||__quotactl(const netbsd32_charp path, \
11281.91Sdholland			    netbsd32_voidp args); }
11291.95Smartin474	NOERR		{ int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \
11301.121Schristos			    const netbsd32_charp path, \
11311.121Schristos			    const netbsd32_posix_spawn_file_actionsp \
11321.121Schristos				file_actions, \
11331.121Schristos			    const netbsd32_posix_spawnattrp attrp, \
11341.121Schristos			    netbsd32_charpp argv, netbsd32_charpp envp); }
11351.95Smartin
11361.121Schristos475	STD		{ int|netbsd32||recvmmsg(int s, \
11371.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11381.96Schristos			    unsigned int vlen, unsigned int flags, \
11391.96Schristos			    netbsd32_timespecp_t timeout); }
11401.121Schristos476	STD		{ int|netbsd32||sendmmsg(int s, \
11411.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11421.96Schristos			    unsigned int vlen, unsigned int flags); }
11431.96Schristos477	STD 		{ int|netbsd32||clock_nanosleep(\
11441.96Schristos			    netbsd32_clockid_t clock_id, \
11451.96Schristos			    int flags, const netbsd32_timespecp_t rqtp, \
11461.96Schristos			    netbsd32_timespecp_t rmtp); }
11471.97Schristos478	STD 		{ int|netbsd32|60|_lwp_park(\
11481.97Schristos			    netbsd32_clockid_t clock_id, \
11491.116Skamil			    int flags, netbsd32_timespecp_t ts, \
11501.97Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
11511.97Schristos			    netbsd32_voidp unparkhint); }
11521.103Smartin479	NOERR		{ int|netbsd32||posix_fallocate(int fd, int PAD, \
11531.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11541.103Smartin480	STD		{ int|netbsd32||fdiscard(int fd, int PAD, \
11551.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11561.114Sskrll481	STD 		{ int|netbsd32||wait6(idtype_t idtype, id_t id, \
11571.114Sskrll			    netbsd32_intp status, int options, \
11581.114Sskrll			    netbsd32_wrusagep_t wru, netbsd32_siginfop_t info); }
11591.114Sskrll482	STD		{ int|netbsd32||clock_getcpuclockid2(idtype_t idtype, \
11601.114Sskrll			    id_t id, netbsd32_clockidp_t clock_id); }
1161