No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / netbsd32 / syscalls.master
bloba7ba897eaffe1751eeecdf2b8bbcb0823ffb788e
1         $NetBSD: syscalls.master,v 1.80 2009/05/17 05:54:22 pooka Exp $
3 ;       from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
4 ;       @(#)syscalls.master     8.2 (Berkeley) 1/13/94
6 ; NetBSD system call name/number "master" file.
7 ; (See syscalls.conf to see what it is processed into.)
9 ; Fields: number type [type-dependent ...]
10 ;       number  system call number, must be in order
11 ;       type    one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
12 ;               the compatibility options defined in syscalls.conf.
14 ; types:
15 ;       STD     always included
16 ;       OBSOL   obsolete, not included in system
17 ;       IGNORED syscall is a null op, but always succeeds
18 ;       UNIMPL  unimplemented, not included in system
19 ;       EXCL    implemented, but not included in system
20 ;       NODEF   included, but don't define the syscall number
21 ;       NOARGS  included, but don't define the syscall args structure
22 ;       INDIR   included, but don't define the syscall args structure,
23 ;               and allow it to be "really" varargs.
25 ; The compat options are defined in the syscalls.conf file, and the
26 ; compat option name is prefixed to the syscall name.  Other than
27 ; that, they're like NODEF (for 'compat' options), or STD (for
28 ; 'libcompat' options).
30 ; The type-dependent arguments are as follows:
31 ; For STD, NODEF, NOARGS, and compat syscalls:
32 ;       { pseudo-proto } [alias]
33 ; For other syscalls:
34 ;       [comment]
36 ; #ifdef's, etc. may be included, and are copied to the output files.
37 ; #include's are copied to the syscall names and switch definition files only.
39 #if defined(_KERNEL_OPT)
40 #include "opt_compat_netbsd.h"
41 #include "opt_ntp.h"
42 #include "opt_sysv.h"
43 #include "opt_compat_43.h"
44 #include "opt_posix.h"
46 #include "fs_lfs.h"
47 #include "fs_nfs.h"
48 #endif
50 #include <sys/param.h>
51 #include <sys/systm.h>
52 #include <sys/signal.h>
53 #include <sys/mount.h>
54 #include <sys/syscallargs.h>
56 #include <compat/netbsd32/netbsd32.h>
57 #include <compat/netbsd32/netbsd32_syscallargs.h>
61 ; Reserved/unimplemented system calls in the range 0-150 inclusive
62 ; are reserved for use in future Berkeley releases.
63 ; Additional system calls implemented in vendor and other
64 ; redistributions should be placed in the reserved range at the end
65 ; of the current calls.
67 0       INDIR           { int|netbsd32||syscall(int code, \
68                             ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
69 1       STD             { void|netbsd32||exit(int rval); }
70 2       NOARGS          { int|sys||fork(void); }
71 3       STD             { netbsd32_ssize_t|netbsd32||read(int fd, \
72                             netbsd32_voidp buf, netbsd32_size_t nbyte); }
73 4       STD             { netbsd32_ssize_t|netbsd32||write(int fd, \
74                             netbsd32_voidp buf, netbsd32_size_t nbyte); }
75 5       STD             { int|netbsd32||open(netbsd32_charp path, int flags, \
76                             ... mode_t mode); }
77 6       STD             { int|netbsd32||close(int fd); }
78 7       COMPAT_50       { int|netbsd32||wait4(int pid, netbsd32_intp status, \
79                             int options, netbsd32_rusage50p_t rusage); }
80 8       COMPAT_43       { int|netbsd32||ocreat(netbsd32_charp path, \
81                             mode_t mode); }
82 9       STD             { int|netbsd32||link(netbsd32_charp path, \
83                             netbsd32_charp link); }
84 10      STD             { int|netbsd32||unlink(netbsd32_charp path); }
85 11      OBSOL           execv
86 12      STD             { int|netbsd32||chdir(netbsd32_charp path); }
87 13      STD             { int|netbsd32||fchdir(int fd); }
88 14      COMPAT_50       { int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
89                             uint32_t dev); }
90 15      STD             { int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
91 16      STD             { int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
92                             gid_t gid); }
93 17      STD             { int|netbsd32||break(netbsd32_charp nsize); }
94 18      COMPAT_20       { int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
95                             netbsd32_long bufsize, int flags); }
96 19      COMPAT_43       { netbsd32_long|netbsd32||olseek(int fd, \
97                             netbsd32_long offset, int whence); }
98 20      NOARGS          { pid_t|sys||getpid(void); }
99 21      STD             { int|netbsd32||mount(netbsd32_charp type, \
100                             netbsd32_charp path, int flags, \
101                             netbsd32_voidp data); }
102 22      STD             { int|netbsd32||unmount(netbsd32_charp path, \
103                             int flags); }
104 23      STD             { int|netbsd32||setuid(uid_t uid); }
105 24      NOARGS          { uid_t|sys||getuid(void); }
106 25      NOARGS          { uid_t|sys||geteuid(void); }
107 26      STD             { int|netbsd32||ptrace(int req, pid_t pid, \
108                             netbsd32_voidp addr, int data); }
109 27      STD             { netbsd32_ssize_t|netbsd32||recvmsg(int s, \
110                             netbsd32_msghdrp_t msg, int flags); }
111 28      STD             { netbsd32_ssize_t|netbsd32||sendmsg(int s, \
112                             netbsd32_msghdrp_t msg, int flags); }
113 29      STD             { netbsd32_ssize_t|netbsd32||recvfrom(int s, \
114                             netbsd32_voidp buf, netbsd32_size_t len, \
115                             int flags, netbsd32_sockaddrp_t from, \
116                             netbsd32_intp fromlenaddr); }
117 30      STD             { int|netbsd32||accept(int s, \
118                             netbsd32_sockaddrp_t name, \
119                             netbsd32_intp anamelen); }
120 31      STD             { int|netbsd32||getpeername(int fdes, \
121                             netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
122 32      STD             { int|netbsd32||getsockname(int fdes, \
123                             netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
124 33      STD             { int|netbsd32||access(netbsd32_charp path, int flags); }
125 34      STD             { int|netbsd32||chflags(netbsd32_charp path, \
126                             netbsd32_u_long flags); }
127 35      STD             { int|netbsd32||fchflags(int fd, \
128                             netbsd32_u_long flags); }
129 36      NOARGS          { void|sys||sync(void); }
130 37      STD             { int|netbsd32||kill(int pid, int signum); }
131 38      COMPAT_43       { int|netbsd32||stat43(netbsd32_charp path, \
132                             netbsd32_stat43p_t ub); }
133 39      NOARGS          { pid_t|sys||getppid(void); }
134 40      COMPAT_43       { int|netbsd32||lstat43(netbsd32_charp path, \
135                             netbsd32_stat43p_t ub); }
136 41      STD             { int|netbsd32||dup(int fd); }
137 42      NOARGS          { int|sys||pipe(void); }
138 43      NOARGS          { gid_t|sys||getegid(void); }
139 44      STD             { int|netbsd32||profil(netbsd32_voidp samples, \
140                             netbsd32_size_t size, netbsd32_u_long offset, \
141                             u_int scale); }
142 45      STD             { int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
143                             int facs, int pid); }
144 46      STD             { int|netbsd32||sigaction(int signum, \
145                             netbsd32_sigactionp_t nsa, \
146                             netbsd32_sigactionp_t osa); }
147 47      NOARGS          { gid_t|sys||getgid(void); }
148 48      COMPAT_13       { int|netbsd32||sigprocmask(int how, \
149                             int mask); } sigprocmask13
150 49      STD             { int|netbsd32||__getlogin(netbsd32_charp namebuf, \
151                             u_int namelen); }
152 50      STD             { int|netbsd32||setlogin(netbsd32_charp namebuf); }
153 51      STD             { int|netbsd32||acct(netbsd32_charp path); }
154 52      COMPAT_13       { int|sys||sigpending(void); } sigpending13
155 53      COMPAT_13       { int|netbsd32||sigaltstack13( \
156                             netbsd32_sigaltstack13p_t nss, \
157                             netbsd32_sigaltstack13p_t oss); }
158 54      STD             { int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
159                             ... netbsd32_voidp data); }
160 55      COMPAT_12       { int|netbsd32||reboot(int opt); }
161 56      STD             { int|netbsd32||revoke(netbsd32_charp path); }
162 57      STD             { int|netbsd32||symlink(netbsd32_charp path, \
163                             netbsd32_charp link); }
164 58      STD             { int|netbsd32||readlink(netbsd32_charp path, \
165                             netbsd32_charp buf, netbsd32_size_t count); }
166 59      STD             { int|netbsd32||execve(netbsd32_charp path, \
167                             netbsd32_charpp argp, netbsd32_charpp envp); }
168 60      STD             { mode_t|netbsd32||umask(mode_t newmask); }
169 61      STD             { int|netbsd32||chroot(netbsd32_charp path); }
170 62      COMPAT_43       { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
171 63      COMPAT_43       { int|netbsd32||ogetkerninfo(int op, \
172                             netbsd32_charp where, netbsd32_intp size, \
173                             int arg); }
174 64      COMPAT_43       { int|sys||getpagesize(void); } ogetpagesize
175 65      COMPAT_12       { int|netbsd32||msync(netbsd32_voidp addr, \
176                             netbsd32_size_t len); }
177 ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
178 66      NOARGS          { int|sys||vfork(void); }
179 67      OBSOL           vread
180 68      OBSOL           vwrite
181 69      STD             { int|netbsd32||sbrk(netbsd32_intptr_t incr); }
182 70      STD             { int|netbsd32||sstk(int incr); }
183 71      COMPAT_43       { int|netbsd32||ommap(netbsd32_voidp addr, \
184                             netbsd32_size_t len, int prot, int flags, int fd, \
185                             netbsd32_long pos); }
186 72      STD             { int|netbsd32||ovadvise(int anom); } vadvise
187 73      STD             { int|netbsd32||munmap(netbsd32_voidp addr, \
188                             netbsd32_size_t len); }
189 74      STD             { int|netbsd32||mprotect(netbsd32_voidp addr, \
190                             netbsd32_size_t len, int prot); }
191 75      STD             { int|netbsd32||madvise(netbsd32_voidp addr, \
192                             netbsd32_size_t len, int behav); }
193 76      OBSOL           vhangup
194 77      OBSOL           vlimit
195 78      STD             { int|netbsd32||mincore(netbsd32_voidp addr, \
196                             netbsd32_size_t len, netbsd32_charp vec); }
197 79      STD             { int|netbsd32||getgroups(int gidsetsize, \
198                             netbsd32_gid_tp gidset); }
199 80      STD             { int|netbsd32||setgroups(int gidsetsize, \
200                             netbsd32_gid_tp gidset); }
201 81      NOARGS          { int|sys||getpgrp(void); }
202 82      STD             { int|netbsd32||setpgid(int pid, int pgid); }
203 83      COMPAT_50       { int|netbsd32||setitimer(int which, \
204                             netbsd32_itimerval50p_t itv, \
205                             netbsd32_itimerval50p_t oitv); }
206 84      COMPAT_43       { int|sys||wait(void); } owait
207 85      COMPAT_12       { int|netbsd32||oswapon(netbsd32_charp name); }
208 86      COMPAT_50       { int|netbsd32||getitimer(int which, \
209                             netbsd32_itimerval50p_t itv); }
210 87      COMPAT_43       { int|netbsd32||ogethostname(netbsd32_charp hostname, \
211                             u_int len); }
212 88      COMPAT_43       { int|netbsd32||osethostname(netbsd32_charp hostname, \
213                             u_int len); }
214 89      COMPAT_43       { int|sys||getdtablesize(void); } ogetdtablesize
215 90      STD             { int|netbsd32||dup2(int from, int to); }
216 91      UNIMPL          getdopt
217 92      STD             { int|netbsd32||fcntl(int fd, int cmd, \
218                             ... netbsd32_voidp arg); }
219 93      COMPAT_50       { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
220                             netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
221                             netbsd32_timeval50p_t tv); }
222 94      UNIMPL          setdopt
223 95      STD             { int|netbsd32||fsync(int fd); }
224 96      STD             { int|netbsd32||setpriority(int which, int who, \
225                             int prio); }
226 97      COMPAT_30       { int|netbsd32||socket(int domain, int type, \
227                             int protocol); }
228 98      STD             { int|netbsd32||connect(int s, \
229                             netbsd32_sockaddrp_t name, int namelen); }
230 99      COMPAT_43       { int|netbsd32||oaccept(int s, netbsd32_voidp name, \
231                             netbsd32_intp anamelen); }
232 100     STD             { int|netbsd32||getpriority(int which, int who); }
233 101     COMPAT_43       { int|netbsd32||osend(int s, netbsd32_voidp buf, \
234                             int len, int flags); }
235 102     COMPAT_43       { int|netbsd32||orecv(int s, netbsd32_voidp buf, \
236                             int len, int flags); }
237 103     COMPAT_13       { int|netbsd32||sigreturn( \
238                             netbsd32_sigcontextp_t sigcntxp); } sigreturn13
239 104     STD             { int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
240                             int namelen); }
241 105     STD             { int|netbsd32||setsockopt(int s, int level, int name, \
242                             netbsd32_voidp val, int valsize); }
243 106     STD             { int|netbsd32||listen(int s, int backlog); }
244 107     OBSOL           vtimes
245 108     COMPAT_43       { int|netbsd32||osigvec(int signum, \
246                             netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
247 109     COMPAT_43       { int|netbsd32||sigblock(int mask); }
248 110     COMPAT_43       { int|netbsd32||sigsetmask(int mask); }
249 111     COMPAT_13       { int|netbsd32||sigsuspend(int mask); } sigsuspend13
250 112     COMPAT_43       { int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
251                             netbsd32_sigstackp_t oss); }
252 113     COMPAT_43       { int|netbsd32||orecvmsg(int s, \
253                             netbsd32_omsghdrp_t msg, int flags); }
254 114     COMPAT_43       { int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
255                             int flags); }
256 115     OBSOL           vtrace
257 116     COMPAT_50       { int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
258                             netbsd32_timezonep_t tzp); }
259 117     COMPAT_50       { int|netbsd32||getrusage(int who, \
260                             netbsd32_rusage50p_t rusage); }
261 118     STD             { int|netbsd32||getsockopt(int s, int level, int name, \
262                             netbsd32_voidp val, netbsd32_intp avalsize); }
263 119     OBSOL           resuba
264 120     STD             { netbsd32_ssize_t|netbsd32||readv(int fd, \
265                             netbsd32_iovecp_t iovp, int iovcnt); }
266 121     STD             { netbsd32_ssize_t|netbsd32||writev(int fd, \
267                             netbsd32_iovecp_t iovp, int iovcnt); }
268 122     COMPAT_50       { int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
269                             netbsd32_timezonep_t tzp); }
270 123     STD             { int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
271 124     STD             { int|netbsd32||fchmod(int fd, mode_t mode); }
272 125     COMPAT_43       { int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
273                             netbsd32_size_t len, int flags, \
274                             netbsd32_voidp from, netbsd32_intp fromlenaddr); }
275 126     STD             { int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
276 127     STD             { int|netbsd32||setregid(gid_t rgid, gid_t egid); }
277 128     STD             { int|netbsd32||rename(netbsd32_charp from, \
278                             netbsd32_charp to); }
279 129     COMPAT_43       { int|netbsd32||otruncate(netbsd32_charp path, \
280                             netbsd32_long length); }
281 130     COMPAT_43       { int|netbsd32||oftruncate(int fd, \
282                             netbsd32_long length); }
283 131     STD             { int|netbsd32||flock(int fd, int how); }
284 132     STD             { int|netbsd32||mkfifo(netbsd32_charp path, \
285                             mode_t mode); }
286 133     STD             { netbsd32_ssize_t|netbsd32||sendto(int s, \
287                             netbsd32_voidp buf, netbsd32_size_t len, \
288                             int flags, netbsd32_sockaddrp_t to, int tolen); }
289 134     STD             { int|netbsd32||shutdown(int s, int how); }
290 135     STD             { int|netbsd32||socketpair(int domain, int type, \
291                             int protocol, netbsd32_intp rsv); }
292 136     STD             { int|netbsd32||mkdir(netbsd32_charp path, \
293                             mode_t mode); }
294 137     STD             { int|netbsd32||rmdir(netbsd32_charp path); }
295 138     COMPAT_50       { int|netbsd32||utimes(netbsd32_charp path, \
296                             netbsd32_timeval50p_t tptr); }
297 139     OBSOL           4.2 sigreturn
298 140     COMPAT_50       { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
299                             netbsd32_timeval50p_t olddelta); }
300 141     COMPAT_43       { int|netbsd32||ogetpeername(int fdes, \
301                             netbsd32_voidp asa, netbsd32_intp alen); }
302 142     COMPAT_43       { int32_t|sys||gethostid(void); } ogethostid
303 143     COMPAT_43       { int|netbsd32||sethostid(int32_t hostid); }
304 144     COMPAT_43       { int|netbsd32||ogetrlimit(int which, \
305                             netbsd32_orlimitp_t rlp); }
306 145     COMPAT_43       { int|netbsd32||osetrlimit(int which, \
307                             netbsd32_orlimitp_t rlp); }
308 146     COMPAT_43       { int|netbsd32||killpg(int pgid, int signum); }
309 147     NOARGS          { int|sys||setsid(void); }
310 148     STD             { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
311                             int uid, netbsd32_voidp arg); }
312 149     COMPAT_43       { int|sys||quota(void); } oquota
313 150     COMPAT_43       { int|netbsd32||ogetsockname(int fdec, \
314                             netbsd32_voidp asa, netbsd32_intp alen); }
316 ; Syscalls 151-180 inclusive are reserved for vendor-specific
317 ; system calls.  (This includes various calls added for compatibity
318 ; with other Unix variants.)
319 ; Some of these calls are now supported by BSD...
320 151     UNIMPL
321 152     UNIMPL
322 153     UNIMPL
323 154     UNIMPL
324 155     STD             { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
325 156     COMPAT_43       { int|netbsd32||ogetdirentries(int fd, \
326                             netbsd32_charp buf, u_int count, \
327                             netbsd32_longp basep); }
328 157     COMPAT_20       { int|netbsd32||statfs(netbsd32_charp path, \
329                             netbsd32_statfsp_t buf); }
330 158     COMPAT_20       { int|netbsd32||fstatfs(int fd, \
331                             netbsd32_statfsp_t buf); }
332 159     UNIMPL
333 160     UNIMPL
334 161     COMPAT_30       { int|netbsd32||getfh(netbsd32_charp fname, \
335                             netbsd32_compat_30_fhandlep_t fhp); }
336 162     COMPAT_09       { int|netbsd32||ogetdomainname( \
337                             netbsd32_charp domainname, int len); }
338 163     COMPAT_09       { int|netbsd32||osetdomainname( \
339                             netbsd32_charp domainname, int len); }
340 164     COMPAT_09       { int|netbsd32||uname(netbsd32_outsnamep_t name); }
341 165     STD             { int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
342 166     UNIMPL
343 167     UNIMPL
344 168     UNIMPL
345 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
346 169     COMPAT_10       { int|netbsd32||semsys(int which, int a2, int a3, \
347                             int a4, int a5); } osemsys
348 #else
349 169     EXCL            netbsd32_semsys
350 #endif
351 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
352 170     COMPAT_10       { int|netbsd32||msgsys(int which, int a2, int a3, \
353                             int a4, int a5, int a6); } omsgsys
354 #else
355 170     EXCL            netbsd32_msgsys
356 #endif
357 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
358 171     COMPAT_10       { int|netbsd32||shmsys(int which, int a2, int a3, \
359                             int a4); } oshmsys
360 #else
361 171     EXCL            netbsd32_shmsys
362 #endif
363 172     UNIMPL
364 173     STD             { netbsd32_ssize_t|netbsd32||pread(int fd, \
365                             netbsd32_voidp buf, netbsd32_size_t nbyte, \
366                             int PAD, off_t offset); }
367 174     STD             { netbsd32_ssize_t|netbsd32||pwrite(int fd, \
368                             netbsd32_voidp buf, netbsd32_size_t nbyte, \
369                             int PAD, off_t offset); }
370 #if defined(NTP) || !defined(_KERNEL_OPT)
371 175     COMPAT_30       { int|netbsd32||ntp_gettime( \
372                             netbsd32_ntptimeval50p_t ntvp); }
373 176     STD             { int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
374 #else
375 175     EXCL            ntp_gettime
376 176     EXCL            ntp_adjtime
377 #endif
378 177     UNIMPL
379 178     UNIMPL
380 179     UNIMPL
381 180     UNIMPL
383 ; Syscalls 180-199 are used by/reserved for BSD
384 181     STD             { int|netbsd32||setgid(gid_t gid); }
385 182     STD             { int|netbsd32||setegid(gid_t egid); }
386 183     STD             { int|netbsd32||seteuid(uid_t euid); }
387 #if defined(LFS) || !defined(_KERNEL_OPT)
388 184     STD             { int|netbsd32||lfs_bmapv(netbsd32_fsid_tp_t fsidp, \
389                             netbsd32_block_infop_t blkiov, int blkcnt); }
390 185     STD             { int|netbsd32||lfs_markv(netbsd32_fsid_tp_t fsidp, \
391                             netbsd32_block_infop_t blkiov, int blkcnt); }
392 186     STD             { int|netbsd32||lfs_segclean(netbsd32_fsid_tp_t fsidp, \
393                             netbsd32_u_long segment); }
394 187     COMPAT_50       { int|netbsd32||lfs_segwait(netbsd32_fsid_tp_t fsidp, \
395                             netbsd32_timeval50p_t tv); }
396 #else
397 184     EXCL            netbsd32_lfs_bmapv
398 185     EXCL            netbsd32_lfs_markv
399 186     EXCL            netbsd32_lfs_segclean
400 187     EXCL            netbsd32_lfs_segwait
401 #endif
402 188     COMPAT_12       { int|netbsd32||stat12(netbsd32_charp path, \
403                             netbsd32_stat12p_t ub); }
404 189     COMPAT_12       { int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
405 190     COMPAT_12       { int|netbsd32||lstat12(netbsd32_charp path, \
406                             netbsd32_stat12p_t ub); }
407 191     STD             { netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
408                             int name); }
409 192     STD             { netbsd32_long|netbsd32||fpathconf(int fd, int name); }
410 193     UNIMPL
411 194     STD             { int|netbsd32||getrlimit(int which, \
412                             netbsd32_rlimitp_t rlp); }
413 195     STD             { int|netbsd32||setrlimit(int which, \
414                             netbsd32_rlimitp_t rlp); }
415 196     COMPAT_12       { int|netbsd32||getdirentries(int fd, \
416                             netbsd32_charp buf, u_int count, \
417                             netbsd32_longp basep); }
418 197     STD             { netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
419                             netbsd32_size_t len, int prot, int flags, int fd, \
420                             netbsd32_long PAD, off_t pos); }
421 198     INDIR           { quad_t|netbsd32||___syscall(quad_t code, \
422                             ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
423 199     STD             { off_t|netbsd32||lseek(int fd, int PAD, off_t offset, \
424                             int whence); }
425 200     STD             { int|netbsd32||truncate(netbsd32_charp path, int PAD, \
426                             off_t length); }
427 201     STD             { int|netbsd32||ftruncate(int fd, int PAD, \
428                             off_t length); }
429 202     STD             { int|netbsd32||__sysctl(netbsd32_intp name, \
430                             u_int namelen, netbsd32_voidp old, \
431                             netbsd32_size_tp oldlenp, netbsd32_voidp new, \
432                             netbsd32_size_t newlen); }
433 203     STD             { int|netbsd32||mlock(netbsd32_voidp addr, \
434                             netbsd32_size_t len); }
435 204     STD             { int|netbsd32||munlock(netbsd32_voidp addr, \
436                             netbsd32_size_t len); }
437 205     STD             { int|netbsd32||undelete(netbsd32_charp path); }
438 206     COMPAT_50       { int|netbsd32||futimes(int fd, \
439                             netbsd32_timeval50p_t tptr); }
440 207     STD             { int|netbsd32||getpgid(pid_t pid); }
441 208     STD             { int|netbsd32||reboot(int opt, \
442                             netbsd32_charp bootstr); }
443 209     STD             { int|netbsd32||poll(netbsd32_pollfdp_t fds, \
444                             u_int nfds, int timeout); }
445 210     UNIMPL
446 211     UNIMPL
447 212     UNIMPL
448 213     UNIMPL
449 214     UNIMPL
450 215     UNIMPL
451 216     UNIMPL
452 217     UNIMPL
453 218     UNIMPL
454 219     UNIMPL
455 ; System calls 220-300 are reserved for use by NetBSD
456 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
457 220     COMPAT_14       { int|netbsd32||__semctl(int semid, int semnum, \
458                             int cmd, netbsd32_semunu_t arg); }
459 221     STD             { int|netbsd32||semget(netbsd32_key_t key, int nsems, \
460                             int semflg); }
461 222     STD             { int|netbsd32||semop(int semid, \
462                             netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
463 223     STD             { int|netbsd32||semconfig(int flag); }
464 #else
465 220     EXCL            compat_14_netbsd32_semctl
466 221     EXCL            netbsd32_semget
467 222     EXCL            netbsd32_semop
468 223     EXCL            netbsd32_semconfig
469 #endif
470 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
471 224     COMPAT_14       { int|netbsd32||msgctl(int msqid, int cmd, \
472                             netbsd32_msqid_ds14p_t buf); }
473 225     STD             { int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
474 226     STD             { int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
475                             netbsd32_size_t msgsz, int msgflg); }
476 227     STD             { netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
477                             netbsd32_voidp msgp, netbsd32_size_t msgsz, \
478                             netbsd32_long msgtyp, int msgflg); }
479 #else
480 224     EXCL            compat_14_netbsd32_msgctl
481 225     EXCL            netbsd32_msgget
482 226     EXCL            netbsd32_msgsnd
483 227     EXCL            netbsd32_msgrcv
484 #endif
485 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
486 228     STD             { netbsd32_voidp|netbsd32||shmat(int shmid, \
487                             netbsd32_voidp shmaddr, int shmflg); }
488 229     COMPAT_14       { int|netbsd32||shmctl(int shmid, int cmd, \
489                             netbsd32_shmid_dsp_t buf); }
490 230     STD             { int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
491 231     STD             { int|netbsd32||shmget(netbsd32_key_t key, \
492                             netbsd32_size_t size, int shmflg); }
493 #else
494 228     EXCL            netbsd32_shmat
495 229     EXCL            compat_14_netbsd32_shmctl
496 230     EXCL            netbsd32_shmdt
497 231     EXCL            netbsd32_shmget
498 #endif
499 232     COMPAT_50       { int|netbsd32||clock_gettime( \
500                             netbsd32_clockid_t clock_id, \
501                             netbsd32_timespec50p_t tp); }
502 233     COMPAT_50       { int|netbsd32||clock_settime( \
503                             netbsd32_clockid_t clock_id, \
504                             netbsd32_timespec50p_t tp); }
505 234     COMPAT_50       { int|netbsd32||clock_getres( \
506                             netbsd32_clockid_t clock_id, \
507                             netbsd32_timespec50p_t tp); }
508 235     STD             { int|netbsd32||timer_create( \
509                             netbsd32_clockid_t clock_id, \
510                             netbsd32_sigeventp_t evp, \
511                             netbsd32_timerp_t timerid); }
512 236     STD             { int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
513 237     COMPAT_50       { int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
514                             int flags, \
515                             netbsd32_itimerspec50p_t value, \
516                             netbsd32_itimerspec50p_t ovalue); }
517 238     COMPAT_50       { int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
518                             netbsd32_itimerspec50p_t value); }
519 239     STD             { int|netbsd32||timer_getoverrun( \
520                             netbsd32_timer_t timerid); }
522 ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
524 240     COMPAT_50       { int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
525                             netbsd32_timespec50p_t rmtp); }
526 241     STD             { int|netbsd32||fdatasync(int fd); }
527 242     STD             { int|netbsd32||mlockall(int flags); }
528 243     NOARGS          { int|sys||munlockall(void); }
529 244     COMPAT_50       { int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
530                             netbsd32_siginfop_t info, \
531                             netbsd32_timespec50p_t timeout); }
532 245     UNIMPL
533 246     UNIMPL
534 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC))
535 247     STD             { int|netbsd32||_ksem_init(unsigned int value, \
536                             netbsd32_semidp_t idp); }
537 248     STD             { int|netbsd32||_ksem_open(netbsd32_charp name, \
538                             int oflag, mode_t mode, unsigned int value, \
539                             netbsd32_semidp_t idp); }
540 249     STD             { int|netbsd32||_ksem_unlink(netbsd32_charp name); }
541 250     STD             { int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
542 251     STD             { int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
543 252     STD             { int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
544 253     STD             { int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
545 254     STD             { int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
546                             netbsd32_intp value); }
547 255     STD             { int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
548 256     UNIMPL          sys__ksem_timedwait
549 #else
550 247     EXCL            sys__ksem_init
551 248     EXCL            sys__ksem_open
552 249     EXCL            sys__ksem_unlink
553 250     EXCL            sys__ksem_close
554 251     EXCL            sys__ksem_post
555 252     EXCL            sys__ksem_wait
556 253     EXCL            sys__ksem_trywait
557 254     EXCL            sys__ksem_getvalue
558 255     EXCL            sys__ksem_destroy
559 256     UNIMPL          sys__ksem_timedwait
560 #endif
561 257     UNIMPL
562 258     UNIMPL
563 259     UNIMPL
564 260     UNIMPL
565 261     UNIMPL
566 262     UNIMPL
567 263     UNIMPL
568 264     UNIMPL
569 265     UNIMPL
570 266     UNIMPL
571 267     UNIMPL
572 268     UNIMPL
573 269     UNIMPL
574 270     STD             { int|netbsd32||__posix_rename(netbsd32_charp from, \
575                             netbsd32_charp to); }
576 271     STD             { int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
577                             int misc); }
578 272     COMPAT_30       { int|netbsd32||getdents(int fd, netbsd32_charp buf, \
579                             netbsd32_size_t count); }
580 273     STD             { int|netbsd32||minherit(netbsd32_voidp addr, \
581                             netbsd32_size_t len, int inherit); }
582 274     STD             { int|netbsd32||lchmod(netbsd32_charp path, \
583                             mode_t mode); }
584 275     STD             { int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
585                             gid_t gid); }
586 276     COMPAT_50       { int|netbsd32||lutimes(netbsd32_charp path, \
587                             netbsd32_timeval50p_t tptr); }
588 277     STD             { int|netbsd32|13|msync(netbsd32_voidp addr, \
589                             netbsd32_size_t len, int flags); }
590 278     COMPAT_30       { int|netbsd32|13|stat(netbsd32_charp path, \
591                             netbsd32_stat13p_t ub); }
592 279     COMPAT_30       { int|netbsd32|13|fstat(int fd, \
593                             netbsd32_stat13p_t sb); }
594 280     COMPAT_30       { int|netbsd32|13|lstat(netbsd32_charp path, \
595                             netbsd32_stat13p_t ub); }
596 281     STD             { int|netbsd32|14|sigaltstack(\
597                             netbsd32_sigaltstackp_t nss, \
598                             netbsd32_sigaltstackp_t oss); }
599 282     NOARGS          { int|sys|14|vfork(void); }
600 283     STD             { int|netbsd32||__posix_chown(netbsd32_charp path, \
601                             uid_t uid, gid_t gid); }
602 284     STD             { int|netbsd32||__posix_fchown(int fd, uid_t uid, \
603                             gid_t gid); }
604 285     STD             { int|netbsd32||__posix_lchown(netbsd32_charp path, \
605                             uid_t uid, gid_t gid); }
606 286     STD             { pid_t|netbsd32||getsid(pid_t pid); }
607 287     STD             { int|netbsd32||__clone(int flags, \
608                             netbsd32_voidp stack); }
609 288     STD             { int|netbsd32||fktrace(int fd, int ops, int facs, \
610                             int pid); }
611 289     STD             { netbsd32_ssize_t|netbsd32||preadv(int fd, \
612                             netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
613                             off_t offset); }
614 290     STD             { netbsd32_ssize_t|netbsd32||pwritev(int fd, \
615                             netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
616                             off_t offset); }
617 291     STD             { int|netbsd32|14|sigaction(int signum, \
618                             netbsd32_sigactionp_t nsa, \
619                             netbsd32_sigactionp_t osa); }
620 292     STD             { int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
621 293     STD             { int|netbsd32|14|sigprocmask(int how, \
622                             netbsd32_sigsetp_t set, \
623                             netbsd32_sigsetp_t oset); }
624 294     STD             { int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
625 295     COMPAT_16       { int|netbsd32|14|sigreturn( \
626                             netbsd32_sigcontextp_t sigcntxp); }
627 296     STD             { int|netbsd32||__getcwd(netbsd32_charp bufp, \
628                             netbsd32_size_t length); }
629 297     STD             { int|netbsd32||fchroot(int fd); }
630 298     COMPAT_30       { int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
631                            int flags); }
632 299     COMPAT_30       { int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
633                             netbsd32_stat13p_t sb); }
634 300     COMPAT_20       { int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
635                             netbsd32_stat50p_t buf); }
636 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
637 301     COMPAT_50       { int|netbsd32|14|semctl(int semid, int semnum, \
638                             int cmd, ... netbsd32_semun50p_t arg); }
639 #else
640 301     EXCL            __semctl14
641 #endif
642 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
643 302     COMPAT_50       { int|netbsd32|13|msgctl(int msqid, int cmd, \
644                             netbsd32_msqid_ds50p_t buf); }
645 #else
646 302     EXCL            __msgctl13
647 #endif
648 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
649 303     COMPAT_50       { int|netbsd32|13|shmctl(int shmid, int cmd, \
650                             netbsd32_shmid_ds50p_t buf); }
651 #else
652 303     EXCL            __shmctl13
653 #endif
654 304     STD             { int|netbsd32||lchflags(netbsd32_charp path, \
655                             netbsd32_u_long flags); }
656 305     NOARGS          { int|sys||issetugid(void); }
657 306     STD             { int|netbsd32||utrace(netbsd32_charp label, \
658                             netbsd32_voidp addr, netbsd32_size_t len); }
659 307     STD             { int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
660 308     STD             { int|netbsd32||setcontext(netbsd32_ucontextp ucp, \
661                             uint32_t flags, netbsd32_lwpidp new_lwp); }
662 309     STD             { int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
663                             netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
664 310     NOARGS          { int|sys||_lwp_exit(void); }
665 311     NOARGS          { lwpid_t|sys||_lwp_self(void); }
666 312     STD             { int|netbsd32||_lwp_wait(lwpid_t wait_for, \
667                             netbsd32_lwpidp departed); }
668 313     STD             { int|netbsd32||_lwp_suspend(lwpid_t target); }
669 314     STD             { int|netbsd32||_lwp_continue(lwpid_t target); }
670 315     STD             { int|netbsd32||_lwp_wakeup(lwpid_t target); }
671 316     NOARGS          { netbsd32_voidp|sys||_lwp_getprivate(void); }
672 317     STD             { void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
673 318     STD             { int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
674 319     STD             { int|netbsd32||_lwp_detach(lwpid_t target); }
675 320     COMPAT_50       { int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
676                             lwpid_t unpark, netbsd32_voidp hint, \
677                             netbsd32_voidp unparkhint); }
678 321     STD             { int|netbsd32||_lwp_unpark(lwpid_t target, \
679                             netbsd32_voidp hint); }
680 322     STD             { netbsd32_size_t|netbsd32||_lwp_unpark_all( \
681                             netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
682                             netbsd32_voidp hint); }
683 323     STD             { int|netbsd32||_lwp_setname(lwpid_t target, \
684                                 netbsd32_charp name); }
685 324     STD             { int|netbsd32||_lwp_getname(lwpid_t target, \
686                                 netbsd32_charp name, netbsd32_size_t len); }
687 325     STD             { int|netbsd32||_lwp_ctl(int features, \
688                                 netbsd32_pointer_t address); }
689 326     UNIMPL
690 327     UNIMPL
691 328     UNIMPL
692 329     UNIMPL
693 330     STD             { int|netbsd32||sa_register(netbsd32_sa_upcall_t new, \
694                             netbsd32_sa_upcallp_t old, int flags, \
695                             netbsd32_ssize_t stackinfo_offset); }
696 331     STD             { int|netbsd32||sa_stacks(int num, \
697                             netbsd32_stackp_t stacks); }
698 332     NOARGS          { int|sys||sa_enable(void); }
699 333     STD             { int|netbsd32||sa_setconcurrency(int concurrency); }
700 334     NOARGS          { int|sys||sa_yield(void); }
701 335     STD             { int|netbsd32||sa_preempt(int sa_id); }
702 336     OBSOL           sys_sa_unblockyield
703 337     UNIMPL
704 338     UNIMPL
705 339     UNIMPL
706 340     STD             { int|netbsd32||__sigaction_sigtramp(int signum, \
707                             netbsd32_sigactionp_t nsa, \
708                             netbsd32_sigactionp_t osa, \
709                             netbsd32_voidp tramp, int vers); }
710 341     UNIMPL
711 342     UNIMPL
712 343     STD             { int|netbsd32||rasctl(netbsd32_voidp addr, \
713                             netbsd32_size_t len, int op); }
714 344     NOARGS          { int|sys||kqueue(void); }
715 345     COMPAT_50       { int|netbsd32||kevent(int fd, \
716                             netbsd32_keventp_t changelist, \
717                             netbsd32_size_t nchanges, \
718                             netbsd32_keventp_t eventlist, \
719                             netbsd32_size_t nevents, \
720                             netbsd32_timespec50p_t timeout); }
721 ; Scheduling system calls.
722 346     STD             { int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
723                             int policy, const netbsd32_sched_paramp_t params); }
724 347     STD             { int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
725                             netbsd32_intp policy, \
726                             netbsd32_sched_paramp_t params); }
727 348     STD             { int|netbsd32||_sched_setaffinity(pid_t pid, \
728                             lwpid_t lid, netbsd32_size_t size, \
729                             const netbsd32_cpusetp_t cpuset); }
730 349     STD             { int|netbsd32||_sched_getaffinity(pid_t pid, \
731                             lwpid_t lid, netbsd32_size_t size, \
732                             netbsd32_cpusetp_t cpuset); }
733 350     NOARGS          { int|sys||sched_yield(void); }
734 351     UNIMPL
735 352     UNIMPL
736 353     UNIMPL
737 354     STD             { int|netbsd32||fsync_range(int fd, int flags, \
738                             off_t start, off_t length); }
739 355     STD             { int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
740                             int count); }
741 356     STD             { int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
742                             netbsd32_size_t bufsize, int flags); }
743 357     STD             { int|netbsd32||statvfs1(netbsd32_charp path, \
744                             netbsd32_statvfsp_t buf, int flags); }
745 358     STD             { int|netbsd32||fstatvfs1(int fd, \
746                             netbsd32_statvfsp_t buf, int flags); }
747 359     COMPAT_30       { int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
748                             netbsd32_statvfsp_t buf, int flags); }
749 360     STD             { int|netbsd32||extattrctl(netbsd32_charp path, \
750                             int cmd, netbsd32_charp filename, \
751                             int attrnamespace, netbsd32_charp attrname); }
752 361     STD             { int|netbsd32||extattr_set_file(netbsd32_charp path, \
753                             int attrnamespace, netbsd32_charp attrname, \
754                             netbsd32_voidp data, netbsd32_size_t nbytes); }
755 362     STD             { int|netbsd32||extattr_get_file(netbsd32_charp path, \
756                             int attrnamespace, netbsd32_charp attrname, \
757                             netbsd32_voidp data, netbsd32_size_t nbytes); }
758 363     STD             { int|netbsd32||extattr_delete_file( \
759                             netbsd32_charp path, int attrnamespace, \
760                             netbsd32_charp attrname); }
761 364     STD             { int|netbsd32||extattr_set_fd(int fd, \
762                             int attrnamespace, netbsd32_charp attrname, \
763                             netbsd32_voidp data, netbsd32_size_t nbytes); }
764 365     STD             { int|netbsd32||extattr_get_fd(int fd, \
765                             int attrnamespace, netbsd32_charp attrname, \
766                             netbsd32_voidp data, netbsd32_size_t nbytes); }
767 366     STD             { int|netbsd32||extattr_delete_fd(int fd, \
768                             int attrnamespace, netbsd32_charp attrname); }
769 367     STD             { int|netbsd32||extattr_set_link(netbsd32_charp path, \
770                             int attrnamespace, netbsd32_charp attrname, \
771                             netbsd32_voidp data, netbsd32_size_t nbytes); }
772 368     STD             { int|netbsd32||extattr_get_link(netbsd32_charp path, \
773                             int attrnamespace, netbsd32_charp attrname, \
774                             netbsd32_voidp data, netbsd32_size_t nbytes); }
775 369     STD             { int|netbsd32||extattr_delete_link( \
776                             netbsd32_charp path, int attrnamespace, \
777                             netbsd32_charp attrname); }
778 370     STD             { int|netbsd32||extattr_list_fd(int fd, \
779                             int attrnamespace, netbsd32_voidp data, \
780                             netbsd32_size_t nbytes); }
781 371     STD             { int|netbsd32||extattr_list_file(netbsd32_charp path, \
782                             int attrnamespace, netbsd32_voidp data, \
783                             netbsd32_size_t nbytes); }
784 372     STD             { int|netbsd32||extattr_list_link(netbsd32_charp path, \
785                             int attrnamespace, netbsd32_voidp data, \
786                             netbsd32_size_t nbytes); }
787 373     COMPAT_50       { int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
788                             netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
789                             netbsd32_timespec50p_t ts, \
790                             netbsd32_sigsetp_t mask); }
791 374     COMPAT_50       { int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
792                             u_int nfds, netbsd32_timespec50p_t ts, \
793                             netbsd32_sigsetp_t mask); }
794 375     STD             { int|netbsd32||setxattr(netbsd32_charp path, \
795                             netbsd32_charp name, netbsd32_voidp value, \
796                             netbsd32_size_t size, int flags); }
797 376     STD             { int|netbsd32||lsetxattr(netbsd32_charp path, \
798                             netbsd32_charp name, netbsd32_voidp value, \
799                             netbsd32_size_t size, int flags); }
800 377     STD             { int|netbsd32||fsetxattr(int fd, \
801                             netbsd32_charp name, netbsd32_voidp value, \
802                             netbsd32_size_t size, int flags); }
803 378     STD             { int|netbsd32||getxattr(netbsd32_charp path, \
804                             netbsd32_charp name, netbsd32_voidp value, \
805                             netbsd32_size_t size); }
806 379     STD             { int|netbsd32||lgetxattr(netbsd32_charp path, \
807                             netbsd32_charp name, netbsd32_voidp value, \
808                             netbsd32_size_t size); }
809 380     STD             { int|netbsd32||fgetxattr(int fd, \
810                             netbsd32_charp name, netbsd32_voidp value, \
811                             netbsd32_size_t size); }
812 381     STD             { int|netbsd32||listxattr(netbsd32_charp path, \
813                             netbsd32_charp list, netbsd32_size_t size); }
814 382     STD             { int|netbsd32||llistxattr(netbsd32_charp path, \
815                             netbsd32_charp list, netbsd32_size_t size); }
816 383     STD             { int|netbsd32||flistxattr(int fd, \
817                             netbsd32_charp list, netbsd32_size_t size); }
818 384     STD             { int|netbsd32||removexattr(netbsd32_charp path, \
819                             netbsd32_charp name); }
820 385     STD             { int|netbsd32||lremovexattr(netbsd32_charp path, \
821                             netbsd32_charp name); }
822 386     STD             { int|netbsd32||fremovexattr(int fd, \
823                             netbsd32_charp name); }
824 387     COMPAT_50       { int|netbsd32|30|stat(netbsd32_charp path, \
825                             netbsd32_stat50p_t ub); }
826 388     COMPAT_50       { int|netbsd32|30|fstat(int fd, \
827                             netbsd32_stat50p_t sb); }
828 389     COMPAT_50       { int|netbsd32|30|lstat( \
829                             netbsd32_charp path, netbsd32_stat50p_t ub); }
830 390     STD             { int|netbsd32|30|getdents(int fd, \
831                             netbsd32_charp buf, netbsd32_size_t count); }
832 391     IGNORED         old posix fadvise
833 392     COMPAT_30       { int|netbsd32|30|fhstat( \
834                             netbsd32_fhandlep_t fhp, \
835                             netbsd32_stat50p_t sb); }
836 #if defined(NTP) || !defined(_KERNEL_OPT)
837 393     COMPAT_50       { int|netbsd32||ntp_gettime( \
838                             netbsd32_ntptimeval50p_t ntvp); }
839 #else
840 393     EXCL            __ntp_gettime30
841 #endif
842 394     STD             { int|netbsd32|30|socket(int domain, int type, \
843                             int protocol); }
844 395     STD             { int|netbsd32|30|getfh(netbsd32_charp fname, \
845                             netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
846 396     STD             { int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
847                             netbsd32_size_t fh_size, int flags); }
848 397     STD             { int|netbsd32|40|fhstatvfs1(   \
849                             netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
850                             netbsd32_statvfsp_t buf, int flags); }
851 398     COMPAT_50       { int|netbsd32|40|fhstat(       \
852                             netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
853                             netbsd32_stat50p_t sb); }
855 ; Asynchronous I/O system calls
856 399     UNIMPL          sys_aio_cancel
857 400     UNIMPL          sys_aio_error
858 401     UNIMPL          sys_aio_fsync
859 402     UNIMPL          sys_aio_read
860 403     UNIMPL          sys_aio_return
861 404     UNIMPL          sys_aio_suspend
862 405     UNIMPL          sys_aio_write
863 406     UNIMPL          sys_lio_listio
865 407     UNIMPL
866 408     UNIMPL
867 409     UNIMPL
869 410     STD             { int|netbsd32||__mount50(netbsd32_charp type, \
870                             netbsd32_charp path, int flags, \
871                             netbsd32_voidp data, netbsd32_size_t data_len); }
872 411     STD             { netbsd32_voidp|netbsd32||mremap( \
873                             netbsd32_voidp old_address, \
874                             netbsd32_size_t old_size, \
875                             netbsd32_voidp new_address, \
876                             netbsd32_size_t new_size, int flags); }
878 412     UNIMPL
879 413     UNIMPL
880 414     UNIMPL
881 415     UNIMPL
883 416     STD             { int|netbsd32|50|posix_fadvise(int fd, int PAD, \
884                             off_t offset, off_t len, int advice); }
885 417     STD             { int|netbsd32|50|select(int nd, \
886                             netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
887                             netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
888 418     STD             { int|netbsd32|50|gettimeofday( \
889                             netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
890 419     STD             { int|netbsd32|50|settimeofday( \
891                             const netbsd32_timevalp_t tv, \
892                             const netbsd32_voidp tzp); }
893 420     STD             { int|netbsd32|50|utimes(const netbsd32_charp path, \
894                             const netbsd32_timevalp_t tptr); }
895 421     STD             { int|netbsd32|50|adjtime( \
896                             const netbsd32_timevalp_t delta, \
897                             netbsd32_timevalp_t olddelta); }
898 #if defined(LFS) || !defined(_KERNEL_OPT)
899 422     STD             { int|netbsd32|50|lfs_segwait( \
900                             netbsd32_fsid_tp_t fsidp, \
901                             netbsd32_timevalp_t tv); }
902 #else
903 422     EXCL            __lfs_segwait50
904 #endif
905 423     STD             { int|netbsd32|50|futimes(int fd, \
906                             const netbsd32_timevalp_t tptr); }
907 424     STD             { int|netbsd32|50|lutimes(const netbsd32_charp path, \
908                             const netbsd32_timevalp_t tptr); }
909 425     STD             { int|netbsd32|50|setitimer(int which, \
910                             const netbsd32_itimervalp_t itv, \
911                             netbsd32_itimervalp_t oitv); }
912 426     STD             { int|netbsd32|50|getitimer(int which, \
913                             netbsd32_itimervalp_t itv); }
914 427     STD             { int|netbsd32|50|clock_gettime(clockid_t clock_id, \
915                             netbsd32_timespecp_t tp); }
916 428     STD             { int|netbsd32|50|clock_settime(clockid_t clock_id, \
917                             const netbsd32_timespecp_t tp); }
918 429     STD             { int|netbsd32|50|clock_getres(clockid_t clock_id, \
919                             netbsd32_timespecp_t tp); }
920 430     STD             { int|netbsd32|50|nanosleep( \
921                             const netbsd32_timespecp_t rqtp, \
922                             netbsd32_timespecp_t rmtp); }
923 431     STD             { int|netbsd32|50|__sigtimedwait( \
924                             const netbsd32_sigsetp_t set, \
925                             netbsd32_siginfop_t info, \
926                             netbsd32_timespecp_t timeout); }
927 432     UNIMPL          netbsd32___mq_timedsend50
928 433     UNIMPL          netbsd32___mq_timedreceive50
929 434     STD             { int|netbsd32|50|_lwp_park( \
930                             const netbsd32_timespecp_t ts, \
931                             lwpid_t unpark, const netbsd32_voidp hint, \
932                             const netbsd32_voidp unparkhint); }
933 435     STD             { int|netbsd32|50|kevent(int fd, \
934                             const netbsd32_keventp_t changelist, \
935                             netbsd32_size_t nchanges, \
936                             netbsd32_keventp_t eventlist, \
937                             netbsd32_size_t nevents, \
938                             const netbsd32_timespecp_t timeout); }
939 436     STD             { int|netbsd32|50|pselect(int nd, \
940                             netbsd32_fd_setp_t in, \
941                             netbsd32_fd_setp_t ou, \
942                             netbsd32_fd_setp_t ex, \
943                             const netbsd32_timespecp_t ts, \
944                             const netbsd32_sigsetp_t mask); }
945 437     STD             { int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
946                             u_int nfds, const netbsd32_timespecp_t ts, \
947                             const netbsd32_sigsetp_t mask); }
948 438     UNIMPL          netbsd32___aio_suspend50
949 439     STD             { int|netbsd32|50|stat(const netbsd32_charp path, \
950                             netbsd32_statp_t ub); }
951 440     STD             { int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
952 441     STD             { int|netbsd32|50|lstat(const netbsd32_charp path, \
953                             netbsd32_statp_t ub); }
954 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
955 442     STD             { int|netbsd32|50|__semctl(int semid, int semnum, \
956                             int cmd, ... netbsd32_semunp_t arg); }
957 #else
958 442     EXCL            ____semctl50
959 #endif
960 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
961 443     STD             { int|netbsd32|50|shmctl(int shmid, int cmd, \
962                             netbsd32_shmid_dsp_t buf); }
963 #else
964 443     EXCL            ____shmctl50
965 #endif
966 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
967 444     STD             { int|netbsd32|50|msgctl(int msqid, int cmd, \
968                             netbsd32_msqid_dsp_t buf); }
969 #else
970 444     EXCL            ____msgctl50
971 #endif
972 445     STD             { int|netbsd32|50|getrusage(int who, \
973                             netbsd32_rusagep_t rusage); }
974 446     STD             { int|netbsd32|50|timer_settime(timer_t timerid, \
975                             int flags, const netbsd32_itimerspecp_t value, \
976                             netbsd32_itimerspecp_t ovalue); }
977 447     STD             { int|netbsd32|50|timer_gettime(timer_t timerid, \
978                             netbsd32_itimerspecp_t value); }
979 #if defined(NTP) || !defined(_KERNEL_OPT)
980 448     STD             { int|netbsd32|50|ntp_gettime( \
981                             netbsd32_ntptimevalp_t ntvp); }
982 #else
983 448     EXCL            ___ntp_gettime50
984 #endif
985 449     STD             { int|netbsd32|50|wait4(int pid, \
986                             netbsd32_intp status, \
987                             int options, netbsd32_rusagep_t rusage); }
988 450     STD             { int|netbsd32|50|mknod(const netbsd32_charp path, \
989                             mode_t mode, netbsd32_dev_t dev); }
990 451     STD             { int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
991                             netbsd32_size_t fh_size, netbsd32_statp_t sb); }