syscalls.master revision 1.74
11.74Smrg	$NetBSD: syscalls.master,v 1.74 2008/11/22 23:13:38 mrg Exp $
21.1Smrg
31.1Smrg;	from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
41.1Smrg;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
51.1Smrg
61.1Smrg; NetBSD system call name/number "master" file.
71.1Smrg; (See syscalls.conf to see what it is processed into.)
81.1Smrg;
91.1Smrg; Fields: number type [type-dependent ...]
101.1Smrg;	number	system call number, must be in order
111.68Smartin;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
121.1Smrg;		the compatibility options defined in syscalls.conf.
131.1Smrg;
141.1Smrg; types:
151.1Smrg;	STD	always included
161.1Smrg;	OBSOL	obsolete, not included in system
171.68Smartin;	IGNORED	syscall is a null op, but always succeeds
181.1Smrg;	UNIMPL	unimplemented, not included in system
191.8Schristos;	EXCL	implemented, but not included in system
201.1Smrg;	NODEF	included, but don't define the syscall number
211.1Smrg;	NOARGS	included, but don't define the syscall args structure
221.1Smrg;	INDIR	included, but don't define the syscall args structure,
231.1Smrg;		and allow it to be "really" varargs.
241.1Smrg;
251.1Smrg; The compat options are defined in the syscalls.conf file, and the
261.1Smrg; compat option name is prefixed to the syscall name.  Other than
271.1Smrg; that, they're like NODEF (for 'compat' options), or STD (for
281.1Smrg; 'libcompat' options).
291.1Smrg;
301.1Smrg; The type-dependent arguments are as follows:
311.1Smrg; For STD, NODEF, NOARGS, and compat syscalls:
321.1Smrg;	{ pseudo-proto } [alias]
331.1Smrg; For other syscalls:
341.1Smrg;	[comment]
351.1Smrg;
361.1Smrg; #ifdef's, etc. may be included, and are copied to the output files.
371.1Smrg; #include's are copied to the syscall names and switch definition files only.
381.1Smrg
391.20Smrg#if defined(_KERNEL_OPT)
401.1Smrg#include "opt_compat_netbsd.h"
411.3Seeh#include "opt_ntp.h"
421.4Stron#include "opt_sysv.h"
431.5Schristos#include "opt_compat_43.h"
441.42Scube#include "opt_posix.h"
451.1Smrg
461.1Smrg#include "fs_lfs.h"
471.1Smrg#include "fs_nfs.h"
481.16Smycroft#endif
491.1Smrg
501.1Smrg#include <sys/param.h>
511.1Smrg#include <sys/systm.h>
521.1Smrg#include <sys/signal.h>
531.1Smrg#include <sys/mount.h>
541.1Smrg#include <sys/syscallargs.h>
551.1Smrg
561.7Smrg#include <compat/netbsd32/netbsd32.h>
571.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
581.16Smycroft
591.16Smycroft%%
601.1Smrg
611.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
621.1Smrg; are reserved for use in future Berkeley releases.
631.1Smrg; Additional system calls implemented in vendor and other
641.1Smrg; redistributions should be placed in the reserved range at the end
651.1Smrg; of the current calls.
661.1Smrg
671.62Sdsl0	INDIR		{ int netbsd32_sys_syscall(int code, \
681.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
691.10Seeh1	STD		{ void netbsd32_exit(int rval); }
701.1Smrg2	NOARGS		{ int sys_fork(void); }
711.10Seeh3	STD		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
721.64Sdsl4	STD		{ netbsd32_ssize_t netbsd32_write(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
731.64Sdsl5	STD		{ int netbsd32_open(netbsd32_charp path, int flags, ... mode_t mode); }
741.10Seeh6	STD		{ int netbsd32_close(int fd); }
751.10Seeh7	STD		{ int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
761.64Sdsl8	COMPAT_43	{ int netbsd32_ocreat(netbsd32_charp path, mode_t mode); }
771.64Sdsl9	STD		{ int netbsd32_link(netbsd32_charp path, netbsd32_charp link); }
781.64Sdsl10	STD		{ int netbsd32_unlink(netbsd32_charp path); }
791.1Smrg11	OBSOL		execv
801.64Sdsl12	STD		{ int netbsd32_chdir(netbsd32_charp path); }
811.10Seeh13	STD		{ int netbsd32_fchdir(int fd); }
821.64Sdsl14	STD		{ int netbsd32_mknod(netbsd32_charp path, mode_t mode, dev_t dev); }
831.64Sdsl15	STD		{ int netbsd32_chmod(netbsd32_charp path, mode_t mode); }
841.64Sdsl16	STD		{ int netbsd32_chown(netbsd32_charp path, uid_t uid, gid_t gid); }
851.10Seeh17	STD		{ int netbsd32_break(netbsd32_charp nsize); }
861.26Scube18	COMPAT_20	{ int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
871.10Seeh19	COMPAT_43	{ netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
881.69Sad20	NOARGS 		{ pid_t sys_getpid(void); }
891.64Sdsl21	STD		{ int netbsd32_mount(netbsd32_charp type, netbsd32_charp path, int flags, netbsd32_voidp data); }
901.64Sdsl22	STD		{ int netbsd32_unmount(netbsd32_charp path, int flags); }
911.10Seeh23	STD		{ int netbsd32_setuid(uid_t uid); }
921.69Sad24	NOARGS 		{ uid_t sys_getuid(void); }
931.69Sad25	NOARGS		{ uid_t sys_geteuid(void); }
941.59Schristos26	STD		{ int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
951.10Seeh27	STD		{ netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
961.64Sdsl28	STD		{ netbsd32_ssize_t netbsd32_sendmsg(int s, netbsd32_msghdrp_t msg, int flags); }
971.10Seeh29	STD		{ netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
981.10Seeh30	STD		{ int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
991.10Seeh31	STD		{ int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1001.10Seeh32	STD		{ int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1011.64Sdsl33	STD		{ int netbsd32_access(netbsd32_charp path, int flags); }
1021.64Sdsl34	STD		{ int netbsd32_chflags(netbsd32_charp path, netbsd32_u_long flags); }
1031.10Seeh35	STD		{ int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
1041.1Smrg36	NOARGS		{ void sys_sync(void); }
1051.10Seeh37	STD		{ int netbsd32_kill(int pid, int signum); }
1061.64Sdsl38	COMPAT_43	{ int netbsd32_stat43(netbsd32_charp path, netbsd32_stat43p_t ub); }
1071.69Sad39	NOARGS 		{ pid_t sys_getppid(void); }
1081.64Sdsl40	COMPAT_43	{ int netbsd32_lstat43(netbsd32_charp path, netbsd32_stat43p_t ub); }
1091.10Seeh41	STD		{ int netbsd32_dup(int fd); }
1101.1Smrg42	NOARGS		{ int sys_pipe(void); }
1111.69Sad43	NOARGS 		{ gid_t sys_getegid(void); }
1121.59Schristos44	STD		{ int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
1131.64Sdsl45	STD		{ int netbsd32_ktrace(netbsd32_charp fname, int ops, int facs, int pid); }
1141.64Sdsl46	STD		{ int netbsd32_sigaction(int signum, netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
1151.69Sad47	NOARGS 		{ gid_t sys_getgid(void); }
1161.10Seeh48	COMPAT_13	{ int netbsd32_sigprocmask(int how, \
1171.3Seeh			    int mask); } sigprocmask13
1181.10Seeh49	STD		{ int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
1191.64Sdsl50	STD		{ int netbsd32_setlogin(netbsd32_charp namebuf); }
1201.64Sdsl51	STD		{ int netbsd32_acct(netbsd32_charp path); }
1211.69Sad52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
1221.64Sdsl53	COMPAT_13	{ int netbsd32_sigaltstack13(netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
1231.10Seeh54	STD		{ int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
1241.10Seeh55	COMPAT_12	{ int netbsd32_reboot(int opt); }
1251.64Sdsl56	STD		{ int netbsd32_revoke(netbsd32_charp path); }
1261.64Sdsl57	STD		{ int netbsd32_symlink(netbsd32_charp path, netbsd32_charp link); }
1271.64Sdsl58	STD		{ int netbsd32_readlink(netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
1281.64Sdsl59	STD		{ int netbsd32_execve(netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
1291.10Seeh60	STD		{ mode_t netbsd32_umask(mode_t newmask); }
1301.64Sdsl61	STD		{ int netbsd32_chroot(netbsd32_charp path); }
1311.10Seeh62	COMPAT_43	{ int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
1321.10Seeh63	COMPAT_43	{ int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
1331.1Smrg64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
1341.59Schristos65	COMPAT_12	{ int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
1351.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1361.1Smrg66	NOARGS		{ int sys_vfork(void); }
1371.1Smrg67	OBSOL		vread
1381.1Smrg68	OBSOL		vwrite
1391.10Seeh69	STD		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
1401.10Seeh70	STD		{ int netbsd32_sstk(int incr); }
1411.59Schristos71	COMPAT_43	{ int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
1421.10Seeh72	STD		{ int netbsd32_ovadvise(int anom); } vadvise
1431.10Seeh73	STD		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
1441.10Seeh74	STD		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
1451.10Seeh75	STD		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
1461.1Smrg76	OBSOL		vhangup
1471.1Smrg77	OBSOL		vlimit
1481.59Schristos78	STD		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
1491.10Seeh79	STD		{ int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
1501.64Sdsl80	STD		{ int netbsd32_setgroups(int gidsetsize, netbsd32_gid_tp gidset); }
1511.69Sad81	NOARGS 		{ int sys_getpgrp(void); }
1521.10Seeh82	STD		{ int netbsd32_setpgid(int pid, int pgid); }
1531.64Sdsl83	STD		{ int netbsd32_setitimer(int which, netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
1541.1Smrg84	COMPAT_43	{ int sys_wait(void); } owait
1551.64Sdsl85	COMPAT_12	{ int netbsd32_oswapon(netbsd32_charp name); }
1561.10Seeh86	STD		{ int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
1571.10Seeh87	COMPAT_43	{ int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
1581.10Seeh88	COMPAT_43	{ int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
1591.1Smrg89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
1601.10Seeh90	STD		{ int netbsd32_dup2(int from, int to); }
1611.1Smrg91	UNIMPL		getdopt
1621.10Seeh92	STD		{ int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
1631.10Seeh93	STD		{ int netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
1641.1Smrg94	UNIMPL		setdopt
1651.10Seeh95	STD		{ int netbsd32_fsync(int fd); }
1661.10Seeh96	STD		{ int netbsd32_setpriority(int which, int who, int prio); }
1671.48Smrg97	COMPAT_30	{ int netbsd32_socket(int domain, int type, int protocol); }
1681.64Sdsl98	STD		{ int netbsd32_connect(int s, netbsd32_sockaddrp_t name, int namelen); }
1691.59Schristos99	COMPAT_43	{ int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
1701.10Seeh100	STD		{ int netbsd32_getpriority(int which, int who); }
1711.59Schristos101	COMPAT_43	{ int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
1721.59Schristos102	COMPAT_43	{ int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
1731.11Seeh103	COMPAT_13	{ int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
1741.64Sdsl104	STD		{ int netbsd32_bind(int s, netbsd32_sockaddrp_t name, int namelen); }
1751.64Sdsl105	STD		{ int netbsd32_setsockopt(int s, int level, int name, netbsd32_voidp val, int valsize); }
1761.10Seeh106	STD		{ int netbsd32_listen(int s, int backlog); }
1771.1Smrg107	OBSOL		vtimes
1781.10Seeh108	COMPAT_43	{ int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
1791.10Seeh109	COMPAT_43	{ int netbsd32_sigblock(int mask); }
1801.10Seeh110	COMPAT_43	{ int netbsd32_sigsetmask(int mask); }
1811.10Seeh111	COMPAT_13	{ int netbsd32_sigsuspend(int mask); } sigsuspend13
1821.10Seeh112	COMPAT_43	{ int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
1831.10Seeh113	COMPAT_43	{ int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
1841.59Schristos114	COMPAT_43	{ int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
1851.1Smrg115	OBSOL		vtrace
1861.10Seeh116	STD		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
1871.10Seeh117	STD		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
1881.10Seeh118	STD		{ int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
1891.1Smrg119	OBSOL		resuba
1901.64Sdsl120	STD		{ netbsd32_ssize_t netbsd32_readv(int fd, netbsd32_iovecp_t iovp, int iovcnt); }
1911.64Sdsl121	STD		{ netbsd32_ssize_t netbsd32_writev(int fd, netbsd32_iovecp_t iovp, int iovcnt); }
1921.64Sdsl122	STD		{ int netbsd32_settimeofday(netbsd32_timevalp_t tv, netbsd32_timezonep_t tzp); }
1931.10Seeh123	STD		{ int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
1941.10Seeh124	STD		{ int netbsd32_fchmod(int fd, mode_t mode); }
1951.59Schristos125	COMPAT_43	{ int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
1961.10Seeh126	STD		{ int netbsd32_setreuid(uid_t ruid, uid_t euid); }
1971.10Seeh127	STD		{ int netbsd32_setregid(gid_t rgid, gid_t egid); }
1981.64Sdsl128	STD		{ int netbsd32_rename(netbsd32_charp from, netbsd32_charp to); }
1991.64Sdsl129	COMPAT_43	{ int netbsd32_otruncate(netbsd32_charp path, netbsd32_long length); }
2001.10Seeh130	COMPAT_43	{ int netbsd32_oftruncate(int fd, netbsd32_long length); }
2011.10Seeh131	STD		{ int netbsd32_flock(int fd, int how); }
2021.64Sdsl132	STD		{ int netbsd32_mkfifo(netbsd32_charp path, mode_t mode); }
2031.64Sdsl133	STD		{ netbsd32_ssize_t netbsd32_sendto(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t to, int tolen); }
2041.10Seeh134	STD		{ int netbsd32_shutdown(int s, int how); }
2051.10Seeh135	STD		{ int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
2061.64Sdsl136	STD		{ int netbsd32_mkdir(netbsd32_charp path, mode_t mode); }
2071.64Sdsl137	STD		{ int netbsd32_rmdir(netbsd32_charp path); }
2081.64Sdsl138	STD		{ int netbsd32_utimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
2091.1Smrg139	OBSOL		4.2 sigreturn
2101.64Sdsl140	STD		{ int netbsd32_adjtime(netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
2111.59Schristos141	COMPAT_43	{ int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
2121.1Smrg142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
2131.10Seeh143	COMPAT_43	{ int netbsd32_sethostid(int32_t hostid); }
2141.10Seeh144	COMPAT_43	{ int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
2151.64Sdsl145	COMPAT_43	{ int netbsd32_osetrlimit(int which, netbsd32_orlimitp_t rlp); }
2161.10Seeh146	COMPAT_43	{ int netbsd32_killpg(int pgid, int signum); }
2171.1Smrg147	NOARGS		{ int sys_setsid(void); }
2181.64Sdsl148	STD		{ int netbsd32_quotactl(netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
2191.1Smrg149	COMPAT_43	{ int sys_quota(void); } oquota
2201.59Schristos150	COMPAT_43	{ int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
2211.1Smrg
2221.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
2231.1Smrg; system calls.  (This includes various calls added for compatibity
2241.1Smrg; with other Unix variants.)
2251.1Smrg; Some of these calls are now supported by BSD...
2261.1Smrg151	UNIMPL
2271.1Smrg152	UNIMPL
2281.1Smrg153	UNIMPL
2291.1Smrg154	UNIMPL
2301.10Seeh155	STD		{ int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
2311.10Seeh156	COMPAT_43	{ int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
2321.64Sdsl157	COMPAT_20	{ int netbsd32_statfs(netbsd32_charp path, netbsd32_statfsp_t buf); }
2331.26Scube158	COMPAT_20	{ int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
2341.1Smrg159	UNIMPL
2351.1Smrg160	UNIMPL
2361.64Sdsl161	COMPAT_30		{ int netbsd32_getfh(netbsd32_charp fname, netbsd32_compat_30_fhandlep_t fhp); }
2371.10Seeh162	COMPAT_09	{ int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
2381.10Seeh163	COMPAT_09	{ int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
2391.10Seeh164	COMPAT_09	{ int netbsd32_uname(netbsd32_outsnamep_t name); }
2401.10Seeh165	STD		{ int netbsd32_sysarch(int op, netbsd32_voidp parms); }
2411.1Smrg166	UNIMPL
2421.1Smrg167	UNIMPL
2431.1Smrg168	UNIMPL
2441.21Smrg#if defined(SYSVSEM) || !defined(_KERNEL)
2451.21Smrg169	COMPAT_10	{ int netbsd32_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
2461.1Smrg#else
2471.21Smrg169	EXCL		netbsd32_sys_semsys
2481.1Smrg#endif
2491.21Smrg#if defined(SYSVMSG) || !defined(_KERNEL)
2501.21Smrg170	COMPAT_10	{ int netbsd32_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
2511.1Smrg#else
2521.21Smrg170	EXCL		netbsd32_sys_msgsys
2531.1Smrg#endif
2541.21Smrg#if defined(SYSVSHM) || !defined(_KERNEL)
2551.21Smrg171	COMPAT_10	{ int netbsd32_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
2561.1Smrg#else
2571.21Smrg171	EXCL		netbsd32_sys_shmsys
2581.1Smrg#endif
2591.1Smrg172	UNIMPL
2601.10Seeh173	STD		{ netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
2611.64Sdsl174	STD		{ netbsd32_ssize_t netbsd32_pwrite(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
2621.47Sdrochner175	COMPAT_30	{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
2631.10Seeh176	STD		{ int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
2641.1Smrg177	UNIMPL
2651.1Smrg178	UNIMPL
2661.1Smrg179	UNIMPL
2671.1Smrg180	UNIMPL
2681.1Smrg
2691.1Smrg; Syscalls 180-199 are used by/reserved for BSD
2701.10Seeh181	STD		{ int netbsd32_setgid(gid_t gid); }
2711.10Seeh182	STD		{ int netbsd32_setegid(gid_t egid); }
2721.10Seeh183	STD		{ int netbsd32_seteuid(uid_t euid); }
2731.8Schristos#if defined(LFS) || !defined(_KERNEL)
2741.10Seeh184	STD		{ int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
2751.10Seeh185	STD		{ int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
2761.10Seeh186	STD		{ int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
2771.10Seeh187	STD		{ int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
2781.10Seeh#else
2791.10Seeh184	EXCL		netbsd32_sys_lfs_bmapv
2801.10Seeh185	EXCL		netbsd32_sys_lfs_markv
2811.10Seeh186	EXCL		netbsd32_sys_lfs_segclean
2821.10Seeh187	EXCL		netbsd32_sys_lfs_segwait
2831.10Seeh#endif
2841.64Sdsl188	COMPAT_12	{ int netbsd32_stat12(netbsd32_charp path, netbsd32_stat12p_t ub); }
2851.10Seeh189	COMPAT_12	{ int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
2861.64Sdsl190	COMPAT_12	{ int netbsd32_lstat12(netbsd32_charp path, netbsd32_stat12p_t ub); }
2871.64Sdsl191	STD		{ netbsd32_long netbsd32_pathconf(netbsd32_charp path, int name); }
2881.10Seeh192	STD		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
2891.1Smrg193	UNIMPL
2901.10Seeh194	STD		{ int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
2911.64Sdsl195	STD		{ int netbsd32_setrlimit(int which, netbsd32_rlimitp_t rlp); }
2921.10Seeh196	COMPAT_12	{ int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
2931.10Seeh197	STD		{ netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
2941.62Sdsl198	INDIR		{ quad_t netbsd32_sys___syscall(quad_t code, \
2951.62Sdsl			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
2961.10Seeh199	STD		{ off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
2971.64Sdsl200	STD		{ int netbsd32_truncate(netbsd32_charp path, int pad, off_t length); }
2981.10Seeh201	STD		{ int netbsd32_ftruncate(int fd, int pad, off_t length); }
2991.10Seeh202	STD		{ int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
3001.64Sdsl203	STD		{ int netbsd32_mlock(netbsd32_voidp addr, netbsd32_size_t len); }
3011.64Sdsl204	STD		{ int netbsd32_munlock(netbsd32_voidp addr, netbsd32_size_t len); }
3021.64Sdsl205	STD		{ int netbsd32_undelete(netbsd32_charp path); }
3031.64Sdsl206	STD		{ int netbsd32_futimes(int fd, netbsd32_timevalp_t tptr); }
3041.10Seeh207	STD		{ int netbsd32_getpgid(pid_t pid); }
3051.10Seeh208	STD		{ int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
3061.10Seeh209	STD		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
3071.71Sad210	UNIMPL
3081.71Sad211	UNIMPL
3091.71Sad212	UNIMPL
3101.71Sad213	UNIMPL
3111.71Sad214	UNIMPL
3121.71Sad215	UNIMPL
3131.71Sad216	UNIMPL
3141.71Sad217	UNIMPL
3151.71Sad218	UNIMPL
3161.71Sad219	UNIMPL
3171.1Smrg; System calls 220-300 are reserved for use by NetBSD
3181.8Schristos#if defined(SYSVSEM) || !defined(_KERNEL)
3191.10Seeh220	COMPAT_14	{ int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
3201.10Seeh221	STD		{ int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
3211.10Seeh222	STD		{ int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
3221.10Seeh223	STD		{ int netbsd32_semconfig(int flag); }
3231.10Seeh#else
3241.11Seeh220	EXCL		compat_14_netbsd32_semctl
3251.10Seeh221	EXCL		netbsd32_semget
3261.10Seeh222	EXCL		netbsd32_semop
3271.10Seeh223	EXCL		netbsd32_semconfig
3281.1Smrg#endif
3291.8Schristos#if defined(SYSVMSG) || !defined(_KERNEL)
3301.10Seeh224	COMPAT_14	{ int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
3311.10Seeh225	STD		{ int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
3321.64Sdsl226	STD		{ int netbsd32_msgsnd(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
3331.10Seeh227	STD		{ netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
3341.10Seeh#else
3351.11Seeh224	EXCL		compat_14_netbsd32_msgctl
3361.10Seeh225	EXCL		netbsd32_msgget
3371.10Seeh226	EXCL		netbsd32_msgsnd
3381.10Seeh227	EXCL		netbsd32_msgrcv
3391.1Smrg#endif
3401.8Schristos#if defined(SYSVSHM) || !defined(_KERNEL)
3411.64Sdsl228	STD		{ netbsd32_voidp netbsd32_shmat(int shmid, netbsd32_voidp shmaddr, int shmflg); }
3421.10Seeh229	COMPAT_14		{ int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
3431.64Sdsl230	STD		{ int netbsd32_shmdt(netbsd32_voidp shmaddr); }
3441.10Seeh231	STD		{ int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
3451.10Seeh#else
3461.10Seeh228	EXCL		netbsd32_shmat
3471.11Seeh229	EXCL		compat_14_netbsd32_shmctl
3481.10Seeh230	EXCL		netbsd32_shmdt
3491.10Seeh231	EXCL		netbsd32_shmget
3501.10Seeh#endif
3511.10Seeh232	STD		{ int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
3521.64Sdsl233	STD		{ int netbsd32_clock_settime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
3531.10Seeh234	STD		{ int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
3541.36Scube235	STD		{ int netbsd32_timer_create(netbsd32_clockid_t clock_id, netbsd32_sigeventp_t evp, \
3551.36Scube			    netbsd32_timerp_t timerid); }
3561.36Scube236	STD		{ int netbsd32_timer_delete(netbsd32_timer_t timerid); }
3571.36Scube237	STD		{ int netbsd32_timer_settime(netbsd32_timer_t timerid, int flags, \
3581.64Sdsl			    netbsd32_itimerspecp_t value, \
3591.36Scube			    netbsd32_itimerspecp_t ovalue); }
3601.36Scube238	STD		{ int netbsd32_timer_gettime(netbsd32_timer_t timerid, netbsd32_itimerspecp_t value); }
3611.36Scube239	STD		{ int netbsd32_timer_getoverrun(netbsd32_timer_t timerid); }
3621.1Smrg;
3631.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
3641.1Smrg;
3651.64Sdsl240	STD		{ int netbsd32_nanosleep(netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
3661.10Seeh241	STD		{ int netbsd32_fdatasync(int fd); }
3671.30Scube242	STD		{ int netbsd32_mlockall(int flags); }
3681.30Scube243	NOARGS		{ int sys_munlockall(void); }
3691.64Sdsl244	STD		{ int netbsd32___sigtimedwait(netbsd32_sigsetp_t set, \
3701.37Scube			    netbsd32_siginfop_t info, \
3711.37Scube			    netbsd32_timespecp_t timeout); }
3721.1Smrg245	UNIMPL
3731.1Smrg246	UNIMPL
3741.42Scube#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
3751.42Scube247	STD		{ int netbsd32__ksem_init(unsigned int value, netbsd32_semidp_t idp); }
3761.64Sdsl248	STD		{ int netbsd32__ksem_open(netbsd32_charp name, int oflag, \
3771.42Scube			    mode_t mode, unsigned int value, netbsd32_semidp_t idp); }
3781.64Sdsl249	STD		{ int netbsd32__ksem_unlink(netbsd32_charp name); }
3791.72Sad250	STD		{ int netbsd32__ksem_close(netbsd32_intptr_t id); }
3801.72Sad251	STD		{ int netbsd32__ksem_post(netbsd32_intptr_t id); }
3811.72Sad252	STD		{ int netbsd32__ksem_wait(netbsd32_intptr_t id); }
3821.72Sad253	STD		{ int netbsd32__ksem_trywait(netbsd32_intptr_t id); }
3831.72Sad254	STD		{ int netbsd32__ksem_getvalue(netbsd32_intptr_t id, \
3841.42Scube			    netbsd32_intp value); }
3851.72Sad255	STD		{ int netbsd32__ksem_destroy(netbsd32_intptr_t id); }
3861.42Scube256	UNIMPL		sys__ksem_timedwait
3871.42Scube#else
3881.42Scube247	EXCL		sys__ksem_init
3891.42Scube248	EXCL		sys__ksem_open
3901.42Scube249	EXCL 		sys__ksem_unlink
3911.42Scube250	EXCL		sys__ksem_close
3921.42Scube251	EXCL		sys__ksem_post
3931.42Scube252	EXCL		sys__ksem_wait
3941.42Scube253	EXCL		sys__ksem_trywait
3951.42Scube254	EXCL		sys__ksem_getvalue
3961.42Scube255	EXCL		sys__ksem_destroy
3971.42Scube256	UNIMPL		sys__ksem_timedwait
3981.42Scube#endif
3991.1Smrg257	UNIMPL
4001.1Smrg258	UNIMPL
4011.1Smrg259	UNIMPL
4021.1Smrg260	UNIMPL
4031.1Smrg261	UNIMPL
4041.1Smrg262	UNIMPL
4051.1Smrg263	UNIMPL
4061.1Smrg264	UNIMPL
4071.1Smrg265	UNIMPL
4081.1Smrg266	UNIMPL
4091.1Smrg267	UNIMPL
4101.1Smrg268	UNIMPL
4111.1Smrg269	UNIMPL
4121.64Sdsl270	STD		{ int netbsd32___posix_rename(netbsd32_charp from, netbsd32_charp to); }
4131.27Schs271	STD		{ int netbsd32_swapctl(int cmd, netbsd32_voidp arg, int misc); }
4141.54Scube272	COMPAT_30	{ int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
4151.10Seeh273	STD		{ int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
4161.64Sdsl274	STD		{ int netbsd32_lchmod(netbsd32_charp path, mode_t mode); }
4171.64Sdsl275	STD		{ int netbsd32_lchown(netbsd32_charp path, uid_t uid, gid_t gid); }
4181.64Sdsl276	STD		{ int netbsd32_lutimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
4191.10Seeh277	STD		{ int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
4201.64Sdsl278	COMPAT_30	{ int netbsd32___stat13(netbsd32_charp path, netbsd32_stat13p_t ub); }
4211.54Scube279	COMPAT_30	{ int netbsd32___fstat13(int fd, netbsd32_stat13p_t sb); }
4221.64Sdsl280	COMPAT_30	{ int netbsd32___lstat13(netbsd32_charp path, netbsd32_stat13p_t ub); }
4231.64Sdsl281	STD		{ int netbsd32___sigaltstack14(netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
4241.1Smrg282	NOARGS		{ int sys___vfork14(void); }
4251.64Sdsl283	STD		{ int netbsd32___posix_chown(netbsd32_charp path, uid_t uid, gid_t gid); }
4261.10Seeh284	STD		{ int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
4271.64Sdsl285	STD		{ int netbsd32___posix_lchown(netbsd32_charp path, uid_t uid, gid_t gid); }
4281.10Seeh286	STD		{ pid_t netbsd32_getsid(pid_t pid); }
4291.32Scube287	STD		{ int netbsd32___clone(int flags, netbsd32_voidp stack); }
4301.64Sdsl288	STD		{ int netbsd32_fktrace(int fd, int ops, int facs, int pid); }
4311.64Sdsl289	STD		{ netbsd32_ssize_t netbsd32_preadv(int fd, netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
4321.64Sdsl290	STD		{ netbsd32_ssize_t netbsd32_pwritev(int fd, netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
4331.11Seeh291	STD		{ int netbsd32___sigaction14(int signum, \
4341.64Sdsl			    netbsd32_sigactionp_t nsa, \
4351.11Seeh			    netbsd32_sigactionp_t osa); }
4361.11Seeh292	STD		{ int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
4371.11Seeh293	STD		{ int netbsd32___sigprocmask14(int how, \
4381.64Sdsl			    netbsd32_sigsetp_t set, \
4391.11Seeh			    netbsd32_sigsetp_t oset); }
4401.64Sdsl294	STD		{ int netbsd32___sigsuspend14(netbsd32_sigsetp_t set); }
4411.24Sfvdl295	COMPAT_16	{ int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
4421.11Seeh296	STD		{ int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
4431.11Seeh297	STD		{ int netbsd32_fchroot(int fd); }
4441.64Sdsl298	COMPAT_30	{ int netbsd32_fhopen(netbsd32_fhandlep_t fhp, \
4451.11Seeh			   int flags); }
4461.64Sdsl299	COMPAT_30	{ int netbsd32_fhstat(netbsd32_fhandlep_t fhp, \
4471.45Scube			    netbsd32_stat13p_t sb); }
4481.26Scube300	COMPAT_20	{ int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
4491.11Seeh			    netbsd32_statp_t buf); }
4501.11Seeh#if defined(SYSVSEM) || !defined(_KERNEL)
4511.12Schristos301	STD		{ int netbsd32___semctl14(int semid, int semnum, int cmd, \
4521.43Scube			    ... netbsd32_semunp_t arg); }
4531.11Seeh#else
4541.12Schristos301	EXCL		__semctl14
4551.11Seeh#endif
4561.11Seeh#if defined(SYSVMSG) || !defined(_KERNEL)
4571.11Seeh302	STD		{ int netbsd32___msgctl13(int msqid, int cmd, \
4581.11Seeh			    netbsd32_msqid_dsp_t buf); }
4591.11Seeh#else
4601.11Seeh302	EXCL		__msgctl13
4611.11Seeh#endif
4621.11Seeh#if defined(SYSVSHM) || !defined(_KERNEL)
4631.11Seeh303	STD		{ int netbsd32___shmctl13(int shmid, int cmd, \
4641.11Seeh			    netbsd32_shmid_dsp_t buf); }
4651.11Seeh#else
4661.11Seeh303	EXCL		__shmctl13
4671.11Seeh#endif
4681.64Sdsl304	STD		{ int netbsd32_lchflags(netbsd32_charp path, netbsd32_u_long flags); }
4691.69Sad305	NOARGS 		{ int sys_issetugid(void); }
4701.64Sdsl306	STD		{ int netbsd32_utrace(netbsd32_charp label, netbsd32_voidp addr, \
4711.19Skleink			    netbsd32_size_t len); }
4721.24Sfvdl307	STD		{ int netbsd32_getcontext(netbsd32_ucontextp ucp); }
4731.24Sfvdl308	STD		{ int netbsd32_setcontext(netbsd32_ucontextp ucp, \
4741.24Sfvdl			    uint32_t flags, netbsd32_lwpidp new_lwp); }
4751.64Sdsl309	STD		{ int netbsd32__lwp_create(netbsd32_ucontextp ucp, \
4761.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
4771.44Scube310	NOARGS		{ int sys__lwp_exit(void); }
4781.69Sad311	NOARGS 		{ lwpid_t sys__lwp_self(void); }
4791.69Sad312	STD 		{ int netbsd32__lwp_wait(lwpid_t wait_for, \
4801.44Scube			    netbsd32_lwpidp departed); }
4811.69Sad313	STD 		{ int netbsd32__lwp_suspend(lwpid_t target); }
4821.69Sad314	STD 		{ int netbsd32__lwp_continue(lwpid_t target); }
4831.69Sad315	STD 		{ int netbsd32__lwp_wakeup(lwpid_t target); }
4841.69Sad316	NOARGS 		{ void *sys__lwp_getprivate(void); }
4851.69Sad317	STD 		{ void netbsd32__lwp_setprivate(netbsd32_voidp ptr); }
4861.56Scube318	STD		{ int netbsd32__lwp_kill(lwpid_t target, int signo); }
4871.69Sad319	STD 		{ int netbsd32__lwp_detach(lwpid_t target); }
4881.69Sad320	STD 		{ int netbsd32__lwp_park(netbsd32_timespecp_t ts, \
4891.64Sdsl				lwpid_t unpark, netbsd32_voidp hint, \
4901.64Sdsl				netbsd32_voidp unparkhint); }
4911.69Sad321	STD 		{ int netbsd32__lwp_unpark(lwpid_t target, netbsd32_voidp hint); }
4921.69Sad322	STD 		{ netbsd32_size_t netbsd32__lwp_unpark_all(netbsd32_lwpidp targets, \
4931.64Sdsl				netbsd32_size_t ntargets, netbsd32_voidp hint); }
4941.63Sad323	STD		{ int netbsd32__lwp_setname(lwpid_t target, \
4951.64Sdsl				netbsd32_charp name); }
4961.63Sad324	STD		{ int netbsd32__lwp_getname(lwpid_t target, \
4971.63Sad				netbsd32_charp name, netbsd32_size_t len); }
4981.63Sad325	STD 		{ int netbsd32__lwp_ctl(int features, \
4991.63Sad				netbsd32_pointer_t address); }
5001.18Smrg326	UNIMPL
5011.18Smrg327	UNIMPL
5021.18Smrg328	UNIMPL
5031.18Smrg329	UNIMPL
5041.70Swrstuden330	STD		{ int netbsd32_sa_register(netbsd32_sa_upcall_t new, \
5051.70Swrstuden			    netbsd32_sa_upcallp_t old, int flags, \
5061.70Swrstuden			    netbsd32_ssize_t stackinfo_offset); }
5071.70Swrstuden331	STD		{ int netbsd32_sa_stacks(int num, netbsd32_stackp_t stacks); }
5081.70Swrstuden332	NOARGS		{ int sys_sa_enable(void); }
5091.70Swrstuden333	STD		{ int netbsd32_sa_setconcurrency(int concurrency); }
5101.70Swrstuden334	NOARGS		{ int sys_sa_yield(void); }
5111.70Swrstuden335	STD		{ int netbsd32_sa_preempt(int sa_id); }
5121.44Scube336	OBSOL		sys_sa_unblockyield
5131.18Smrg337	UNIMPL
5141.18Smrg338	UNIMPL
5151.18Smrg339	UNIMPL
5161.22Sscw340	STD		{ int netbsd32___sigaction_sigtramp(int signum, \
5171.64Sdsl			    netbsd32_sigactionp_t nsa, \
5181.22Sscw			    netbsd32_sigactionp_t osa, \
5191.22Sscw			    netbsd32_voidp tramp, int vers); }
5201.26Scube341	UNIMPL
5211.26Scube342	UNIMPL
5221.59Schristos343	STD		{ int netbsd32_rasctl(netbsd32_caddr_t addr, netbsd32_size_t len, \
5231.34Scube			    int op); }
5241.40Scube344	NOARGS		{ int sys_kqueue(void); }
5251.40Scube345	STD		{ int netbsd32_kevent(int fd, \
5261.40Scube			    netbsd32_keventp_t changelist, netbsd32_size_t nchanges, \
5271.40Scube			    netbsd32_keventp_t eventlist, netbsd32_size_t nevents, \
5281.40Scube			    netbsd32_timespecp_t timeout); }
5291.74Smrg; Scheduling system calls.
5301.74Smrg346	STD 		{ int netbsd32__sched_setparam(pid_t pid, lwpid_t lid, \
5311.74Smrg			    int policy, const netbsd32_sched_paramp_t params); }
5321.74Smrg347	STD 		{ int netbsd32__sched_getparam(pid_t pid, lwpid_t lid, \
5331.74Smrg			    netbsd32_intp policy, netbsd32_sched_paramp_t params); }
5341.74Smrg348	STD 		{ int netbsd32__sched_setaffinity(pid_t pid, lwpid_t lid, \
5351.74Smrg			    netbsd32_size_t size, const netbsd32_cpusetp_t cpuset); }
5361.74Smrg349	STD 		{ int netbsd32__sched_getaffinity(pid_t pid, lwpid_t lid, \
5371.74Smrg			    netbsd32_size_t size, netbsd32_cpusetp_t cpuset); }
5381.69Sad350	NOARGS 		{ int sys_sched_yield(void); }
5391.26Scube351	UNIMPL
5401.26Scube352	UNIMPL
5411.26Scube353	UNIMPL
5421.33Scube354	STD		{ int netbsd32_fsync_range(int fd, int flags, off_t start, \
5431.33Scube			    off_t length); }
5441.28Scube355	STD		{ int netbsd32_uuidgen(netbsd32_uuidp_t store, int count); }
5451.26Scube356	STD		{ int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \
5461.26Scube			    netbsd32_size_t bufsize, int flags); }
5471.64Sdsl357	STD		{ int netbsd32_statvfs1(netbsd32_charp path, \
5481.26Scube			    netbsd32_statvfsp_t buf, int flags); }
5491.26Scube358	STD		{ int netbsd32_fstatvfs1(int fd, netbsd32_statvfsp_t buf, \
5501.26Scube			    int flags); }
5511.64Sdsl359	COMPAT_30	{ int netbsd32_fhstatvfs1(netbsd32_fhandlep_t fhp, \
5521.26Scube			    netbsd32_statvfsp_t buf, int flags); }
5531.64Sdsl360	STD		{ int netbsd32_extattrctl(netbsd32_charp path, \
5541.64Sdsl			    int cmd, netbsd32_charp filename, int attrnamespace, \
5551.64Sdsl			    netbsd32_charp attrname); }
5561.64Sdsl361	STD		{ int netbsd32_extattr_set_file(netbsd32_charp path, \
5571.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5581.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5591.64Sdsl362	STD		{ int netbsd32_extattr_get_file(netbsd32_charp path, \
5601.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5611.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5621.64Sdsl363	STD		{ int netbsd32_extattr_delete_file(netbsd32_charp path, \
5631.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
5641.29Scube364	STD		{ int netbsd32_extattr_set_fd(int fd, \
5651.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5661.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5671.29Scube365	STD		{ int netbsd32_extattr_get_fd(int fd, \
5681.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5691.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5701.29Scube366	STD		{ int netbsd32_extattr_delete_fd(int fd, \
5711.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
5721.64Sdsl367	STD		{ int netbsd32_extattr_set_link(netbsd32_charp path, \
5731.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5741.64Sdsl			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5751.64Sdsl368	STD		{ int netbsd32_extattr_get_link(netbsd32_charp path, \
5761.64Sdsl			    int attrnamespace, netbsd32_charp attrname, \
5771.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
5781.64Sdsl369	STD		{ int netbsd32_extattr_delete_link(netbsd32_charp path, \
5791.64Sdsl			    int attrnamespace, netbsd32_charp attrname); }
5801.29Scube370	STD		{ int netbsd32_extattr_list_fd(int fd, \
5811.29Scube			    int attrnamespace, netbsd32_voidp data, \
5821.29Scube			    netbsd32_size_t nbytes); }
5831.64Sdsl371	STD		{ int netbsd32_extattr_list_file(netbsd32_charp path, \
5841.29Scube			    int attrnamespace, netbsd32_voidp data, \
5851.29Scube			    netbsd32_size_t nbytes); }
5861.64Sdsl372	STD		{ int netbsd32_extattr_list_link(netbsd32_charp path, \
5871.29Scube			    int attrnamespace, netbsd32_voidp data, \
5881.29Scube			    netbsd32_size_t nbytes); }
5891.31Scube373	STD		{ int netbsd32_pselect(int nd, netbsd32_fd_setp_t in, \
5901.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
5911.64Sdsl			    netbsd32_timespecp_t ts, netbsd32_sigsetp_t mask); }
5921.31Scube374	STD		{ int netbsd32_pollts(netbsd32_pollfdp_t fds, u_int nfds, \
5931.64Sdsl			    netbsd32_timespecp_t ts, netbsd32_sigsetp_t mask); }
5941.64Sdsl375	STD		{ int netbsd32_setxattr(netbsd32_charp path, \
5951.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
5961.35Scube			    netbsd32_size_t size, int flags); }
5971.64Sdsl376	STD		{ int netbsd32_lsetxattr(netbsd32_charp path, \
5981.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
5991.35Scube			    netbsd32_size_t size, int flags); }
6001.35Scube377	STD		{ int netbsd32_fsetxattr(int fd, \
6011.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
6021.35Scube			    netbsd32_size_t size, int flags); }
6031.64Sdsl378	STD		{ int netbsd32_getxattr(netbsd32_charp path, \
6041.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
6051.35Scube			    netbsd32_size_t size); }
6061.64Sdsl379	STD		{ int netbsd32_lgetxattr(netbsd32_charp path, \
6071.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
6081.35Scube			    netbsd32_size_t size); }
6091.35Scube380	STD		{ int netbsd32_fgetxattr(int fd, \
6101.64Sdsl			    netbsd32_charp name, netbsd32_voidp value, \
6111.35Scube			    netbsd32_size_t size); }
6121.64Sdsl381	STD		{ int netbsd32_listxattr(netbsd32_charp path, \
6131.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6141.64Sdsl382	STD		{ int netbsd32_llistxattr(netbsd32_charp path, \
6151.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6161.35Scube383	STD		{ int netbsd32_flistxattr(int fd, \
6171.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6181.64Sdsl384	STD		{ int netbsd32_removexattr(netbsd32_charp path, \
6191.64Sdsl			    netbsd32_charp name); }
6201.64Sdsl385	STD		{ int netbsd32_lremovexattr(netbsd32_charp path, \
6211.64Sdsl			    netbsd32_charp name); }
6221.35Scube386	STD		{ int netbsd32_fremovexattr(int fd, \
6231.64Sdsl			    netbsd32_charp name); }
6241.64Sdsl387     STD             { int netbsd32_sys___stat30(netbsd32_charp path, \
6251.38Schristos			    netbsd32_statp_t ub); }
6261.38Schristos388     STD             { int netbsd32_sys___fstat30(int fd, \
6271.38Schristos			    netbsd32_statp_t sb); }
6281.38Schristos389     STD             { int netbsd32_sys___lstat30( \
6291.64Sdsl			    netbsd32_charp path, netbsd32_statp_t ub); }
6301.38Schristos390     STD             { int netbsd32_sys___getdents30(int fd, \
6311.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
6321.68Smartin391	IGNORED		old posix fadvise
6331.51Smartin392	COMPAT_30	{ int netbsd32_sys___fhstat30( \
6341.64Sdsl			    netbsd32_fhandlep_t fhp, \
6351.45Scube			    netbsd32_statp_t sb); }
6361.47Sdrochner393	STD		{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
6371.48Smrg394	STD		{ int netbsd32_sys___socket30(int domain, int type, int protocol); }
6381.64Sdsl395	STD		{ int netbsd32___getfh30(netbsd32_charp fname, netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
6391.64Sdsl396	STD		{ int netbsd32___fhopen40(netbsd32_pointer_t fhp, \
6401.51Smartin			    netbsd32_size_t fh_size, int flags); }
6411.51Smartin397	STD		{ int netbsd32___fhstatvfs140(	\
6421.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
6431.51Smartin			    netbsd32_statvfsp_t buf, int flags); }
6441.51Smartin398	STD		{ int netbsd32___fhstat40(	\
6451.51Smartin			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
6461.51Smartin			    netbsd32_statp_t sb); }
6471.65Sdsl
6481.65Sdsl; Asynchronous I/O system calls
6491.65Sdsl399	UNIMPL	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
6501.65Sdsl400	UNIMPL	{ int sys_aio_error(const struct aiocb *aiocbp); }
6511.65Sdsl401	UNIMPL	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
6521.65Sdsl402	UNIMPL	{ int sys_aio_read(struct aiocb *aiocbp); }
6531.65Sdsl403	UNIMPL	{ int sys_aio_return(struct aiocb *aiocbp); }
6541.65Sdsl404	UNIMPL	{ int sys_aio_suspend(const struct aiocb *const *list, \
6551.65Sdsl			    int nent, const struct timespec *timeout); }
6561.65Sdsl405	UNIMPL	{ int sys_aio_write(struct aiocb *aiocbp); }
6571.65Sdsl406	UNIMPL	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
6581.65Sdsl			    int nent, struct sigevent *sig); }
6591.65Sdsl
6601.65Sdsl407	UNIMPL
6611.65Sdsl408	UNIMPL
6621.65Sdsl409	UNIMPL
6631.65Sdsl
6641.65Sdsl410	UNIMPL		{ int sys___mount50(const char *type, \
6651.65Sdsl			    const char *path, int flags, void *data, \
6661.65Sdsl			    size_t data_len); }
6671.69Sad411	STD 		{ netbsd32_voidp netbsd32_mremap( \
6681.65Sdsl			    netbsd32_voidp old_address, \
6691.65Sdsl			    netbsd32_size_t old_size, \
6701.65Sdsl			    netbsd32_voidp new_address, \
6711.65Sdsl			    netbsd32_size_t new_size, int flags); }
6721.67Smartin
6731.67Smartin412	UNIMPL
6741.67Smartin413	UNIMPL
6751.67Smartin414	UNIMPL
6761.67Smartin415	UNIMPL
6771.67Smartin
6781.69Sad416	STD 		{ int netbsd32___posix_fadvise50(int fd, int pad, \
6791.67Smartin			    off_t offset, off_t len, int advice); }
680