syscalls.master revision 1.130
11.129Srin	$NetBSD: syscalls.master,v 1.130 2019/11/04 11:32:22 rin 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.77Spooka20	NOARGS 		{ pid_t|sys||getpid(void); }
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.77Spooka24	NOARGS 		{ uid_t|sys||getuid(void); }
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.77Spooka47	NOARGS 		{ gid_t|sys||getgid(void); }
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.125Spgoyette64	COMPAT_43 MODULAR compat_netbsd32_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.125Spgoyette84	COMPAT_43 MODULAR compat_netbsd32_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.125Spgoyette89	COMPAT_43 MODULAR compat_netbsd32_43	\
2361.125Spgoyette			{ int|sys||getdtablesize(void); } ogetdtablesize
2371.77Spooka90	STD		{ int|netbsd32||dup2(int from, int to); }
2381.1Smrg91	UNIMPL		getdopt
2391.77Spooka92	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
2401.75Schristos			    ... netbsd32_voidp arg); }
2411.125Spgoyette93	COMPAT_50 MODULAR compat_netbsd32_50	\
2421.125Spgoyette			{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
2431.75Schristos			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
2441.75Schristos			    netbsd32_timeval50p_t tv); }
2451.1Smrg94	UNIMPL		setdopt
2461.77Spooka95	STD		{ int|netbsd32||fsync(int fd); }
2471.77Spooka96	STD		{ int|netbsd32||setpriority(int which, int who, \
2481.75Schristos			    int prio); }
2491.125Spgoyette97	COMPAT_30 MODULAR compat_netbsd32_30	\
2501.125Spgoyette			{ int|netbsd32||socket(int domain, int type, \
2511.75Schristos			    int protocol); }
2521.77Spooka98	STD		{ int|netbsd32||connect(int s, \
2531.75Schristos			    netbsd32_sockaddrp_t name, int namelen); }
2541.125Spgoyette99	COMPAT_43 MODULAR compat_netbsd32_43	\
2551.125Spgoyette			{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
2561.75Schristos			    netbsd32_intp anamelen); }
2571.77Spooka100	STD		{ int|netbsd32||getpriority(int which, int who); }
2581.125Spgoyette101	COMPAT_43 MODULAR compat_netbsd32_43	\
2591.125Spgoyette			{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
2601.75Schristos			    int len, int flags); }
2611.125Spgoyette102	COMPAT_43 MODULAR compat_netbsd32_43	\
2621.125Spgoyette			{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
2631.75Schristos			    int len, int flags); }
2641.125Spgoyette103	COMPAT_13 MODULAR compat_netbsd32_13	\
2651.125Spgoyette			{ int|netbsd32||sigreturn( \
2661.75Schristos			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
2671.77Spooka104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
2681.75Schristos			    int namelen); }
2691.77Spooka105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
2701.75Schristos			    netbsd32_voidp val, int valsize); }
2711.77Spooka106	STD		{ int|netbsd32||listen(int s, int backlog); }
2721.1Smrg107	OBSOL		vtimes
2731.125Spgoyette108	COMPAT_43 MODULAR compat_netbsd32_43	\
2741.125Spgoyette			{ int|netbsd32||osigvec(int signum, \
2751.75Schristos			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
2761.125Spgoyette109	COMPAT_43 MODULAR compat_netbsd32_43	\
2771.125Spgoyette			{ int|netbsd32||sigblock(int mask); }
2781.125Spgoyette110	COMPAT_43 MODULAR compat_netbsd32_43	\
2791.125Spgoyette			{ int|netbsd32||sigsetmask(int mask); }
2801.125Spgoyette111	COMPAT_13 MODULAR compat_netbsd32_13	\
2811.125Spgoyette			{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
2821.125Spgoyette112	COMPAT_43 MODULAR compat_netbsd32_43	\
2831.125Spgoyette			{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
2841.75Schristos			    netbsd32_sigstackp_t oss); }
2851.125Spgoyette113	COMPAT_43 MODULAR compat_netbsd32_43	\
2861.125Spgoyette			{ int|netbsd32||orecvmsg(int s, \
2871.75Schristos			    netbsd32_omsghdrp_t msg, int flags); }
2881.125Spgoyette114	COMPAT_43 MODULAR compat_netbsd32_43	\
2891.125Spgoyette			{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
2901.75Schristos			    int flags); }
2911.1Smrg115	OBSOL		vtrace
2921.125Spgoyette116	COMPAT_50 MODULAR compat_netbsd32_50	\
2931.125Spgoyette			{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
2941.75Schristos			    netbsd32_timezonep_t tzp); }
2951.125Spgoyette117	COMPAT_50 MODULAR compat_netbsd32_50	\
2961.125Spgoyette			{ int|netbsd32||getrusage(int who, \
2971.75Schristos			    netbsd32_rusage50p_t rusage); }
2981.77Spooka118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
2991.75Schristos			    netbsd32_voidp val, netbsd32_intp avalsize); }
3001.1Smrg119	OBSOL		resuba
3011.77Spooka120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
3021.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3031.77Spooka121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
3041.75Schristos			    netbsd32_iovecp_t iovp, int iovcnt); }
3051.125Spgoyette122	COMPAT_50 MODULAR compat_netbsd32_50	\
3061.125Spgoyette			{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
3071.75Schristos			    netbsd32_timezonep_t tzp); }
3081.77Spooka123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
3091.77Spooka124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
3101.125Spgoyette125	COMPAT_43 MODULAR compat_netbsd32_43	\
3111.125Spgoyette			{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
3121.75Schristos			    netbsd32_size_t len, int flags, \
3131.75Schristos			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
3141.77Spooka126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
3151.77Spooka127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
3161.77Spooka128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
3171.75Schristos			    netbsd32_charp to); }
3181.125Spgoyette129	COMPAT_43 MODULAR compat_netbsd32_43	\
3191.125Spgoyette			{ int|netbsd32||otruncate(netbsd32_charp path, \
3201.75Schristos			    netbsd32_long length); }
3211.125Spgoyette130	COMPAT_43 MODULAR compat_netbsd32_43	\
3221.125Spgoyette			{ int|netbsd32||oftruncate(int fd, \
3231.75Schristos			    netbsd32_long length); }
3241.77Spooka131	STD		{ int|netbsd32||flock(int fd, int how); }
3251.77Spooka132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
3261.75Schristos			    mode_t mode); }
3271.77Spooka133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
3281.75Schristos			    netbsd32_voidp buf, netbsd32_size_t len, \
3291.75Schristos			    int flags, netbsd32_sockaddrp_t to, int tolen); }
3301.77Spooka134	STD		{ int|netbsd32||shutdown(int s, int how); }
3311.77Spooka135	STD		{ int|netbsd32||socketpair(int domain, int type, \
3321.75Schristos			    int protocol, netbsd32_intp rsv); }
3331.77Spooka136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
3341.75Schristos			    mode_t mode); }
3351.77Spooka137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
3361.125Spgoyette138	COMPAT_50 MODULAR compat_netbsd32_50	\
3371.125Spgoyette			{ int|netbsd32||utimes(netbsd32_charp path, \
3381.75Schristos			    netbsd32_timeval50p_t tptr); }
3391.1Smrg139	OBSOL		4.2 sigreturn
3401.125Spgoyette140	COMPAT_50 MODULAR compat_netbsd32_50	\
3411.125Spgoyette			{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
3421.75Schristos			    netbsd32_timeval50p_t olddelta); }
3431.125Spgoyette141	COMPAT_43 MODULAR compat_netbsd32_43	\
3441.125Spgoyette			{ int|netbsd32||ogetpeername(int fdes, \
3451.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3461.125Spgoyette142	COMPAT_43 MODULAR compat_netbsd32_43	\
3471.125Spgoyette			{ int32_t|sys||gethostid(void); } ogethostid
3481.125Spgoyette143	COMPAT_43 MODULAR compat_netbsd32_43	\
3491.125Spgoyette			{ int|netbsd32||sethostid(int32_t hostid); }
3501.125Spgoyette144	COMPAT_43 MODULAR compat_netbsd32_43	\
3511.125Spgoyette			{ int|netbsd32||ogetrlimit(int which, \
3521.75Schristos			    netbsd32_orlimitp_t rlp); }
3531.125Spgoyette145	COMPAT_43 MODULAR compat_netbsd32_43	\
3541.125Spgoyette			{ int|netbsd32||osetrlimit(int which, \
3551.75Schristos			    netbsd32_orlimitp_t rlp); }
3561.125Spgoyette146	COMPAT_43 MODULAR compat_netbsd32_43	\
3571.125Spgoyette			{ int|netbsd32||killpg(int pgid, int signum); }
3581.77Spooka147	NOARGS		{ int|sys||setsid(void); }
3591.126Schristos#if defined(QUOTA) || !defined(_KERNEL_OPT)
3601.125Spgoyette148	COMPAT_50 MODULAR compat_netbsd32_50	\
3611.125Spgoyette			{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
3621.75Schristos			    int uid, netbsd32_voidp arg); }
3631.125Spgoyette149	COMPAT_43 MODULAR compat_netbsd32_43	\
3641.125Spgoyette			{ int|sys||quota(void); } oquota
3651.126Schristos#else
3661.126Schristos148	EXCL 		compat_netbsd32_quotactl
3671.126Schristos149	EXCL 		compat_netbsd32_quota
3681.126Schristos#endif
3691.125Spgoyette150	COMPAT_43 MODULAR compat_netbsd32_43	\
3701.125Spgoyette			{ int|netbsd32||ogetsockname(int fdec, \
3711.75Schristos			    netbsd32_voidp asa, netbsd32_intp alen); }
3721.1Smrg
3731.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
3741.1Smrg; system calls.  (This includes various calls added for compatibity
3751.1Smrg; with other Unix variants.)
3761.1Smrg; Some of these calls are now supported by BSD...
3771.1Smrg151	UNIMPL
3781.1Smrg152	UNIMPL
3791.1Smrg153	UNIMPL
3801.1Smrg154	UNIMPL
3811.110Spgoyette155	STD MODULAR compat_netbsd32_nfssrv	\
3821.110Spgoyette			{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
3831.125Spgoyette156	COMPAT_43 MODULAR compat_netbsd32_43	\
3841.125Spgoyette			{ int|netbsd32||ogetdirentries(int fd, \
3851.75Schristos			    netbsd32_charp buf, u_int count, \
3861.75Schristos			    netbsd32_longp basep); }
3871.125Spgoyette157	COMPAT_20 MODULAR compat_netbsd32_20	\
3881.125Spgoyette			{ int|netbsd32||statfs(netbsd32_charp path, \
3891.75Schristos			    netbsd32_statfsp_t buf); }
3901.125Spgoyette158	COMPAT_20 MODULAR compat_netbsd32_20	\
3911.125Spgoyette			{ int|netbsd32||fstatfs(int fd, \
3921.75Schristos			    netbsd32_statfsp_t buf); }
3931.1Smrg159	UNIMPL
3941.1Smrg160	UNIMPL
3951.125Spgoyette161	COMPAT_30 MODULAR compat_netbsd32_30	\
3961.125Spgoyette			{ int|netbsd32||getfh(netbsd32_charp fname, \
3971.75Schristos			    netbsd32_compat_30_fhandlep_t fhp); }
3981.125Spgoyette162	COMPAT_09 MODULAR compat_netbsd32_09	\
3991.125Spgoyette			{ int|netbsd32||ogetdomainname( \
4001.75Schristos			    netbsd32_charp domainname, int len); }
4011.125Spgoyette163	COMPAT_09 MODULAR compat_netbsd32_09	\
4021.125Spgoyette			{ int|netbsd32||osetdomainname( \
4031.75Schristos			    netbsd32_charp domainname, int len); }
4041.125Spgoyette164	COMPAT_09 MODULAR compat_netbsd32_09	\
4051.125Spgoyette			{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
4061.77Spooka165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
4071.1Smrg166	UNIMPL
4081.1Smrg167	UNIMPL
4091.1Smrg168	UNIMPL
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.1Smrg177	UNIMPL
4351.1Smrg178	UNIMPL
4361.1Smrg179	UNIMPL
4371.1Smrg180	UNIMPL
4381.1Smrg
4391.1Smrg; Syscalls 180-199 are used by/reserved for BSD
4401.77Spooka181	STD		{ int|netbsd32||setgid(gid_t gid); }
4411.77Spooka182	STD		{ int|netbsd32||setegid(gid_t egid); }
4421.77Spooka183	STD		{ int|netbsd32||seteuid(uid_t euid); }
4431.75Schristos184	EXCL		netbsd32_lfs_bmapv
4441.75Schristos185	EXCL		netbsd32_lfs_markv
4451.75Schristos186	EXCL		netbsd32_lfs_segclean
4461.75Schristos187	EXCL		netbsd32_lfs_segwait
4471.125Spgoyette188	COMPAT_12 MODULAR compat_netbsd32_12	\
4481.125Spgoyette			{ int|netbsd32||stat12(netbsd32_charp path, \
4491.75Schristos			    netbsd32_stat12p_t ub); }
4501.125Spgoyette189	COMPAT_12 MODULAR compat_netbsd32_12	\
4511.125Spgoyette			{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
4521.125Spgoyette190	COMPAT_12 MODULAR compat_netbsd32_12	\
4531.125Spgoyette			{ int|netbsd32||lstat12(netbsd32_charp path, \
4541.75Schristos			    netbsd32_stat12p_t ub); }
4551.77Spooka191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
4561.75Schristos			    int name); }
4571.77Spooka192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
4581.123Srjs193	STD		{ int|netbsd32||getsockopt2(int s, int level, int name, \
4591.123Srjs			    netbsd32_voidp val, netbsd32_intp avalsize); }
4601.77Spooka194	STD		{ int|netbsd32||getrlimit(int which, \
4611.75Schristos			    netbsd32_rlimitp_t rlp); }
4621.77Spooka195	STD		{ int|netbsd32||setrlimit(int which, \
4631.75Schristos			    netbsd32_rlimitp_t rlp); }
4641.125Spgoyette196	COMPAT_12 MODULAR compat_netbsd32_12	\
4651.125Spgoyette			{ int|netbsd32||getdirentries(int fd, \
4661.75Schristos			    netbsd32_charp buf, u_int count, \
4671.75Schristos			    netbsd32_longp basep); }
4681.77Spooka197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
4691.75Schristos			    netbsd32_size_t len, int prot, int flags, int fd, \
4701.99Snjoly			    netbsd32_long PAD, netbsd32_off_t pos); }
4711.77Spooka198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
4721.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
4731.99Snjoly199	STD		{ netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \
4741.99Snjoly			    netbsd32_off_t offset, int whence); }
4751.80Spooka200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
4761.99Snjoly			    netbsd32_off_t length); }
4771.80Spooka201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
4781.99Snjoly			    netbsd32_off_t length); }
4791.77Spooka202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
4801.101Sjoerg			    u_int namelen, netbsd32_voidp oldv, \
4811.101Sjoerg			    netbsd32_size_tp oldlenp, netbsd32_voidp newv, \
4821.75Schristos			    netbsd32_size_t newlen); }
4831.77Spooka203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
4841.75Schristos			    netbsd32_size_t len); }
4851.77Spooka204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
4861.75Schristos			    netbsd32_size_t len); }
4871.77Spooka205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
4881.125Spgoyette206	COMPAT_50 MODULAR compat_netbsd32_50	\
4891.125Spgoyette			{ int|netbsd32||futimes(int fd, \
4901.75Schristos			    netbsd32_timeval50p_t tptr); }
4911.77Spooka207	STD		{ int|netbsd32||getpgid(pid_t pid); }
4921.77Spooka208	STD		{ int|netbsd32||reboot(int opt, \
4931.75Schristos			    netbsd32_charp bootstr); }
4941.77Spooka209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
4951.75Schristos			    u_int nfds, int timeout); }
4961.106Smartin210	UNIMPL		{ int|netbsd32||afssys(long id, long a1, long a2, \
4971.106Smartin			    long a3, long a4, long a5, long a6); }
4981.71Sad211	UNIMPL
4991.71Sad212	UNIMPL
5001.71Sad213	UNIMPL
5011.71Sad214	UNIMPL
5021.71Sad215	UNIMPL
5031.71Sad216	UNIMPL
5041.71Sad217	UNIMPL
5051.71Sad218	UNIMPL
5061.71Sad219	UNIMPL
5071.1Smrg; System calls 220-300 are reserved for use by NetBSD
5081.125Spgoyette220	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5091.112Spgoyette			{ int|netbsd32||__semctl(int semid, int semnum, \
5101.75Schristos			    int cmd, netbsd32_semunu_t arg); }
5111.112Spgoyette221	STD MODULAR compat_netbsd32_sysvipc	\
5121.112Spgoyette			{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
5131.75Schristos			    int semflg); }
5141.112Spgoyette222	STD MODULAR compat_netbsd32_sysvipc	\
5151.112Spgoyette			{ int|netbsd32||semop(int semid, \
5161.75Schristos			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
5171.112Spgoyette223	STD MODULAR compat_netbsd32_sysvipc	\
5181.112Spgoyette			{ int|netbsd32||semconfig(int flag); }
5191.125Spgoyette224	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5201.112Spgoyette			{ int|netbsd32||msgctl(int msqid, int cmd, \
5211.75Schristos			    netbsd32_msqid_ds14p_t buf); }
5221.112Spgoyette225	STD MODULAR compat_netbsd32_sysvipc	\
5231.112Spgoyette			{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
5241.112Spgoyette226	STD MODULAR compat_netbsd32_sysvipc	\
5251.112Spgoyette			{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
5261.75Schristos			    netbsd32_size_t msgsz, int msgflg); }
5271.112Spgoyette227	STD MODULAR compat_netbsd32_sysvipc	\
5281.112Spgoyette			{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
5291.75Schristos			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
5301.75Schristos			    netbsd32_long msgtyp, int msgflg); }
5311.112Spgoyette228	STD MODULAR compat_netbsd32_sysvipc	\
5321.112Spgoyette			{ netbsd32_voidp|netbsd32||shmat(int shmid, \
5331.75Schristos			    netbsd32_voidp shmaddr, int shmflg); }
5341.125Spgoyette229	COMPAT_14 MODULAR compat_netbsd32_sysvipc_14	\
5351.112Spgoyette			{ int|netbsd32||shmctl(int shmid, int cmd, \
5361.75Schristos			    netbsd32_shmid_dsp_t buf); }
5371.112Spgoyette230	STD MODULAR compat_netbsd32_sysvipc	\
5381.112Spgoyette			{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
5391.112Spgoyette231	STD MODULAR compat_netbsd32_sysvipc	\
5401.112Spgoyette			{ int|netbsd32||shmget(netbsd32_key_t key, \
5411.75Schristos			    netbsd32_size_t size, int shmflg); }
5421.125Spgoyette232	COMPAT_50 MODULAR compat_netbsd32_50	\
5431.125Spgoyette			{ int|netbsd32||clock_gettime( \
5441.75Schristos			    netbsd32_clockid_t clock_id, \
5451.75Schristos			    netbsd32_timespec50p_t tp); }
5461.125Spgoyette233	COMPAT_50 MODULAR compat_netbsd32_50	\
5471.125Spgoyette			{ int|netbsd32||clock_settime( \
5481.75Schristos			    netbsd32_clockid_t clock_id, \
5491.75Schristos			    netbsd32_timespec50p_t tp); }
5501.125Spgoyette234	COMPAT_50 MODULAR compat_netbsd32_50	\
5511.125Spgoyette			{ int|netbsd32||clock_getres( \
5521.75Schristos			    netbsd32_clockid_t clock_id, \
5531.75Schristos			    netbsd32_timespec50p_t tp); }
5541.77Spooka235	STD		{ int|netbsd32||timer_create( \
5551.75Schristos			    netbsd32_clockid_t clock_id, \
5561.75Schristos			    netbsd32_sigeventp_t evp, \
5571.36Scube			    netbsd32_timerp_t timerid); }
5581.77Spooka236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
5591.125Spgoyette237	COMPAT_50 MODULAR compat_netbsd32_50	\
5601.125Spgoyette			{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
5611.75Schristos			    int flags, \
5621.75Schristos			    netbsd32_itimerspec50p_t value, \
5631.75Schristos			    netbsd32_itimerspec50p_t ovalue); }
5641.125Spgoyette238	COMPAT_50 MODULAR compat_netbsd32_50	\
5651.125Spgoyette			{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
5661.75Schristos			    netbsd32_itimerspec50p_t value); }
5671.77Spooka239	STD		{ int|netbsd32||timer_getoverrun( \
5681.75Schristos			    netbsd32_timer_t timerid); }
5691.1Smrg;
5701.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
5711.1Smrg;
5721.125Spgoyette240	COMPAT_50 MODULAR compat_netbsd32_50	\
5731.125Spgoyette			{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
5741.75Schristos			    netbsd32_timespec50p_t rmtp); }
5751.77Spooka241	STD		{ int|netbsd32||fdatasync(int fd); }
5761.77Spooka242	STD		{ int|netbsd32||mlockall(int flags); }
5771.77Spooka243	NOARGS		{ int|sys||munlockall(void); }
5781.125Spgoyette244	COMPAT_50 MODULAR compat_netbsd32_50	\
5791.125Spgoyette			{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
5801.37Scube			    netbsd32_siginfop_t info, \
5811.75Schristos			    netbsd32_timespec50p_t timeout); }
5821.104Smartin245	STD		{ int|netbsd32||sigqueueinfo(pid_t pid, \
5831.104Smartin			    const netbsd32_siginfop_t info); }
5841.104Smartin246	STD		{ int|netbsd32||modctl(int cmd, netbsd32_voidp arg); }
5851.77Spooka247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
5861.75Schristos			    netbsd32_semidp_t idp); }
5871.77Spooka248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
5881.75Schristos			    int oflag, mode_t mode, unsigned int value, \
5891.75Schristos			    netbsd32_semidp_t idp); }
5901.77Spooka249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
5911.77Spooka250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
5921.77Spooka251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
5931.77Spooka252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
5941.77Spooka253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
5951.77Spooka254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
5961.42Scube			    netbsd32_intp value); }
5971.77Spooka255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
5981.93Sjoerg256	STD		{ int|netbsd32||_ksem_timedwait(intptr_t id, \
5991.93Sjoerg				const netbsd32_timespecp_t abstime); }
6001.111Spgoyette257	STD MODULAR compat_netbsd32_mqueue	\
6011.111Spgoyette			{ mqd_t|netbsd32||mq_open(const netbsd32_charp name, \
6021.104Smartin			    int oflag, mode_t mode, \
6031.104Smartin			    netbsd32_mq_attrp_t attr); }
6041.111Spgoyette258	STD MODULAR compat_netbsd32_mqueue	\
6051.111Spgoyette	 		{ int|netbsd32||mq_close(mqd_t mqdes); }
6061.111Spgoyette259	STD MODULAR compat_netbsd32_mqueue	\
6071.111Spgoyette	 		{ int|netbsd32||mq_unlink(const netbsd32_charp name); }
6081.111Spgoyette260	STD MODULAR compat_netbsd32_mqueue	\
6091.111Spgoyette			{ int|netbsd32||mq_getattr(mqd_t mqdes, \
6101.104Smartin			    netbsd32_mq_attrp_t mqstat); }
6111.111Spgoyette261	STD MODULAR compat_netbsd32_mqueue	\
6121.111Spgoyette	 		{ int|netbsd32||mq_setattr(mqd_t mqdes, \
6131.104Smartin			    const netbsd32_mq_attrp_t mqstat, \
6141.104Smartin			    netbsd32_mq_attrp_t omqstat); }
6151.111Spgoyette262	STD MODULAR compat_netbsd32_mqueue	\
6161.111Spgoyette			{ int|netbsd32||mq_notify(mqd_t mqdes, \
6171.104Smartin			    const netbsd32_sigeventp_t notification); }
6181.111Spgoyette263	STD MODULAR compat_netbsd32_mqueue	\
6191.111Spgoyette			{ int|netbsd32||mq_send(mqd_t mqdes, \
6201.104Smartin			    const netbsd32_charp msg_ptr, \
6211.104Smartin			    netbsd32_size_t msg_len, unsigned msg_prio); }
6221.111Spgoyette264	STD MODULAR compat_netbsd32_mqueue	\
6231.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \
6241.104Smartin			    netbsd32_charp msg_ptr, \
6251.104Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio); }
6261.111Spgoyette265	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6271.111Spgoyette			{ int|netbsd32||mq_timedsend(mqd_t mqdes, \
6281.104Smartin			    const netbsd32_charp msg_ptr, \
6291.104Smartin			    netbsd32_size_t msg_len, \
6301.104Smartin			    unsigned msg_prio, \
6311.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6321.111Spgoyette266	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
6331.111Spgoyette			{ netbsd32_ssize_t|netbsd32||mq_timedreceive( \
6341.104Smartin			    mqd_t mqdes, \
6351.104Smartin			    netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
6361.104Smartin			    netbsd32_uintp msg_prio, \
6371.104Smartin			    const netbsd32_timespec50p_t abs_timeout); }
6381.1Smrg267	UNIMPL
6391.1Smrg268	UNIMPL
6401.1Smrg269	UNIMPL
6411.77Spooka270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
6421.75Schristos			    netbsd32_charp to); }
6431.77Spooka271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
6441.75Schristos			    int misc); }
6451.125Spgoyette272	COMPAT_30 MODULAR compat_netbsd32_30	\
6461.125Spgoyette			{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
6471.75Schristos			    netbsd32_size_t count); }
6481.77Spooka273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
6491.75Schristos			    netbsd32_size_t len, int inherit); }
6501.77Spooka274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
6511.75Schristos			    mode_t mode); }
6521.77Spooka275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
6531.75Schristos			    gid_t gid); }
6541.125Spgoyette276	COMPAT_50 MODULAR compat_netbsd32_50	\
6551.125Spgoyette			{ int|netbsd32||lutimes(netbsd32_charp path, \
6561.75Schristos			    netbsd32_timeval50p_t tptr); }
6571.77Spooka277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
6581.75Schristos			    netbsd32_size_t len, int flags); }
6591.125Spgoyette278	COMPAT_30 MODULAR compat_netbsd32_30	\
6601.125Spgoyette			{ int|netbsd32|13|stat(netbsd32_charp path, \
6611.75Schristos			    netbsd32_stat13p_t ub); }
6621.125Spgoyette279	COMPAT_30 MODULAR compat_netbsd32_30	\
6631.125Spgoyette			{ int|netbsd32|13|fstat(int fd, \
6641.75Schristos			    netbsd32_stat13p_t sb); }
6651.125Spgoyette280	COMPAT_30 MODULAR compat_netbsd32_30	\
6661.125Spgoyette			{ int|netbsd32|13|lstat(netbsd32_charp path, \
6671.75Schristos			    netbsd32_stat13p_t ub); }
6681.77Spooka281	STD		{ int|netbsd32|14|sigaltstack(\
6691.75Schristos			    netbsd32_sigaltstackp_t nss, \
6701.75Schristos			    netbsd32_sigaltstackp_t oss); }
6711.77Spooka282	NOARGS		{ int|sys|14|vfork(void); }
6721.77Spooka283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
6731.75Schristos			    uid_t uid, gid_t gid); }
6741.77Spooka284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
6751.75Schristos			    gid_t gid); }
6761.77Spooka285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
6771.75Schristos			    uid_t uid, gid_t gid); }
6781.77Spooka286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
6791.77Spooka287	STD		{ int|netbsd32||__clone(int flags, \
6801.75Schristos			    netbsd32_voidp stack); }
6811.77Spooka288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
6821.75Schristos			    int pid); }
6831.77Spooka289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
6841.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6851.99Snjoly			    netbsd32_off_t offset); }
6861.77Spooka290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
6871.80Spooka			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
6881.99Snjoly			    netbsd32_off_t offset); }
6891.77Spooka291	STD		{ int|netbsd32|14|sigaction(int signum, \
6901.64Sdsl			    netbsd32_sigactionp_t nsa, \
6911.11Seeh			    netbsd32_sigactionp_t osa); }
6921.77Spooka292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
6931.77Spooka293	STD		{ int|netbsd32|14|sigprocmask(int how, \
6941.64Sdsl			    netbsd32_sigsetp_t set, \
6951.11Seeh			    netbsd32_sigsetp_t oset); }
6961.77Spooka294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
6971.125Spgoyette295	COMPAT_16 MODULAR compat_netbsd32_16	\
6981.125Spgoyette			{ int|netbsd32|14|sigreturn( \
6991.75Schristos			    netbsd32_sigcontextp_t sigcntxp); }
7001.77Spooka296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
7011.75Schristos			    netbsd32_size_t length); }
7021.77Spooka297	STD		{ int|netbsd32||fchroot(int fd); }
7031.125Spgoyette298	COMPAT_30 MODULAR compat_netbsd32_30	\
7041.125Spgoyette			{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
7051.11Seeh			   int flags); }
7061.125Spgoyette299	COMPAT_30 MODULAR compat_netbsd32_30	\
7071.125Spgoyette			{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
7081.45Scube			    netbsd32_stat13p_t sb); }
7091.125Spgoyette300	COMPAT_20 MODULAR compat_netbsd32_20	\
7101.125Spgoyette			{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
7111.75Schristos			    netbsd32_stat50p_t buf); }
7121.125Spgoyette301	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7131.112Spgoyette			{ int|netbsd32|14|semctl(int semid, int semnum, \
7141.75Schristos			    int cmd, ... netbsd32_semun50p_t arg); }
7151.125Spgoyette302	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7161.112Spgoyette			{ int|netbsd32|13|msgctl(int msqid, int cmd, \
7171.75Schristos			    netbsd32_msqid_ds50p_t buf); }
7181.125Spgoyette303	COMPAT_50 MODULAR compat_netbsd32_sysvipc_50	\
7191.112Spgoyette			{ int|netbsd32|13|shmctl(int shmid, int cmd, \
7201.75Schristos			    netbsd32_shmid_ds50p_t buf); }
7211.77Spooka304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
7221.75Schristos			    netbsd32_u_long flags); }
7231.77Spooka305	NOARGS 		{ int|sys||issetugid(void); }
7241.77Spooka306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
7251.75Schristos			    netbsd32_voidp addr, netbsd32_size_t len); }
7261.77Spooka307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
7271.100Snjoly308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp); }
7281.77Spooka309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
7291.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
7301.77Spooka310	NOARGS		{ int|sys||_lwp_exit(void); }
7311.77Spooka311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
7321.77Spooka312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
7331.44Scube			    netbsd32_lwpidp departed); }
7341.77Spooka313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
7351.77Spooka314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
7361.77Spooka315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
7371.77Spooka316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
7381.77Spooka317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
7391.77Spooka318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
7401.77Spooka319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
7411.125Spgoyette320	COMPAT_50 MODULAR compat_netbsd32_50	\
7421.125Spgoyette			{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
7431.75Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
7441.75Schristos			    netbsd32_voidp unparkhint); }
7451.77Spooka321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
7461.75Schristos			    netbsd32_voidp hint); }
7471.77Spooka322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
7481.75Schristos			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
7491.75Schristos			    netbsd32_voidp hint); }
7501.77Spooka323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
7511.64Sdsl				netbsd32_charp name); }
7521.77Spooka324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
7531.63Sad				netbsd32_charp name, netbsd32_size_t len); }
7541.77Spooka325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
7551.63Sad				netbsd32_pointer_t address); }
7561.18Smrg326	UNIMPL
7571.18Smrg327	UNIMPL
7581.18Smrg328	UNIMPL
7591.18Smrg329	UNIMPL
7601.92Srmind330	OBSOL		netbsd32_sa_register
7611.92Srmind331	OBSOL		netbsd32_sa_stacks
7621.92Srmind332	OBSOL		sa_enable
7631.92Srmind333	OBSOL		netbsd32_sa_setconcurrency
7641.92Srmind334	OBSOL		sa_yield
7651.92Srmind335	OBSOL		netbsd32_sa_preempt
7661.44Scube336	OBSOL		sys_sa_unblockyield
7671.18Smrg337	UNIMPL
7681.18Smrg338	UNIMPL
7691.18Smrg339	UNIMPL
7701.77Spooka340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
7711.64Sdsl			    netbsd32_sigactionp_t nsa, \
7721.22Sscw			    netbsd32_sigactionp_t osa, \
7731.22Sscw			    netbsd32_voidp tramp, int vers); }
7741.122Smaxv341	OBSOL		netbsd32_pmc_get_info
7751.122Smaxv342	OBSOL		netbsd32_pmc_control
7761.77Spooka343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
7771.75Schristos			    netbsd32_size_t len, int op); }
7781.77Spooka344	NOARGS		{ int|sys||kqueue(void); }
7791.125Spgoyette345	COMPAT_50 MODULAR compat_netbsd32_50	\
7801.125Spgoyette			{ int|netbsd32||kevent(int fd, \
7811.75Schristos			    netbsd32_keventp_t changelist, \
7821.75Schristos			    netbsd32_size_t nchanges, \
7831.75Schristos			    netbsd32_keventp_t eventlist, \
7841.75Schristos			    netbsd32_size_t nevents, \
7851.75Schristos			    netbsd32_timespec50p_t timeout); }
7861.74Smrg; Scheduling system calls.
7871.77Spooka346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
7881.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
7891.77Spooka347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
7901.75Schristos			    netbsd32_intp policy, \
7911.75Schristos			    netbsd32_sched_paramp_t params); }
7921.77Spooka348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
7931.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7941.75Schristos			    const netbsd32_cpusetp_t cpuset); }
7951.77Spooka349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
7961.75Schristos			    lwpid_t lid, netbsd32_size_t size, \
7971.75Schristos			    netbsd32_cpusetp_t cpuset); }
7981.77Spooka350	NOARGS 		{ int|sys||sched_yield(void); }
7991.113Sskrll351	STD		{ int|netbsd32||_sched_protect(int priority); }
8001.26Scube352	UNIMPL
8011.26Scube353	UNIMPL
8021.77Spooka354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
8031.99Snjoly			    netbsd32_off_t start, netbsd32_off_t length); }
8041.77Spooka355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
8051.75Schristos			    int count); }
8061.128Schristos356	COMPAT_90 MODULAR compat_netbsd32_90 \
8071.128Schristos			{ int|netbsd32||getvfsstat(netbsd32_statvfs90p_t buf, \
8081.26Scube			    netbsd32_size_t bufsize, int flags); }
8091.128Schristos357	COMPAT_90 MODULAR compat_netbsd32_90 \
8101.128Schristos			{ int|netbsd32||statvfs1(netbsd32_charp path, \
8111.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8121.128Schristos358	COMPAT_90 MODULAR compat_netbsd32_90 \
8131.128Schristos			{ int|netbsd32||fstatvfs1(int fd, \
8141.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8151.125Spgoyette359	COMPAT_30 MODULAR compat_netbsd32_30	\
8161.125Spgoyette			{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
8171.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
8181.77Spooka360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
8191.75Schristos			    int cmd, netbsd32_charp filename, \
8201.75Schristos			    int attrnamespace, netbsd32_charp attrname); }
8211.77Spooka361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
8221.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8231.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8241.77Spooka362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
8251.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8261.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8271.77Spooka363	STD		{ int|netbsd32||extattr_delete_file( \
8281.75Schristos			    netbsd32_charp path, int attrnamespace, \
8291.75Schristos			    netbsd32_charp attrname); }
8301.77Spooka364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
8311.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8321.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8331.77Spooka365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
8341.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8351.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8361.77Spooka366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
8371.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
8381.77Spooka367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
8391.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8401.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8411.77Spooka368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
8421.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
8431.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
8441.77Spooka369	STD		{ int|netbsd32||extattr_delete_link( \
8451.75Schristos			    netbsd32_charp path, int attrnamespace, \
8461.75Schristos			    netbsd32_charp attrname); }
8471.77Spooka370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
8481.29Scube			    int attrnamespace, netbsd32_voidp data, \
8491.29Scube			    netbsd32_size_t nbytes); }
8501.77Spooka371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
8511.29Scube			    int attrnamespace, netbsd32_voidp data, \
8521.29Scube			    netbsd32_size_t nbytes); }
8531.77Spooka372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
8541.29Scube			    int attrnamespace, netbsd32_voidp data, \
8551.29Scube			    netbsd32_size_t nbytes); }
8561.125Spgoyette373	COMPAT_50 MODULAR compat_netbsd32_50	\
8571.125Spgoyette			{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
8581.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
8591.75Schristos			    netbsd32_timespec50p_t ts, \
8601.75Schristos			    netbsd32_sigsetp_t mask); }
8611.125Spgoyette374	COMPAT_50 MODULAR compat_netbsd32_50	\
8621.125Spgoyette			{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
8631.75Schristos			    u_int nfds, netbsd32_timespec50p_t ts, \
8641.75Schristos			    netbsd32_sigsetp_t mask); }
8651.77Spooka375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
8661.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8671.35Scube			    netbsd32_size_t size, int flags); }
8681.77Spooka376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
8691.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8701.35Scube			    netbsd32_size_t size, int flags); }
8711.77Spooka377	STD		{ int|netbsd32||fsetxattr(int fd, \
8721.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8731.35Scube			    netbsd32_size_t size, int flags); }
8741.77Spooka378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
8751.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8761.35Scube			    netbsd32_size_t size); }
8771.77Spooka379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
8781.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8791.35Scube			    netbsd32_size_t size); }
8801.77Spooka380	STD		{ int|netbsd32||fgetxattr(int fd, \
8811.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
8821.35Scube			    netbsd32_size_t size); }
8831.77Spooka381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
8841.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8851.77Spooka382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
8861.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8871.77Spooka383	STD		{ int|netbsd32||flistxattr(int fd, \
8881.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
8891.77Spooka384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
8901.64Sdsl			    netbsd32_charp name); }
8911.77Spooka385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
8921.64Sdsl			    netbsd32_charp name); }
8931.77Spooka386	STD		{ int|netbsd32||fremovexattr(int fd, \
8941.64Sdsl			    netbsd32_charp name); }
8951.125Spgoyette387     COMPAT_50 MODULAR compat_netbsd32_50	\
8961.125Spgoyette			{ int|netbsd32|30|stat(netbsd32_charp path, \
8971.75Schristos			    netbsd32_stat50p_t ub); }
8981.125Spgoyette388     COMPAT_50 MODULAR compat_netbsd32_50	\
8991.125Spgoyette			{ int|netbsd32|30|fstat(int fd, \
9001.75Schristos			    netbsd32_stat50p_t sb); }
9011.125Spgoyette389     COMPAT_50 MODULAR compat_netbsd32_50	\
9021.125Spgoyette			{ int|netbsd32|30|lstat( \
9031.75Schristos			    netbsd32_charp path, netbsd32_stat50p_t ub); }
9041.77Spooka390     STD             { int|netbsd32|30|getdents(int fd, \
9051.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
9061.68Smartin391	IGNORED		old posix fadvise
9071.125Spgoyette392	COMPAT_30 MODULAR compat_netbsd32_30	\
9081.125Spgoyette			{ int|netbsd32|30|fhstat( \
9091.64Sdsl			    netbsd32_fhandlep_t fhp, \
9101.75Schristos			    netbsd32_stat50p_t sb); }
9111.125Spgoyette393	COMPAT_50 MODULAR compat_netbsd32_50	\
9121.125Spgoyette			{ int|netbsd32||ntp_gettime( \
9131.75Schristos			    netbsd32_ntptimeval50p_t ntvp); }
9141.77Spooka394	STD		{ int|netbsd32|30|socket(int domain, int type, \
9151.75Schristos			    int protocol); }
9161.77Spooka395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
9171.75Schristos			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
9181.77Spooka396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
9191.51Smartin			    netbsd32_size_t fh_size, int flags); }
9201.128Schristos397	COMPAT_90 MODULAR compat_netbsd90 \
9211.128Schristos			{ int|netbsd32||fhstatvfs1(	\
9221.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9231.128Schristos			    netbsd32_statvfs90p_t buf, int flags); }
9241.125Spgoyette398	COMPAT_50 MODULAR compat_netbsd32_50	\
9251.125Spgoyette			{ int|netbsd32|40|fhstat(	\
9261.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
9271.75Schristos			    netbsd32_stat50p_t sb); }
9281.65Sdsl
9291.65Sdsl; Asynchronous I/O system calls
9301.76Spooka399	UNIMPL		sys_aio_cancel
9311.76Spooka400	UNIMPL		sys_aio_error
9321.76Spooka401	UNIMPL		sys_aio_fsync
9331.76Spooka402	UNIMPL		sys_aio_read
9341.76Spooka403	UNIMPL		sys_aio_return
9351.76Spooka404	UNIMPL		sys_aio_suspend
9361.76Spooka405     UNIMPL		sys_aio_write
9371.76Spooka406	UNIMPL		sys_lio_listio
9381.65Sdsl
9391.65Sdsl407	UNIMPL
9401.65Sdsl408	UNIMPL
9411.65Sdsl409	UNIMPL
9421.65Sdsl
9431.81Smatt410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
9441.81Smatt			    netbsd32_charp path, int flags, \
9451.81Smatt			    netbsd32_voidp data, netbsd32_size_t data_len); }
9461.77Spooka411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
9471.65Sdsl			    netbsd32_voidp old_address, \
9481.65Sdsl			    netbsd32_size_t old_size, \
9491.65Sdsl			    netbsd32_voidp new_address, \
9501.65Sdsl			    netbsd32_size_t new_size, int flags); }
9511.67Smartin
9521.107Smartin412	STD		{ int|netbsd32||pset_create(netbsd32_psetidp_t psid); }
9531.107Smartin413	STD		{ int|netbsd32||pset_destroy(psetid_t psid); }
9541.107Smartin414	STD		{ int|netbsd32||pset_assign(psetid_t psid, \
9551.107Smartin			  cpuid_t cpuid, netbsd32_psetidp_t opsid); }
9561.107Smartin415	STD		{ int|netbsd32||_pset_bind(idtype_t idtype, \
9571.107Smartin			  id_t first_id, id_t second_id, psetid_t psid, \
9581.107Smartin			  netbsd32_psetidp_t opsid); }
9591.67Smartin
9601.80Spooka416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
9611.99Snjoly			    netbsd32_off_t offset, netbsd32_off_t len, int advice); }
9621.77Spooka417	STD 		{ int|netbsd32|50|select(int nd, \
9631.75Schristos			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
9641.75Schristos			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
9651.77Spooka418	STD 		{ int|netbsd32|50|gettimeofday( \
9661.75Schristos			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
9671.77Spooka419	STD 		{ int|netbsd32|50|settimeofday( \
9681.75Schristos			    const netbsd32_timevalp_t tv, \
9691.75Schristos			    const netbsd32_voidp tzp); }
9701.77Spooka420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
9711.75Schristos			    const netbsd32_timevalp_t tptr); }
9721.77Spooka421	STD		{ int|netbsd32|50|adjtime( \
9731.75Schristos			    const netbsd32_timevalp_t delta, \
9741.75Schristos			    netbsd32_timevalp_t olddelta); }
9751.75Schristos422	EXCL		__lfs_segwait50
9761.77Spooka423	STD 		{ int|netbsd32|50|futimes(int fd, \
9771.75Schristos			    const netbsd32_timevalp_t tptr); }
9781.77Spooka424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
9791.75Schristos			    const netbsd32_timevalp_t tptr); }
9801.77Spooka425	STD		{ int|netbsd32|50|setitimer(int which, \
9811.75Schristos			    const netbsd32_itimervalp_t itv, \
9821.75Schristos			    netbsd32_itimervalp_t oitv); }
9831.77Spooka426	STD		{ int|netbsd32|50|getitimer(int which, \
9841.75Schristos			    netbsd32_itimervalp_t itv); }
9851.77Spooka427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
9861.75Schristos			    netbsd32_timespecp_t tp); }
9871.77Spooka428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
9881.75Schristos			    const netbsd32_timespecp_t tp); }
9891.77Spooka429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
9901.75Schristos			    netbsd32_timespecp_t tp); }
9911.77Spooka430	STD 		{ int|netbsd32|50|nanosleep( \
9921.75Schristos			    const netbsd32_timespecp_t rqtp, \
9931.75Schristos			    netbsd32_timespecp_t rmtp); }
9941.77Spooka431	STD 		{ int|netbsd32|50|__sigtimedwait( \
9951.75Schristos			    const netbsd32_sigsetp_t set, \
9961.75Schristos			    netbsd32_siginfop_t info, \
9971.75Schristos			    netbsd32_timespecp_t timeout); }
9981.111Spgoyette432	STD MODULAR compat_netbsd32_mqueue	\
9991.111Spgoyette			{ int|netbsd32|50|mq_timedsend(mqd_t mqdes, \
10001.105Smartin			    const netbsd32_charp msg_ptr, \
10011.105Smartin			    netbsd32_size_t msg_len, \
10021.105Smartin			    unsigned msg_prio, \
10031.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
10041.111Spgoyette433	STD MODULAR compat_netbsd32_mqueue	\
10051.111Spgoyette			{ netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \
10061.105Smartin			    mqd_t mqdes, netbsd32_charp msg_ptr, \
10071.105Smartin			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \
10081.105Smartin			    const netbsd32_timespecp_t abs_timeout); }
10091.125Spgoyette434	COMPAT_60 MODULAR compat_netbsd32_60	\
10101.125Spgoyette		 	{ int|netbsd32||_lwp_park( \
10111.75Schristos			    const netbsd32_timespecp_t ts, \
10121.75Schristos			    lwpid_t unpark, const netbsd32_voidp hint, \
10131.75Schristos			    const netbsd32_voidp unparkhint); }
10141.77Spooka435	STD 		{ int|netbsd32|50|kevent(int fd, \
10151.75Schristos			    const netbsd32_keventp_t changelist, \
10161.75Schristos			    netbsd32_size_t nchanges, \
10171.75Schristos			    netbsd32_keventp_t eventlist, \
10181.75Schristos			    netbsd32_size_t nevents, \
10191.75Schristos			    const netbsd32_timespecp_t timeout); }
10201.77Spooka436	STD 		{ int|netbsd32|50|pselect(int nd, \
10211.75Schristos			    netbsd32_fd_setp_t in, \
10221.75Schristos			    netbsd32_fd_setp_t ou, \
10231.75Schristos			    netbsd32_fd_setp_t ex, \
10241.75Schristos			    const netbsd32_timespecp_t ts, \
10251.75Schristos			    const netbsd32_sigsetp_t mask); }
10261.77Spooka437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
10271.75Schristos			    u_int nfds, const netbsd32_timespecp_t ts, \
10281.75Schristos			    const netbsd32_sigsetp_t mask); }
10291.76Spooka438	UNIMPL 		netbsd32___aio_suspend50
10301.77Spooka439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
10311.75Schristos			    netbsd32_statp_t ub); }
10321.77Spooka440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
10331.77Spooka441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
10341.75Schristos			    netbsd32_statp_t ub); }
10351.112Spgoyette442	STD MODULAR compat_netbsd32_sysvipc	\
10361.112Spgoyette	 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
10371.75Schristos			    int cmd, ... netbsd32_semunp_t arg); }
10381.112Spgoyette443	STD MODULAR compat_netbsd32_sysvipc	\
10391.112Spgoyette	 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
10401.75Schristos			    netbsd32_shmid_dsp_t buf); }
10411.112Spgoyette444	STD MODULAR compat_netbsd32_sysvipc	\
10421.112Spgoyette	 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
10431.75Schristos			    netbsd32_msqid_dsp_t buf); }
10441.77Spooka445	STD 		{ int|netbsd32|50|getrusage(int who, \
10451.75Schristos			    netbsd32_rusagep_t rusage); }
10461.77Spooka446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
10471.75Schristos			    int flags, const netbsd32_itimerspecp_t value, \
10481.75Schristos			    netbsd32_itimerspecp_t ovalue); }
10491.77Spooka447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
10501.75Schristos			    netbsd32_itimerspecp_t value); }
10511.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT)
10521.77Spooka448	STD		{ int|netbsd32|50|ntp_gettime( \
10531.75Schristos			    netbsd32_ntptimevalp_t ntvp); }
10541.75Schristos#else
10551.75Schristos448	EXCL		___ntp_gettime50
10561.75Schristos#endif
10571.77Spooka449	STD 		{ int|netbsd32|50|wait4(int pid, \
10581.75Schristos			    netbsd32_intp status, \
10591.75Schristos			    int options, netbsd32_rusagep_t rusage); }
10601.77Spooka450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
10611.79Snjoly			    mode_t mode, netbsd32_dev_t dev); }
10621.77Spooka451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
10631.75Schristos			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
10641.90Sdholland452	OBSOL		5.99 quotactl
10651.86Snjoly453	STD		{ int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
10661.87Snjoly454	STD		{ int|netbsd32||dup3(int from, int to, int flags); }
10671.88Snjoly455	STD		{ int|netbsd32||kqueue1(int flags); }
10681.89Smatt456	STD  		{ int|netbsd32||paccept(int s, \
10691.89Smatt			    netbsd32_sockaddrp_t name, \
10701.89Smatt			    netbsd32_socklenp_t anamelen, \
10711.89Smatt			    const netbsd32_sigsetp_t mask, \
10721.89Smatt			    int flags); }
10731.89Smatt457	STD  		{ int|netbsd32||linkat(int fd1, \
10741.89Smatt			    const netbsd32_charp name1, \
10751.89Smatt			    int fd2, \
10761.89Smatt			    const netbsd32_charp name2, \
10771.89Smatt			    int flags); }
10781.89Smatt458	STD  		{ int|netbsd32||renameat(int fromfd, \
10791.89Smatt			    const netbsd32_charp from, \
10801.89Smatt			    int tofd, \
10811.89Smatt			    const netbsd32_charp to); }
10821.89Smatt459	STD  		{ int|netbsd32||mkfifoat(int fd, \
10831.89Smatt			    const netbsd32_charp path, \
10841.89Smatt			    mode_t mode); }
10851.89Smatt460	STD  		{ int|netbsd32||mknodat(int fd, \
10861.89Smatt			    const netbsd32_charp path, \
10871.98Snjoly			    mode_t mode, int PAD, \
10881.98Snjoly			    netbsd32_dev_t dev); }
10891.89Smatt461	STD  		{ int|netbsd32||mkdirat(int fd, \
10901.89Smatt			    const netbsd32_charp path, \
10911.89Smatt			    mode_t mode); }
10921.89Smatt462	STD  		{ int|netbsd32||faccessat(int fd, \
10931.89Smatt			    const netbsd32_charp path, \
10941.89Smatt			    int amode, \
10951.89Smatt			    int flag); }
10961.89Smatt463	STD  		{ int|netbsd32||fchmodat(int fd, \
10971.89Smatt			    const netbsd32_charp path, \
10981.89Smatt			    mode_t mode, \
10991.89Smatt			    int flag); }
11001.89Smatt464	STD  		{ int|netbsd32||fchownat(int fd, \
11011.89Smatt			    const netbsd32_charp path, \
11021.89Smatt			    uid_t owner, \
11031.89Smatt			    gid_t group, \
11041.89Smatt			    int flag); }
11051.89Smatt465	STD  		{ int|netbsd32||fexecve(int fd, \
11061.89Smatt			    netbsd32_charpp argp, \
11071.89Smatt			    netbsd32_charpp envp); }
11081.89Smatt466	STD  		{ int|netbsd32||fstatat(int fd, \
11091.89Smatt			    const netbsd32_charp path, \
11101.89Smatt			    netbsd32_statp_t buf, \
11111.89Smatt			    int flag); }
11121.89Smatt467	STD  		{ int|netbsd32||utimensat(int fd, \
11131.89Smatt			    const netbsd32_charp path, \
11141.89Smatt			    const netbsd32_timespecp_t tptr, \
11151.89Smatt			    int flag); }
11161.89Smatt468	STD  		{ int|netbsd32||openat(int fd, \
11171.89Smatt			    const netbsd32_charp path, \
11181.89Smatt			    int oflags, ... \
11191.89Smatt			    mode_t mode); }
11201.102Schristos469	STD  		{ netbsd32_ssize_t|netbsd32||readlinkat(int fd, \
11211.89Smatt			    const netbsd32_charp path, \
11221.89Smatt			    netbsd32_charp buf, \
11231.129Srin			    netbsd32_size_t bufsize); }
11241.89Smatt470	STD  		{ int|netbsd32||symlinkat(const netbsd32_charp path1, \
11251.89Smatt			    int fd, \
11261.89Smatt			    const netbsd32_charp path2); }
11271.89Smatt471	STD  		{ int|netbsd32||unlinkat(int fd, \
11281.89Smatt			    const netbsd32_charp path, \
11291.89Smatt			    int flag); }
11301.89Smatt472	STD  		{ int|netbsd32||futimens(int fd, \
11311.89Smatt			    const netbsd32_timespecp_t tptr); }
11321.127Schristos#if defined(QUOTA) || !defined(_KERNEL_OPT)
11331.91Sdholland473	STD		{ int|netbsd32||__quotactl(const netbsd32_charp path, \
11341.91Sdholland			    netbsd32_voidp args); }
11351.127Schristos#else
11361.127Schristos473	EXCL		netbsd32___quotactl
11371.127Schristos#endif
11381.95Smartin474	NOERR		{ int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \
11391.121Schristos			    const netbsd32_charp path, \
11401.121Schristos			    const netbsd32_posix_spawn_file_actionsp \
11411.121Schristos				file_actions, \
11421.121Schristos			    const netbsd32_posix_spawnattrp attrp, \
11431.121Schristos			    netbsd32_charpp argv, netbsd32_charpp envp); }
11441.95Smartin
11451.121Schristos475	STD		{ int|netbsd32||recvmmsg(int s, \
11461.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11471.96Schristos			    unsigned int vlen, unsigned int flags, \
11481.96Schristos			    netbsd32_timespecp_t timeout); }
11491.121Schristos476	STD		{ int|netbsd32||sendmmsg(int s, \
11501.121Schristos			    netbsd32_mmsghdrp_t mmsg, \
11511.96Schristos			    unsigned int vlen, unsigned int flags); }
11521.96Schristos477	STD 		{ int|netbsd32||clock_nanosleep(\
11531.96Schristos			    netbsd32_clockid_t clock_id, \
11541.96Schristos			    int flags, const netbsd32_timespecp_t rqtp, \
11551.96Schristos			    netbsd32_timespecp_t rmtp); }
11561.97Schristos478	STD 		{ int|netbsd32|60|_lwp_park(\
11571.97Schristos			    netbsd32_clockid_t clock_id, \
11581.116Skamil			    int flags, netbsd32_timespecp_t ts, \
11591.97Schristos			    lwpid_t unpark, netbsd32_voidp hint, \
11601.97Schristos			    netbsd32_voidp unparkhint); }
11611.103Smartin479	NOERR		{ int|netbsd32||posix_fallocate(int fd, int PAD, \
11621.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11631.103Smartin480	STD		{ int|netbsd32||fdiscard(int fd, int PAD, \
11641.103Smartin			    netbsd32_off_t pos, netbsd32_off_t len); }
11651.114Sskrll481	STD 		{ int|netbsd32||wait6(idtype_t idtype, id_t id, \
11661.114Sskrll			    netbsd32_intp status, int options, \
11671.114Sskrll			    netbsd32_wrusagep_t wru, netbsd32_siginfop_t info); }
11681.114Sskrll482	STD		{ int|netbsd32||clock_getcpuclockid2(idtype_t idtype, \
11691.114Sskrll			    id_t id, netbsd32_clockidp_t clock_id); }
11701.128Schristos483	STD 		{ int|netbsd32|90|getvfsstat( \
11711.128Schristos			    netbsd32_statvfsp_t buf, \
11721.130Srin			    netbsd32_size_t bufsize, int flags); }
11731.128Schristos484	STD 		{ int|netbsd32|90|statvfs1(netbsd32_charp path, \
11741.128Schristos			    netbsd32_statvfsp_t buf, int flags); }
11751.128Schristos485	STD 		{ int|netbsd32|90|fstatvfs1(int fd, \
11761.128Schristos			    netbsd32_statvfsp_t buf, int flags); }
11771.128Schristos486	STD 		{ int|netbsd32|90|fhstatvfs1(netbsd32_voidp fhp, \
11781.130Srin			    netbsd32_size_t fh_size, netbsd32_statvfsp_t buf, \
11791.128Schristos			    int flags); }
1180