syscalls.master revision 1.47
11.47Sdrochner	$NetBSD: syscalls.master,v 1.47 2006/05/31 09:52:27 drochner 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.1Smrg;	type	one of STD, OBSOL, UNIMPL, 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.1Smrg;	UNIMPL	unimplemented, not included in system
181.8Schristos;	EXCL	implemented, but not included in system
191.1Smrg;	NODEF	included, but don't define the syscall number
201.1Smrg;	NOARGS	included, but don't define the syscall args structure
211.1Smrg;	INDIR	included, but don't define the syscall args structure,
221.1Smrg;		and allow it to be "really" varargs.
231.1Smrg;
241.1Smrg; The compat options are defined in the syscalls.conf file, and the
251.1Smrg; compat option name is prefixed to the syscall name.  Other than
261.1Smrg; that, they're like NODEF (for 'compat' options), or STD (for
271.1Smrg; 'libcompat' options).
281.1Smrg;
291.1Smrg; The type-dependent arguments are as follows:
301.1Smrg; For STD, NODEF, NOARGS, and compat syscalls:
311.1Smrg;	{ pseudo-proto } [alias]
321.1Smrg; For other syscalls:
331.1Smrg;	[comment]
341.1Smrg;
351.1Smrg; #ifdef's, etc. may be included, and are copied to the output files.
361.1Smrg; #include's are copied to the syscall names and switch definition files only.
371.1Smrg
381.20Smrg#if defined(_KERNEL_OPT)
391.1Smrg#include "opt_ktrace.h"
401.1Smrg#include "opt_nfsserver.h"
411.1Smrg#include "opt_compat_netbsd.h"
421.3Seeh#include "opt_ntp.h"
431.4Stron#include "opt_sysv.h"
441.5Schristos#include "opt_compat_43.h"
451.42Scube#include "opt_posix.h"
461.1Smrg
471.1Smrg#include "fs_lfs.h"
481.1Smrg#include "fs_nfs.h"
491.16Smycroft#endif
501.1Smrg
511.1Smrg#include <sys/param.h>
521.1Smrg#include <sys/systm.h>
531.1Smrg#include <sys/signal.h>
541.1Smrg#include <sys/mount.h>
551.23Sthorpej#include <sys/sa.h>
561.1Smrg#include <sys/syscallargs.h>
571.1Smrg
581.7Smrg#include <compat/netbsd32/netbsd32.h>
591.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h>
601.16Smycroft
611.16Smycroft%%
621.1Smrg
631.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive
641.1Smrg; are reserved for use in future Berkeley releases.
651.1Smrg; Additional system calls implemented in vendor and other
661.1Smrg; redistributions should be placed in the reserved range at the end
671.1Smrg; of the current calls.
681.1Smrg
691.1Smrg0	INDIR		{ int sys_syscall(int number, ...); }
701.10Seeh1	STD		{ void netbsd32_exit(int rval); }
711.1Smrg2	NOARGS		{ int sys_fork(void); }
721.10Seeh3	STD		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
731.10Seeh4	STD		{ netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
741.10Seeh5	STD		{ int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
751.10Seeh6	STD		{ int netbsd32_close(int fd); }
761.10Seeh7	STD		{ int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
771.10Seeh8	COMPAT_43	{ int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
781.10Seeh9	STD		{ int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
791.10Seeh10	STD		{ int netbsd32_unlink(const netbsd32_charp path); }
801.1Smrg11	OBSOL		execv
811.10Seeh12	STD		{ int netbsd32_chdir(const netbsd32_charp path); }
821.10Seeh13	STD		{ int netbsd32_fchdir(int fd); }
831.10Seeh14	STD		{ int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
841.10Seeh15	STD		{ int netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
851.10Seeh16	STD		{ int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
861.10Seeh17	STD		{ int netbsd32_break(netbsd32_charp nsize); }
871.26Scube18	COMPAT_20	{ int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
881.10Seeh19	COMPAT_43	{ netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
891.17Sthorpej20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
901.10Seeh21	STD		{ int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
911.10Seeh22	STD		{ int netbsd32_unmount(const netbsd32_charp path, int flags); }
921.10Seeh23	STD		{ int netbsd32_setuid(uid_t uid); }
931.1Smrg24	NOARGS		{ uid_t sys_getuid(void); }
941.1Smrg25	NOARGS		{ uid_t sys_geteuid(void); }
951.10Seeh26	STD		{ int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
961.10Seeh27	STD		{ netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
971.10Seeh28	STD		{ netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
981.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); }
991.10Seeh30	STD		{ int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
1001.10Seeh31	STD		{ int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1011.10Seeh32	STD		{ int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
1021.10Seeh33	STD		{ int netbsd32_access(const netbsd32_charp path, int flags); }
1031.10Seeh34	STD		{ int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
1041.10Seeh35	STD		{ int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
1051.1Smrg36	NOARGS		{ void sys_sync(void); }
1061.10Seeh37	STD		{ int netbsd32_kill(int pid, int signum); }
1071.10Seeh38	COMPAT_43	{ int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
1081.1Smrg39	NOARGS		{ pid_t sys_getppid(void); }
1091.10Seeh40	COMPAT_43	{ int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
1101.10Seeh41	STD		{ int netbsd32_dup(int fd); }
1111.1Smrg42	NOARGS		{ int sys_pipe(void); }
1121.1Smrg43	NOARGS		{ gid_t sys_getegid(void); }
1131.10Seeh44	STD		{ int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
1141.8Schristos#if defined(KTRACE) || !defined(_KERNEL)
1151.10Seeh45	STD		{ int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
1161.1Smrg#else
1171.10Seeh45	EXCL		netbsd32_ktrace
1181.1Smrg#endif
1191.10Seeh46	STD		{ int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
1201.1Smrg47	NOARGS		{ gid_t sys_getgid(void); }
1211.10Seeh48	COMPAT_13	{ int netbsd32_sigprocmask(int how, \
1221.3Seeh			    int mask); } sigprocmask13
1231.10Seeh49	STD		{ int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
1241.10Seeh50	STD		{ int netbsd32_setlogin(const netbsd32_charp namebuf); }
1251.10Seeh51	STD		{ int netbsd32_acct(const netbsd32_charp path); }
1261.3Seeh52	COMPAT_13	{ int sys_sigpending(void); } sigpending13
1271.10Seeh53	COMPAT_13	{ int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
1281.10Seeh54	STD		{ int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
1291.10Seeh55	COMPAT_12	{ int netbsd32_reboot(int opt); }
1301.10Seeh56	STD		{ int netbsd32_revoke(const netbsd32_charp path); }
1311.10Seeh57	STD		{ int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
1321.10Seeh58	STD		{ int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
1331.10Seeh59	STD		{ int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
1341.10Seeh60	STD		{ mode_t netbsd32_umask(mode_t newmask); }
1351.10Seeh61	STD		{ int netbsd32_chroot(const netbsd32_charp path); }
1361.10Seeh62	COMPAT_43	{ int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
1371.10Seeh63	COMPAT_43	{ int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
1381.1Smrg64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
1391.10Seeh65	COMPAT_12	{ int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
1401.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
1411.1Smrg66	NOARGS		{ int sys_vfork(void); }
1421.1Smrg67	OBSOL		vread
1431.1Smrg68	OBSOL		vwrite
1441.10Seeh69	STD		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
1451.10Seeh70	STD		{ int netbsd32_sstk(int incr); }
1461.10Seeh71	COMPAT_43	{ int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
1471.10Seeh72	STD		{ int netbsd32_ovadvise(int anom); } vadvise
1481.10Seeh73	STD		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
1491.10Seeh74	STD		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
1501.10Seeh75	STD		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
1511.1Smrg76	OBSOL		vhangup
1521.1Smrg77	OBSOL		vlimit
1531.10Seeh78	STD		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
1541.10Seeh79	STD		{ int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
1551.10Seeh80	STD		{ int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
1561.1Smrg81	NOARGS		{ int sys_getpgrp(void); }
1571.10Seeh82	STD		{ int netbsd32_setpgid(int pid, int pgid); }
1581.10Seeh83	STD		{ int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
1591.1Smrg84	COMPAT_43	{ int sys_wait(void); } owait
1601.10Seeh85	COMPAT_12	{ int netbsd32_oswapon(const netbsd32_charp name); }
1611.10Seeh86	STD		{ int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
1621.10Seeh87	COMPAT_43	{ int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
1631.10Seeh88	COMPAT_43	{ int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
1641.1Smrg89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
1651.10Seeh90	STD		{ int netbsd32_dup2(int from, int to); }
1661.1Smrg91	UNIMPL		getdopt
1671.10Seeh92	STD		{ int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
1681.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); }
1691.1Smrg94	UNIMPL		setdopt
1701.10Seeh95	STD		{ int netbsd32_fsync(int fd); }
1711.10Seeh96	STD		{ int netbsd32_setpriority(int which, int who, int prio); }
1721.10Seeh97	STD		{ int netbsd32_socket(int domain, int type, int protocol); }
1731.10Seeh98	STD		{ int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
1741.10Seeh99	COMPAT_43	{ int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
1751.10Seeh100	STD		{ int netbsd32_getpriority(int which, int who); }
1761.10Seeh101	COMPAT_43	{ int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
1771.10Seeh102	COMPAT_43	{ int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
1781.11Seeh103	COMPAT_13	{ int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
1791.10Seeh104	STD		{ int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
1801.10Seeh105	STD		{ int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
1811.10Seeh106	STD		{ int netbsd32_listen(int s, int backlog); }
1821.1Smrg107	OBSOL		vtimes
1831.10Seeh108	COMPAT_43	{ int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
1841.25Schs#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
1851.10Seeh109	COMPAT_43	{ int netbsd32_sigblock(int mask); }
1861.10Seeh110	COMPAT_43	{ int netbsd32_sigsetmask(int mask); }
1871.1Smrg#else
1881.1Smrg109	OBSOL		sigblock
1891.1Smrg110	OBSOL		sigsetmask
1901.1Smrg#endif
1911.10Seeh111	COMPAT_13	{ int netbsd32_sigsuspend(int mask); } sigsuspend13
1921.10Seeh112	COMPAT_43	{ int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
1931.10Seeh113	COMPAT_43	{ int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
1941.10Seeh114	COMPAT_43	{ int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
1951.1Smrg115	OBSOL		vtrace
1961.10Seeh116	STD		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
1971.10Seeh117	STD		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
1981.10Seeh118	STD		{ int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
1991.1Smrg119	OBSOL		resuba
2001.10Seeh120	STD		{ netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
2011.10Seeh121	STD		{ netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
2021.10Seeh122	STD		{ int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
2031.10Seeh123	STD		{ int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
2041.10Seeh124	STD		{ int netbsd32_fchmod(int fd, mode_t mode); }
2051.10Seeh125	COMPAT_43	{ int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
2061.10Seeh126	STD		{ int netbsd32_setreuid(uid_t ruid, uid_t euid); }
2071.10Seeh127	STD		{ int netbsd32_setregid(gid_t rgid, gid_t egid); }
2081.10Seeh128	STD		{ int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
2091.10Seeh129	COMPAT_43	{ int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
2101.10Seeh130	COMPAT_43	{ int netbsd32_oftruncate(int fd, netbsd32_long length); }
2111.10Seeh131	STD		{ int netbsd32_flock(int fd, int how); }
2121.10Seeh132	STD		{ int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
2131.10Seeh133	STD		{ netbsd32_ssize_t netbsd32_sendto(int s, const netbsd32_voidp buf, netbsd32_size_t len, int flags, const netbsd32_sockaddrp_t to, int tolen); }
2141.10Seeh134	STD		{ int netbsd32_shutdown(int s, int how); }
2151.10Seeh135	STD		{ int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
2161.10Seeh136	STD		{ int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
2171.10Seeh137	STD		{ int netbsd32_rmdir(const netbsd32_charp path); }
2181.10Seeh138	STD		{ int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
2191.1Smrg139	OBSOL		4.2 sigreturn
2201.10Seeh140	STD		{ int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
2211.10Seeh141	COMPAT_43	{ int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
2221.1Smrg142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
2231.25Schs#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
2241.10Seeh143	COMPAT_43	{ int netbsd32_sethostid(int32_t hostid); }
2251.1Smrg#else
2261.1Smrg143	OBSOL		sethostid
2271.1Smrg#endif
2281.10Seeh144	COMPAT_43	{ int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
2291.10Seeh145	COMPAT_43	{ int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
2301.25Schs#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
2311.10Seeh146	COMPAT_43	{ int netbsd32_killpg(int pgid, int signum); }
2321.1Smrg#else
2331.1Smrg146	OBSOL		killpg
2341.1Smrg#endif
2351.1Smrg147	NOARGS		{ int sys_setsid(void); }
2361.10Seeh148	STD		{ int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
2371.1Smrg149	COMPAT_43	{ int sys_quota(void); } oquota
2381.10Seeh150	COMPAT_43	{ int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
2391.1Smrg
2401.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific
2411.1Smrg; system calls.  (This includes various calls added for compatibity
2421.1Smrg; with other Unix variants.)
2431.1Smrg; Some of these calls are now supported by BSD...
2441.1Smrg151	UNIMPL
2451.1Smrg152	UNIMPL
2461.1Smrg153	UNIMPL
2471.1Smrg154	UNIMPL
2481.8Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
2491.10Seeh155	STD		{ int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
2501.1Smrg#else
2511.10Seeh155	EXCL		netbsd32_nfssvc
2521.1Smrg#endif
2531.10Seeh156	COMPAT_43	{ int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
2541.26Scube157	COMPAT_20	{ int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
2551.26Scube158	COMPAT_20	{ int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
2561.1Smrg159	UNIMPL
2571.1Smrg160	UNIMPL
2581.8Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
2591.10Seeh161	STD		{ int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
2601.1Smrg#else
2611.10Seeh161	EXCL		netbsd32_getfh
2621.1Smrg#endif
2631.10Seeh162	COMPAT_09	{ int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
2641.10Seeh163	COMPAT_09	{ int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
2651.10Seeh164	COMPAT_09	{ int netbsd32_uname(netbsd32_outsnamep_t name); }
2661.10Seeh165	STD		{ int netbsd32_sysarch(int op, netbsd32_voidp parms); }
2671.1Smrg166	UNIMPL
2681.1Smrg167	UNIMPL
2691.1Smrg168	UNIMPL
2701.21Smrg#if defined(SYSVSEM) || !defined(_KERNEL)
2711.21Smrg169	COMPAT_10	{ int netbsd32_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
2721.1Smrg#else
2731.21Smrg169	EXCL		netbsd32_sys_semsys
2741.1Smrg#endif
2751.21Smrg#if defined(SYSVMSG) || !defined(_KERNEL)
2761.21Smrg170	COMPAT_10	{ int netbsd32_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
2771.1Smrg#else
2781.21Smrg170	EXCL		netbsd32_sys_msgsys
2791.1Smrg#endif
2801.21Smrg#if defined(SYSVSHM) || !defined(_KERNEL)
2811.21Smrg171	COMPAT_10	{ int netbsd32_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
2821.1Smrg#else
2831.21Smrg171	EXCL		netbsd32_sys_shmsys
2841.1Smrg#endif
2851.1Smrg172	UNIMPL
2861.10Seeh173	STD		{ netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
2871.10Seeh174	STD		{ netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
2881.47Sdrochner175	COMPAT_30	{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
2891.10Seeh176	STD		{ int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
2901.1Smrg177	UNIMPL
2911.1Smrg178	UNIMPL
2921.1Smrg179	UNIMPL
2931.1Smrg180	UNIMPL
2941.1Smrg
2951.1Smrg; Syscalls 180-199 are used by/reserved for BSD
2961.10Seeh181	STD		{ int netbsd32_setgid(gid_t gid); }
2971.10Seeh182	STD		{ int netbsd32_setegid(gid_t egid); }
2981.10Seeh183	STD		{ int netbsd32_seteuid(uid_t euid); }
2991.8Schristos#if defined(LFS) || !defined(_KERNEL)
3001.10Seeh184	STD		{ int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
3011.10Seeh185	STD		{ int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
3021.10Seeh186	STD		{ int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
3031.10Seeh187	STD		{ int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
3041.10Seeh#else
3051.10Seeh184	EXCL		netbsd32_sys_lfs_bmapv
3061.10Seeh185	EXCL		netbsd32_sys_lfs_markv
3071.10Seeh186	EXCL		netbsd32_sys_lfs_segclean
3081.10Seeh187	EXCL		netbsd32_sys_lfs_segwait
3091.10Seeh#endif
3101.10Seeh188	COMPAT_12	{ int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
3111.10Seeh189	COMPAT_12	{ int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
3121.10Seeh190	COMPAT_12	{ int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
3131.10Seeh191	STD		{ netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); }
3141.10Seeh192	STD		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
3151.1Smrg193	UNIMPL
3161.10Seeh194	STD		{ int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
3171.10Seeh195	STD		{ int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
3181.10Seeh196	COMPAT_12	{ int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
3191.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); }
3201.1Smrg198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
3211.10Seeh199	STD		{ off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
3221.10Seeh200	STD		{ int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
3231.10Seeh201	STD		{ int netbsd32_ftruncate(int fd, int pad, off_t length); }
3241.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); }
3251.10Seeh203	STD		{ int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
3261.10Seeh204	STD		{ int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
3271.10Seeh205	STD		{ int netbsd32_undelete(const netbsd32_charp path); }
3281.10Seeh206	STD		{ int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
3291.10Seeh207	STD		{ int netbsd32_getpgid(pid_t pid); }
3301.10Seeh208	STD		{ int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
3311.10Seeh209	STD		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
3321.1Smrg;
3331.1Smrg; Syscalls 210-219 are reserved for dynamically loaded syscalls
3341.1Smrg;
3351.8Schristos#if defined(LKM) || !defined(_KERNEL)
3361.1Smrg210	NODEF		{ int sys_lkmnosys(void); }
3371.1Smrg211	NODEF		{ int sys_lkmnosys(void); }
3381.1Smrg212	NODEF		{ int sys_lkmnosys(void); }
3391.1Smrg213	NODEF		{ int sys_lkmnosys(void); }
3401.1Smrg214	NODEF		{ int sys_lkmnosys(void); }
3411.1Smrg215	NODEF		{ int sys_lkmnosys(void); }
3421.1Smrg216	NODEF		{ int sys_lkmnosys(void); }
3431.1Smrg217	NODEF		{ int sys_lkmnosys(void); }
3441.1Smrg218	NODEF		{ int sys_lkmnosys(void); }
3451.1Smrg219	NODEF		{ int sys_lkmnosys(void); }
3461.8Schristos#else	/* !LKM || !_KERNEL */
3471.8Schristos210	EXCL		lkmnosys
3481.8Schristos211	EXCL		lkmnosys
3491.8Schristos212	EXCL		lkmnosys
3501.8Schristos213	EXCL		lkmnosys
3511.8Schristos214	EXCL		lkmnosys
3521.8Schristos215	EXCL		lkmnosys
3531.8Schristos216	EXCL		lkmnosys
3541.8Schristos217	EXCL		lkmnosys
3551.8Schristos218	EXCL		lkmnosys
3561.8Schristos219	EXCL		lkmnosys
3571.8Schristos#endif	/* !LKM || !_KERNEL */
3581.1Smrg; System calls 220-300 are reserved for use by NetBSD
3591.8Schristos#if defined(SYSVSEM) || !defined(_KERNEL)
3601.10Seeh220	COMPAT_14	{ int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
3611.10Seeh221	STD		{ int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
3621.10Seeh222	STD		{ int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
3631.10Seeh223	STD		{ int netbsd32_semconfig(int flag); }
3641.10Seeh#else
3651.11Seeh220	EXCL		compat_14_netbsd32_semctl
3661.10Seeh221	EXCL		netbsd32_semget
3671.10Seeh222	EXCL		netbsd32_semop
3681.10Seeh223	EXCL		netbsd32_semconfig
3691.1Smrg#endif
3701.8Schristos#if defined(SYSVMSG) || !defined(_KERNEL)
3711.10Seeh224	COMPAT_14	{ int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
3721.10Seeh225	STD		{ int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
3731.10Seeh226	STD		{ int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
3741.10Seeh227	STD		{ netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
3751.10Seeh#else
3761.11Seeh224	EXCL		compat_14_netbsd32_msgctl
3771.10Seeh225	EXCL		netbsd32_msgget
3781.10Seeh226	EXCL		netbsd32_msgsnd
3791.10Seeh227	EXCL		netbsd32_msgrcv
3801.1Smrg#endif
3811.8Schristos#if defined(SYSVSHM) || !defined(_KERNEL)
3821.10Seeh228	STD		{ netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
3831.10Seeh229	COMPAT_14		{ int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
3841.10Seeh230	STD		{ int netbsd32_shmdt(const netbsd32_voidp shmaddr); }
3851.10Seeh231	STD		{ int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
3861.10Seeh#else
3871.10Seeh228	EXCL		netbsd32_shmat
3881.11Seeh229	EXCL		compat_14_netbsd32_shmctl
3891.10Seeh230	EXCL		netbsd32_shmdt
3901.10Seeh231	EXCL		netbsd32_shmget
3911.10Seeh#endif
3921.10Seeh232	STD		{ int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
3931.10Seeh233	STD		{ int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
3941.10Seeh234	STD		{ int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
3951.36Scube235	STD		{ int netbsd32_timer_create(netbsd32_clockid_t clock_id, netbsd32_sigeventp_t evp, \
3961.36Scube			    netbsd32_timerp_t timerid); }
3971.36Scube236	STD		{ int netbsd32_timer_delete(netbsd32_timer_t timerid); }
3981.36Scube237	STD		{ int netbsd32_timer_settime(netbsd32_timer_t timerid, int flags, \
3991.36Scube			    const netbsd32_itimerspecp_t value, \
4001.36Scube			    netbsd32_itimerspecp_t ovalue); }
4011.36Scube238	STD		{ int netbsd32_timer_gettime(netbsd32_timer_t timerid, netbsd32_itimerspecp_t value); }
4021.36Scube239	STD		{ int netbsd32_timer_getoverrun(netbsd32_timer_t timerid); }
4031.1Smrg;
4041.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
4051.1Smrg;
4061.10Seeh240	STD		{ int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
4071.10Seeh241	STD		{ int netbsd32_fdatasync(int fd); }
4081.30Scube242	STD		{ int netbsd32_mlockall(int flags); }
4091.30Scube243	NOARGS		{ int sys_munlockall(void); }
4101.37Scube244	STD		{ int netbsd32___sigtimedwait(const netbsd32_sigsetp_t set, \
4111.37Scube			    netbsd32_siginfop_t info, \
4121.37Scube			    netbsd32_timespecp_t timeout); }
4131.1Smrg245	UNIMPL
4141.1Smrg246	UNIMPL
4151.42Scube#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
4161.42Scube247	STD		{ int netbsd32__ksem_init(unsigned int value, netbsd32_semidp_t idp); }
4171.42Scube248	STD		{ int netbsd32__ksem_open(const netbsd32_charp name, int oflag, \
4181.42Scube			    mode_t mode, unsigned int value, netbsd32_semidp_t idp); }
4191.42Scube249	STD		{ int netbsd32__ksem_unlink(const netbsd32_charp name); }
4201.42Scube250	STD		{ int netbsd32__ksem_close(netbsd32_semid_t id); }
4211.42Scube251	STD		{ int netbsd32__ksem_post(netbsd32_semid_t id); }
4221.42Scube252	STD		{ int netbsd32__ksem_wait(netbsd32_semid_t id); }
4231.42Scube253	STD		{ int netbsd32__ksem_trywait(netbsd32_semid_t id); }
4241.42Scube254	STD		{ int netbsd32__ksem_getvalue(netbsd32_semid_t id, \
4251.42Scube			    netbsd32_intp value); }
4261.42Scube255	STD		{ int netbsd32__ksem_destroy(netbsd32_semid_t id); }
4271.42Scube256	UNIMPL		sys__ksem_timedwait
4281.42Scube#else
4291.42Scube247	EXCL		sys__ksem_init
4301.42Scube248	EXCL		sys__ksem_open
4311.42Scube249	EXCL 		sys__ksem_unlink
4321.42Scube250	EXCL		sys__ksem_close
4331.42Scube251	EXCL		sys__ksem_post
4341.42Scube252	EXCL		sys__ksem_wait
4351.42Scube253	EXCL		sys__ksem_trywait
4361.42Scube254	EXCL		sys__ksem_getvalue
4371.42Scube255	EXCL		sys__ksem_destroy
4381.42Scube256	UNIMPL		sys__ksem_timedwait
4391.42Scube#endif
4401.1Smrg257	UNIMPL
4411.1Smrg258	UNIMPL
4421.1Smrg259	UNIMPL
4431.1Smrg260	UNIMPL
4441.1Smrg261	UNIMPL
4451.1Smrg262	UNIMPL
4461.1Smrg263	UNIMPL
4471.1Smrg264	UNIMPL
4481.1Smrg265	UNIMPL
4491.1Smrg266	UNIMPL
4501.1Smrg267	UNIMPL
4511.1Smrg268	UNIMPL
4521.1Smrg269	UNIMPL
4531.10Seeh270	STD		{ int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
4541.27Schs271	STD		{ int netbsd32_swapctl(int cmd, netbsd32_voidp arg, int misc); }
4551.10Seeh272	STD		{ int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
4561.10Seeh273	STD		{ int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
4571.10Seeh274	STD		{ int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
4581.10Seeh275	STD		{ int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
4591.10Seeh276	STD		{ int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
4601.10Seeh277	STD		{ int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
4611.39Schristos278	STD		{ int netbsd32___stat13(const netbsd32_charp path, netbsd32_stat13p_t ub); }
4621.39Schristos279	STD		{ int netbsd32___fstat13(int fd, netbsd32_stat13p_t sb); }
4631.39Schristos280	STD		{ int netbsd32___lstat13(const netbsd32_charp path, netbsd32_stat13p_t ub); }
4641.10Seeh281	STD		{ int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
4651.1Smrg282	NOARGS		{ int sys___vfork14(void); }
4661.10Seeh283	STD		{ int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
4671.10Seeh284	STD		{ int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
4681.10Seeh285	STD		{ int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
4691.10Seeh286	STD		{ pid_t netbsd32_getsid(pid_t pid); }
4701.32Scube287	STD		{ int netbsd32___clone(int flags, netbsd32_voidp stack); }
4711.8Schristos#if defined(KTRACE) || !defined(_KERNEL)
4721.10Seeh288	STD		{ int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
4731.1Smrg#else
4741.10Seeh288	EXCL		netbsd32_fktrace
4751.1Smrg#endif
4761.10Seeh289	STD		{ netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
4771.10Seeh290	STD		{ netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
4781.11Seeh291	STD		{ int netbsd32___sigaction14(int signum, \
4791.11Seeh			    const netbsd32_sigactionp_t nsa, \
4801.11Seeh			    netbsd32_sigactionp_t osa); }
4811.11Seeh292	STD		{ int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
4821.11Seeh293	STD		{ int netbsd32___sigprocmask14(int how, \
4831.11Seeh			    const netbsd32_sigsetp_t set, \
4841.11Seeh			    netbsd32_sigsetp_t oset); }
4851.11Seeh294	STD		{ int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); }
4861.24Sfvdl295	COMPAT_16	{ int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
4871.11Seeh296	STD		{ int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
4881.11Seeh297	STD		{ int netbsd32_fchroot(int fd); }
4891.11Seeh298	STD		{ int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \
4901.11Seeh			   int flags); }
4911.45Scube299	COMPAT_30	{ int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \
4921.45Scube			    netbsd32_stat13p_t sb); }
4931.26Scube300	COMPAT_20	{ int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
4941.11Seeh			    netbsd32_statp_t buf); }
4951.11Seeh#if defined(SYSVSEM) || !defined(_KERNEL)
4961.12Schristos301	STD		{ int netbsd32___semctl14(int semid, int semnum, int cmd, \
4971.43Scube			    ... netbsd32_semunp_t arg); }
4981.11Seeh#else
4991.12Schristos301	EXCL		__semctl14
5001.11Seeh#endif
5011.11Seeh#if defined(SYSVMSG) || !defined(_KERNEL)
5021.11Seeh302	STD		{ int netbsd32___msgctl13(int msqid, int cmd, \
5031.11Seeh			    netbsd32_msqid_dsp_t buf); }
5041.11Seeh#else
5051.11Seeh302	EXCL		__msgctl13
5061.11Seeh#endif
5071.11Seeh#if defined(SYSVSHM) || !defined(_KERNEL)
5081.11Seeh303	STD		{ int netbsd32___shmctl13(int shmid, int cmd, \
5091.11Seeh			    netbsd32_shmid_dsp_t buf); }
5101.11Seeh#else
5111.11Seeh303	EXCL		__shmctl13
5121.11Seeh#endif
5131.18Smrg304	STD		{ int netbsd32_lchflags(const netbsd32_charp path, netbsd32_u_long flags); }
5141.18Smrg305	STD		{ int sys_issetugid(void); }
5151.18Smrg306	STD		{ int netbsd32_utrace(const netbsd32_charp label, netbsd32_voidp addr, \
5161.19Skleink			    netbsd32_size_t len); }
5171.18Smrg;
5181.18Smrg; Syscalls 307 and 308 are reserved for getcontext and setcontext
5191.18Smrg;
5201.24Sfvdl307	STD		{ int netbsd32_getcontext(netbsd32_ucontextp ucp); }
5211.24Sfvdl308	STD		{ int netbsd32_setcontext(netbsd32_ucontextp ucp, \
5221.24Sfvdl			    uint32_t flags, netbsd32_lwpidp new_lwp); }
5231.18Smrg;
5241.18Smrg; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls.
5251.18Smrg;
5261.44Scube309	STD		{ int netbsd32__lwp_create(const netbsd32_ucontextp ucp, \
5271.44Scube			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
5281.44Scube310	NOARGS		{ int sys__lwp_exit(void); }
5291.44Scube311	NOARGS		{ lwpid_t sys__lwp_self(void); }
5301.44Scube312	STD		{ int netbsd32__lwp_wait(lwpid_t wait_for, \
5311.44Scube			    netbsd32_lwpidp departed); }
5321.44Scube313	STD		{ int netbsd32__lwp_suspend(lwpid_t target); }
5331.44Scube314	STD		{ int netbsd32__lwp_continue(lwpid_t target); }
5341.44Scube315	STD		{ int netbsd32__lwp_wakeup(lwpid_t target); }
5351.44Scube316	NOARGS		{ void *sys__lwp_getprivate(void); }
5361.44Scube317	STD		{ void netbsd32__lwp_setprivate(netbsd32_voidp ptr); }
5371.18Smrg318	UNIMPL
5381.18Smrg319	UNIMPL
5391.18Smrg320	UNIMPL
5401.18Smrg321	UNIMPL
5411.18Smrg322	UNIMPL
5421.18Smrg323	UNIMPL
5431.18Smrg324	UNIMPL
5441.18Smrg325	UNIMPL
5451.18Smrg326	UNIMPL
5461.18Smrg327	UNIMPL
5471.18Smrg328	UNIMPL
5481.18Smrg329	UNIMPL
5491.44Scube330	STD		{ int netbsd32_sa_register(netbsd32_sa_upcall_t new, \
5501.44Scube			    netbsd32_sa_upcallp_t old, int flags, \
5511.44Scube			    netbsd32_ssize_t stackinfo_offset); }
5521.44Scube331	STD		{ int netbsd32_sa_stacks(int num, netbsd32_stackp_t stacks); }
5531.44Scube332	NOARGS		{ int sys_sa_enable(void); }
5541.44Scube333	STD		{ int netbsd32_sa_setconcurrency(int concurrency); }
5551.44Scube334	NOARGS		{ int sys_sa_yield(void); }
5561.44Scube335	STD		{ int netbsd32_sa_preempt(int sa_id); }
5571.44Scube336	OBSOL		sys_sa_unblockyield
5581.18Smrg337	UNIMPL
5591.18Smrg338	UNIMPL
5601.18Smrg339	UNIMPL
5611.22Sscw340	STD		{ int netbsd32___sigaction_sigtramp(int signum, \
5621.22Sscw			    const netbsd32_sigactionp_t nsa, \
5631.22Sscw			    netbsd32_sigactionp_t osa, \
5641.22Sscw			    netbsd32_voidp tramp, int vers); }
5651.26Scube341	UNIMPL
5661.26Scube342	UNIMPL
5671.34Scube343	STD		{ int netbsd32_rasctl(netbsd32_caddr_t addr, netbsd32_size_t len, \
5681.34Scube			    int op); }
5691.40Scube344	NOARGS		{ int sys_kqueue(void); }
5701.40Scube345	STD		{ int netbsd32_kevent(int fd, \
5711.40Scube			    netbsd32_keventp_t changelist, netbsd32_size_t nchanges, \
5721.40Scube			    netbsd32_keventp_t eventlist, netbsd32_size_t nevents, \
5731.40Scube			    netbsd32_timespecp_t timeout); }
5741.26Scube346	UNIMPL
5751.26Scube347	UNIMPL
5761.26Scube348	UNIMPL
5771.26Scube349	UNIMPL
5781.26Scube350	UNIMPL
5791.26Scube351	UNIMPL
5801.26Scube352	UNIMPL
5811.26Scube353	UNIMPL
5821.33Scube354	STD		{ int netbsd32_fsync_range(int fd, int flags, off_t start, \
5831.33Scube			    off_t length); }
5841.28Scube355	STD		{ int netbsd32_uuidgen(netbsd32_uuidp_t store, int count); }
5851.26Scube356	STD		{ int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \
5861.26Scube			    netbsd32_size_t bufsize, int flags); }
5871.26Scube357	STD		{ int netbsd32_statvfs1(const netbsd32_charp path, \
5881.26Scube			    netbsd32_statvfsp_t buf, int flags); }
5891.26Scube358	STD		{ int netbsd32_fstatvfs1(int fd, netbsd32_statvfsp_t buf, \
5901.26Scube			    int flags); }
5911.26Scube359	STD		{ int netbsd32_fhstatvfs1(const netbsd32_fhandlep_t fhp, \
5921.26Scube			    netbsd32_statvfsp_t buf, int flags); }
5931.29Scube360	STD		{ int netbsd32_extattrctl(const netbsd32_charp path, \
5941.29Scube			    int cmd, const netbsd32_charp filename, int attrnamespace, \
5951.29Scube			    const netbsd32_charp attrname); }
5961.29Scube361	STD		{ int netbsd32_extattr_set_file(const netbsd32_charp path, \
5971.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
5981.29Scube			    const netbsd32_voidp data, netbsd32_size_t nbytes); }
5991.29Scube362	STD		{ int netbsd32_extattr_get_file(const netbsd32_charp path, \
6001.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
6011.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
6021.29Scube363	STD		{ int netbsd32_extattr_delete_file(const netbsd32_charp path, \
6031.29Scube			    int attrnamespace, const netbsd32_charp attrname); }
6041.29Scube364	STD		{ int netbsd32_extattr_set_fd(int fd, \
6051.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
6061.29Scube			    const netbsd32_voidp data, netbsd32_size_t nbytes); }
6071.29Scube365	STD		{ int netbsd32_extattr_get_fd(int fd, \
6081.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
6091.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
6101.29Scube366	STD		{ int netbsd32_extattr_delete_fd(int fd, \
6111.29Scube			    int attrnamespace, const netbsd32_charp attrname); }
6121.29Scube367	STD		{ int netbsd32_extattr_set_link(const netbsd32_charp path, \
6131.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
6141.29Scube			    const netbsd32_voidp data, netbsd32_size_t nbytes); }
6151.29Scube368	STD		{ int netbsd32_extattr_get_link(const netbsd32_charp path, \
6161.29Scube			    int attrnamespace, const netbsd32_charp attrname, \
6171.29Scube			    netbsd32_voidp data, netbsd32_size_t nbytes); }
6181.29Scube369	STD		{ int netbsd32_extattr_delete_link(const netbsd32_charp path, \
6191.29Scube			    int attrnamespace, const netbsd32_charp attrname); }
6201.29Scube370	STD		{ int netbsd32_extattr_list_fd(int fd, \
6211.29Scube			    int attrnamespace, netbsd32_voidp data, \
6221.29Scube			    netbsd32_size_t nbytes); }
6231.29Scube371	STD		{ int netbsd32_extattr_list_file(const netbsd32_charp path, \
6241.29Scube			    int attrnamespace, netbsd32_voidp data, \
6251.29Scube			    netbsd32_size_t nbytes); }
6261.29Scube372	STD		{ int netbsd32_extattr_list_link(const netbsd32_charp path, \
6271.29Scube			    int attrnamespace, netbsd32_voidp data, \
6281.29Scube			    netbsd32_size_t nbytes); }
6291.31Scube373	STD		{ int netbsd32_pselect(int nd, netbsd32_fd_setp_t in, \
6301.31Scube			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
6311.31Scube			    const netbsd32_timespecp_t ts, const netbsd32_sigsetp_t mask); }
6321.31Scube374	STD		{ int netbsd32_pollts(netbsd32_pollfdp_t fds, u_int nfds, \
6331.31Scube			    const netbsd32_timespecp_t ts, const netbsd32_sigsetp_t mask); }
6341.35Scube375	STD		{ int netbsd32_setxattr(const netbsd32_charp path, \
6351.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6361.35Scube			    netbsd32_size_t size, int flags); }
6371.35Scube376	STD		{ int netbsd32_lsetxattr(const netbsd32_charp path, \
6381.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6391.35Scube			    netbsd32_size_t size, int flags); }
6401.35Scube377	STD		{ int netbsd32_fsetxattr(int fd, \
6411.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6421.35Scube			    netbsd32_size_t size, int flags); }
6431.35Scube378	STD		{ int netbsd32_getxattr(const netbsd32_charp path, \
6441.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6451.35Scube			    netbsd32_size_t size); }
6461.35Scube379	STD		{ int netbsd32_lgetxattr(const netbsd32_charp path, \
6471.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6481.35Scube			    netbsd32_size_t size); }
6491.35Scube380	STD		{ int netbsd32_fgetxattr(int fd, \
6501.35Scube			    const netbsd32_charp name, netbsd32_voidp value, \
6511.35Scube			    netbsd32_size_t size); }
6521.35Scube381	STD		{ int netbsd32_listxattr(const netbsd32_charp path, \
6531.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6541.35Scube382	STD		{ int netbsd32_llistxattr(const netbsd32_charp path, \
6551.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6561.35Scube383	STD		{ int netbsd32_flistxattr(int fd, \
6571.35Scube			    netbsd32_charp list, netbsd32_size_t size); }
6581.35Scube384	STD		{ int netbsd32_removexattr(const netbsd32_charp path, \
6591.35Scube			    const netbsd32_charp name); }
6601.35Scube385	STD		{ int netbsd32_lremovexattr(const netbsd32_charp path, \
6611.35Scube			    const netbsd32_charp name); }
6621.35Scube386	STD		{ int netbsd32_fremovexattr(int fd, \
6631.35Scube			    const netbsd32_charp name); }
6641.38Schristos387     STD             { int netbsd32_sys___stat30(const netbsd32_charp path, \
6651.38Schristos			    netbsd32_statp_t ub); }
6661.38Schristos388     STD             { int netbsd32_sys___fstat30(int fd, \
6671.38Schristos			    netbsd32_statp_t sb); }
6681.38Schristos389     STD             { int netbsd32_sys___lstat30( \
6691.38Schristos			    const netbsd32_charp path, netbsd32_statp_t ub); }
6701.38Schristos390     STD             { int netbsd32_sys___getdents30(int fd, \
6711.39Schristos			    netbsd32_charp buf, netbsd32_size_t count); }
6721.45Scube391	NOARGS		{ int sys_posix_fadvise(int fd, off_t offset, \
6731.45Scube			    off_t len, int advice); }
6741.45Scube392	STD		{ int netbsd32_sys___fhstat30( \
6751.45Scube			    const netbsd32_fhandlep_t fhp, \
6761.45Scube			    netbsd32_statp_t sb); }
6771.47Sdrochner393	STD		{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
678