syscalls.master revision 1.11 1 $NetBSD: syscalls.master,v 1.11 2004/04/21 01:05:36 christos Exp $
2
3 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
4
5 ; NetBSD system call name/number "master" file.
6 ; (See syscalls.conf to see what it is processed into.)
7 ;
8 ; Fields: number type [type-dependent ...]
9 ; number system call number, must be in order
10 ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 ; the compatibility options defined in syscalls.conf.
12 ;
13 ; types:
14 ; STD always included
15 ; OBSOL obsolete, not included in system
16 ; UNIMPL unimplemented, not included in system
17 ; EXCL implemented, but not included in system
18 ; NODEF included, but don't define the syscall number
19 ; NOARGS included, but don't define the syscall args structure
20 ; INDIR included, but don't define the syscall args structure,
21 ; and allow it to be "really" varargs.
22 ;
23 ; The compat options are defined in the syscalls.conf file, and the
24 ; compat option name is prefixed to the syscall name. Other than
25 ; that, they're like NODEF (for 'compat' options), or STD (for
26 ; 'libcompat' options).
27 ;
28 ; The type-dependent arguments are as follows:
29 ; For STD, NODEF, NOARGS, and compat syscalls:
30 ; { pseudo-proto } [alias]
31 ; For other syscalls:
32 ; [comment]
33 ;
34 ; #ifdef's, etc. may be included, and are copied to the output files.
35 ; #include's are copied to the syscall names and switch definition files only.
36
37 #if defined(_KERNEL_OPT)
38 #include "opt_ktrace.h"
39 #include "opt_nfsserver.h"
40 #include "opt_ntp.h"
41 #include "opt_compat_netbsd.h"
42 #include "opt_sysv.h"
43 #include "opt_compat_43.h"
44
45 #include "fs_lfs.h"
46 #include "fs_nfs.h"
47 #endif
48
49 #include <sys/param.h>
50 #include <sys/systm.h>
51 #include <sys/signal.h>
52 #include <sys/mount.h>
53 #include <sys/sa.h>
54 #include <sys/syscallargs.h>
55 #include <compat/aoutm68k/aoutm68k_syscallargs.h>
56
57 %%
58
59 ; Reserved/unimplemented system calls in the range 0-150 inclusive
60 ; are reserved for use in future Berkeley releases.
61 ; Additional system calls implemented in vendor and other
62 ; redistributions should be placed in the reserved range at the end
63 ; of the current calls.
64
65 0 INDIR { int sys_syscall(int number, ...); }
66 1 NOARGS { void sys_exit(int rval); }
67 2 NOARGS { int sys_fork(void); }
68 3 NOARGS { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
69 4 NOARGS { ssize_t sys_write(int fd, const void *buf, \
70 size_t nbyte); }
71 #ifdef COMPAT_AOUT_ALTPATH
72 5 STD { int aoutm68k_sys_open(const char *path, \
73 int flags, ... mode_t mode); }
74 #else
75 5 NOARGS { int sys_open(const char *path, int flags, \
76 ... mode_t mode); }
77 #endif
78 6 NOARGS { int sys_close(int fd); }
79 7 NOARGS { int sys_wait4(int pid, int *status, int options, \
80 struct rusage *rusage); }
81 #ifdef COMPAT_43
82 8 NOARGS { int compat_43_sys_creat(const char *path, \
83 mode_t mode); } ocreat
84 #else
85 8 EXCL compat_43_sys_creat
86 #endif
87 #ifdef COMPAT_AOUT_ALTPATH
88 9 STD { int aoutm68k_sys_link(const char *path, \
89 const char *link); }
90 10 STD { int aoutm68k_sys_unlink(const char *path); }
91 #else
92 9 NOARGS { int sys_link(const char *path, const char *link); }
93 10 NOARGS { int sys_unlink(const char *path); }
94 #endif
95 11 OBSOL execv
96 #ifdef COMPAT_AOUT_ALTPATH
97 12 STD { int aoutm68k_sys_chdir(const char *path); }
98 #else
99 12 NOARGS { int sys_chdir(const char *path); }
100 #endif
101 13 NOARGS { int sys_fchdir(int fd); }
102 14 NOARGS { int sys_mknod(const char *path, mode_t mode, \
103 dev_t dev); }
104 #ifdef COMPAT_AOUT_ALTPATH
105 15 STD { int aoutm68k_sys_chmod(const char *path, \
106 mode_t mode); }
107 16 STD { int aoutm68k_sys_chown(const char *path, uid_t uid, \
108 gid_t gid); }
109 #else
110 15 NOARGS { int sys_chmod(const char *path, mode_t mode); }
111 16 NOARGS { int sys_chown(const char *path, uid_t uid, \
112 gid_t gid); }
113 #endif
114 17 NOARGS { int sys_obreak(char *nsize); } break
115 #ifdef COMPAT_20
116 18 NOARGS { int compat_20_sys_getfsstat(struct statfs12 *buf, \
117 long bufsize, int flags); }
118 #else
119 18 EXCL compat_20_sys_getfsstat
120 #endif
121 #ifdef COMPAT_43
122 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
123 int whence); } olseek
124 #else
125 19 EXCL compat_43_sys_lseek
126 #endif
127 20 NOARGS MPSAFE { pid_t sys_getpid(void); }
128 21 NOARGS { int sys_mount(const char *type, \
129 const char *path, int flags, void *data); }
130 22 NOARGS { int sys_unmount(const char *path, int flags); }
131 23 NOARGS { int sys_setuid(uid_t uid); }
132 24 NOARGS { uid_t sys_getuid(void); }
133 25 NOARGS { uid_t sys_geteuid(void); }
134 26 NOARGS { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
135 int data); }
136 27 NOARGS { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
137 int flags); }
138 28 NOARGS { ssize_t sys_sendmsg(int s, \
139 const struct msghdr *msg, int flags); }
140 29 NOARGS { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
141 int flags, struct sockaddr *from, \
142 unsigned int *fromlenaddr); }
143 30 NOARGS { int sys_accept(int s, struct sockaddr *name, \
144 unsigned int *anamelen); }
145 31 NOARGS { int sys_getpeername(int fdes, struct sockaddr *asa, \
146 unsigned int *alen); }
147 32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \
148 unsigned int *alen); }
149 #ifdef COMPAT_AOUT_ALTPATH
150 33 STD { int aoutm68k_sys_access(const char *path, int flags); }
151 34 STD { int aoutm68k_sys_chflags(const char *path, \
152 u_long flags); }
153 #else
154 33 NOARGS { int sys_access(const char *path, int flags); }
155 34 NOARGS { int sys_chflags(const char *path, u_long flags); }
156 #endif
157 35 NOARGS { int sys_fchflags(int fd, u_long flags); }
158 36 NOARGS { void sys_sync(void); }
159 37 NOARGS { int sys_kill(int pid, int signum); }
160 #ifdef COMPAT_43
161 38 STD { int aoutm68k_compat_43_sys_stat(const char *path, \
162 struct aoutm68k_stat43 *ub); } stat43
163 #else
164 38 EXCL aoutm68k_compat_43_sys_stat
165 #endif
166 39 NOARGS { pid_t sys_getppid(void); }
167 #ifdef COMPAT_43
168 40 STD { int aoutm68k_compat_43_sys_lstat(const char *path, \
169 struct aoutm68k_stat43 *ub); } lstat43
170 #else
171 40 EXCL aoutm68k_compat_43_sys_lstat
172 #endif
173 41 NOARGS { int sys_dup(int fd); }
174 42 NOARGS { int sys_pipe(void); }
175 43 NOARGS { gid_t sys_getegid(void); }
176 44 NOARGS { int sys_profil(caddr_t samples, size_t size, \
177 u_long offset, u_int scale); }
178 #if defined(KTRACE) || !defined(_KERNEL)
179 45 NOARGS { int sys_ktrace(const char *fname, int ops, \
180 int facs, int pid); }
181 #else
182 45 EXCL ktrace
183 #endif
184 #ifdef COMPAT_13
185 46 NOARGS { int compat_13_sys_sigaction(int signum, \
186 const struct sigaction13 *nsa, \
187 struct sigaction13 *osa); } sigaction13
188 #else
189 46 EXCL compat_13_sys_sigaction
190 #endif
191 47 NOARGS { gid_t sys_getgid(void); }
192 #ifdef COMPAT_13
193 48 NOARGS { int compat_13_sys_sigprocmask(int how, \
194 int mask); } sigprocmask13
195 #else
196 48 EXCL compat_13_sys_sigprocmask
197 #endif
198 49 NOARGS { int sys___getlogin(char *namebuf, size_t namelen); }
199 50 NOARGS { int sys___setlogin(const char *namebuf); }
200 51 NOARGS { int sys_acct(const char *path); }
201 #ifdef COMPAT_13
202 52 NOARGS { int compat_13_sys_sigpending(void); } sigpending13
203 53 NOARGS { int compat_13_sys_sigaltstack( \
204 const struct sigaltstack13 *nss, \
205 struct sigaltstack13 *oss); } sigaltstack13
206 #else
207 52 EXCL compat_13_sys_sigpending
208 53 EXCL compat_13_sys_sigaltstack
209 #endif
210 54 STD { int aoutm68k_sys_ioctl(int fd, \
211 u_long com, ... void *data); }
212 #ifdef COMPAT_12
213 55 NOARGS { int compat_12_sys_reboot(int opt); } oreboot
214 #else
215 55 EXCL compat_12_sys_reboot
216 #endif
217 #ifdef COMPAT_AOUT_ALTPATH
218 56 STD { int aoutm68k_sys_revoke(const char *path); }
219 57 STD { int aoutm68k_sys_symlink(const char *path, \
220 const char *link); }
221 58 STD { int aoutm68k_sys_readlink(const char *path, \
222 char *buf, size_t count); }
223 59 STD { int aoutm68k_sys_execve(const char *path, \
224 char * const *argp, char * const *envp); }
225 #else
226 56 NOARGS { int sys_revoke(const char *path); }
227 57 NOARGS { int sys_symlink(const char *path, \
228 const char *link); }
229 58 NOARGS { int sys_readlink(const char *path, \
230 char *buf, size_t count); }
231 59 NOARGS { int sys_execve(const char *path, \
232 char * const *argp, char * const *envp); }
233 #endif
234 60 NOARGS { mode_t sys_umask(mode_t newmask); }
235 #ifdef COMPAT_AOUT_ALTPATH
236 61 STD { int aoutm68k_sys_chroot(const char *path); }
237 #else
238 61 NOARGS { int sys_chroot(const char *path); }
239 #endif
240 #ifdef COMPAT_43
241 62 STD { int aoutm68k_compat_43_sys_fstat(int fd, \
242 struct aoutm68k_stat43 *sb); } fstat43
243 63 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \
244 int *size, int arg); } ogetkerninfo
245 64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize
246 #else
247 62 EXCL aoutm68k_compat_43_sys_fstat
248 63 EXCL compat_43_sys_getkerninfo
249 64 EXCL compat_43_sys_getpagesize
250 #endif
251 #ifdef COMPAT_12
252 65 NOARGS { int compat_12_sys_msync(caddr_t addr, size_t len); }
253 #else
254 65 EXCL compat_12_sys_msync
255 #endif
256 ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
257 66 NOARGS { int sys_vfork(void); }
258 67 OBSOL vread
259 68 OBSOL vwrite
260 69 NOARGS { int sys_sbrk(intptr_t incr); }
261 70 NOARGS { int sys_sstk(int incr); }
262 #ifdef COMPAT_43
263 71 NOARGS { int compat_43_sys_mmap(caddr_t addr, size_t len, \
264 int prot, int flags, int fd, long pos); } ommap
265 #else
266 71 EXCL compat_43_sys_mmap
267 #endif
268 72 NOARGS { int sys_ovadvise(int anom); } vadvise
269 73 NOARGS { int sys_munmap(void *addr, size_t len); }
270 74 NOARGS { int sys_mprotect(void *addr, size_t len, \
271 int prot); }
272 75 NOARGS { int sys_madvise(void *addr, size_t len, \
273 int behav); }
274 76 OBSOL vhangup
275 77 OBSOL vlimit
276 78 NOARGS { int sys_mincore(caddr_t addr, size_t len, \
277 char *vec); }
278 79 NOARGS { int sys_getgroups(int gidsetsize, \
279 gid_t *gidset); }
280 80 NOARGS { int sys_setgroups(int gidsetsize, \
281 const gid_t *gidset); }
282 81 NOARGS { int sys_getpgrp(void); }
283 82 NOARGS { int sys_setpgid(int pid, int pgid); }
284 83 NOARGS { int sys_setitimer(int which, \
285 const struct itimerval *itv, \
286 struct itimerval *oitv); }
287 #ifdef COMPAT_43
288 84 NOARGS { int compat_43_sys_wait(void); } owait
289 #else
290 84 EXCL compat_43_sys_wait
291 #endif
292 #ifdef COMPAT_12
293 85 NOARGS { int compat_12_sys_swapon(const char *name); } oswapon
294 #else
295 85 EXCL compat_12_sys_swapon
296 #endif
297 86 NOARGS { int sys_getitimer(int which, \
298 struct itimerval *itv); }
299 #ifdef COMPAT_43
300 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
301 u_int len); } ogethostname
302 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
303 u_int len); } osethostname
304 89 NOARGS { int compat_43_sys_getdtablesize(void); } \
305 ogetdtablesize
306 #else
307 87 EXCL compat_43_sys_gethostname
308 88 EXCL compat_43_sys_sethostname
309 89 EXCL compat_43_sys_getdtablesize
310 #endif
311 90 NOARGS { int sys_dup2(int from, int to); }
312 91 UNIMPL getdopt
313 92 NOARGS { int sys_fcntl(int fd, int cmd, ... void *arg); }
314 93 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \
315 fd_set *ex, struct timeval *tv); }
316 94 UNIMPL setdopt
317 95 NOARGS { int sys_fsync(int fd); }
318 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
319 97 NOARGS { int sys_socket(int domain, int type, int protocol); }
320 98 NOARGS { int sys_connect(int s, const struct sockaddr *name, \
321 int namelen); }
322 #ifdef COMPAT_43
323 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
324 int *anamelen); } oaccept
325 #else
326 99 EXCL compat_43_sys_accept
327 #endif
328 100 NOARGS { int sys_getpriority(int which, int who); }
329 #ifdef COMPAT_43
330 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
331 int flags); } osend
332 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
333 int flags); } orecv
334 #else
335 101 EXCL compat_43_sys_send
336 102 EXCL compat_43_sys_recv
337 #endif
338 #ifdef COMPAT_13
339 103 NOARGS { int compat_13_sys_sigreturn( \
340 struct sigcontext13 *sigcntxp); } sigreturn13
341 #else
342 103 EXCL compat_13_sys_sigreturn
343 #endif
344 104 NOARGS { int sys_bind(int s, const struct sockaddr *name, \
345 int namelen); }
346 105 NOARGS { int sys_setsockopt(int s, int level, int name, \
347 const void *val, int valsize); }
348 106 NOARGS { int sys_listen(int s, int backlog); }
349 107 OBSOL vtimes
350 #ifdef COMPAT_43
351 108 NOARGS { int compat_43_sys_sigvec(int signum, \
352 struct sigvec *nsv, struct sigvec *osv); } osigvec
353 109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock
354 110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask
355 #else
356 108 EXCL compat_43_sys_sigvec
357 109 EXCL compat_43_sys_sigblock
358 110 EXCL compat_43_sys_sigsetmask
359 #endif
360 #ifdef COMPAT_13
361 111 NOARGS { int compat_13_sys_sigsuspend(int mask); } sigsuspend13
362 #else
363 111 EXCL compat_13_sys_sigsuspend
364 #endif
365 #ifdef COMPAT_43
366 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
367 struct sigstack *oss); } osigstack
368 113 NOARGS { int compat_43_sys_recvmsg(int s, \
369 struct omsghdr *msg, int flags); } orecvmsg
370 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
371 int flags); } osendmsg
372 #else
373 112 EXCL compat_43_sys_sigstack
374 113 EXCL compat_43_sys_recvmesg
375 114 EXCL compat_43_sys_sendmesg
376 #endif
377 115 OBSOL vtrace
378 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
379 struct timezone *tzp); }
380 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
381 118 NOARGS { int sys_getsockopt(int s, int level, int name, \
382 void *val, int *avalsize); }
383 119 OBSOL resuba
384 120 NOARGS { ssize_t sys_readv(int fd, \
385 const struct iovec *iovp, int iovcnt); }
386 121 NOARGS { ssize_t sys_writev(int fd, \
387 const struct iovec *iovp, int iovcnt); }
388 122 NOARGS { int sys_settimeofday(const struct timeval *tv, \
389 const struct timezone *tzp); }
390 123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); }
391 124 NOARGS { int sys_fchmod(int fd, mode_t mode); }
392 #ifdef COMPAT_43
393 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
394 size_t len, int flags, caddr_t from, \
395 int *fromlenaddr); } orecvfrom
396 #else
397 125 EXCL compat_43_sys_recvfrom
398 #endif
399 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
400 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
401 #ifdef COMPAT_AOUT_ALTPATH
402 128 STD { int aoutm68k_sys_rename(const char *from, \
403 const char *to); }
404 #else
405 128 NOARGS { int sys_rename(const char *from, const char *to); }
406 #endif
407 #ifdef COMPAT_43
408 #ifdef COMPAT_AOUT_ALTPATH
409 129 STD { int aoutm68k_compat_43_sys_truncate(const char *path, \
410 long length); } otruncate
411 #else
412 129 NOARGS { int compat_43_sys_truncate(const char *path, \
413 long length); } otruncate
414 #endif
415 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \
416 oftruncate
417 #else
418 #ifdef COMPAT_AOUT_ALTPATH
419 129 EXCL aoutm68k_compat_43_sys_truncate
420 #else
421 129 EXCL compat_43_sys_truncate
422 #endif
423 130 EXCL compat_43_sys_ftruncate
424 #endif
425 131 NOARGS { int sys_flock(int fd, int how); }
426 132 NOARGS { int sys_mkfifo(const char *path, mode_t mode); }
427 133 NOARGS { ssize_t sys_sendto(int s, const void *buf, \
428 size_t len, int flags, const struct sockaddr *to, \
429 int tolen); }
430 134 NOARGS { int sys_shutdown(int s, int how); }
431 135 NOARGS { int sys_socketpair(int domain, int type, \
432 int protocol, int *rsv); }
433 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); }
434 #ifdef COMPAT_AOUT_ALTPATH
435 137 STD { int aoutm68k_sys_rmdir(const char *path); }
436 138 STD { int aoutm68k_sys_utimes(const char *path, \
437 const struct timeval *tptr); }
438 #else
439 137 NOARGS { int sys_rmdir(const char *path); }
440 138 NOARGS { int sys_utimes(const char *path, \
441 const struct timeval *tptr); }
442 #endif
443 139 OBSOL 4.2 sigreturn
444 140 NOARGS { int sys_adjtime(const struct timeval *delta, \
445 struct timeval *olddelta); }
446 #ifdef COMPAT_43
447 141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
448 int *alen); } ogetpeername
449 142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid
450 143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \
451 osethostid
452 144 NOARGS { int compat_43_sys_getrlimit(int which, \
453 struct orlimit *rlp); } ogetrlimit
454 145 NOARGS { int compat_43_sys_setrlimit(int which, \
455 const struct orlimit *rlp); } osetrlimit
456 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \
457 okillpg
458 #else
459 141 EXCL compat_43_sys_getpeername
460 142 EXCL compat_43_sys_gethostid
461 143 EXCL compat_43_sys_sethostid
462 144 EXCL compat_43_sys_getrlimit
463 145 EXCL compat_43_sys_setrlimit
464 146 EXCL compat_43_sys_killpg
465 #endif
466 147 NOARGS { int sys_setsid(void); }
467 148 NOARGS { int sys_quotactl(const char *path, \
468 int cmd, int uid, caddr_t arg); }
469 #ifdef COMPAT_43
470 149 NOARGS { int compat_43_sys_quota(void); } oquota
471 150 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \
472 int *alen); } ogetsockname
473 #else
474 149 EXCL compat_43_sys_quota
475 150 EXCL compat_43_sys_getsockname
476 #endif
477
478 ; Syscalls 151-180 inclusive are reserved for vendor-specific
479 ; system calls. (This includes various calls added for compatibity
480 ; with other Unix variants.)
481 ; Some of these calls are now supported by BSD...
482 151 UNIMPL
483 152 UNIMPL
484 153 UNIMPL
485 154 UNIMPL
486 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
487 155 NOARGS { int sys_nfssvc(int flag, void *argp); }
488 #else
489 155 EXCL nfssvc
490 #endif
491 #ifdef COMPAT_43
492 156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
493 u_int count, long *basep); } ogetdirentries
494 #else
495 156 EXCL compat_43_sys_getdirentries
496 #endif
497 #ifdef COMPAT_AOUT_ALTPATH
498 157 STD { int aoutm68k_sys_statfs(const char *path, \
499 struct statfs12 *buf); }
500 #else
501 #ifdef COMPAT_20
502 157 NOARGS { int compat_20_sys_statfs(const char *path, \
503 struct statfs12 *buf); }
504 #else
505 157 EXCL compat_20_sys_statfs
506 #endif
507 #endif
508 #ifdef COMPAT_20
509 158 NOARGS { int compat_20_sys_fstatfs(int fd, \
510 struct statfs12 *buf); }
511 #else
512 158 EXCL compat_20_sys_statfs
513 #endif
514 159 UNIMPL
515 160 UNIMPL
516 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
517 #ifdef COMPAT_AOUT_ALTPATH
518 161 STD { int aoutm68k_sys_getfh(const char *fname, \
519 fhandle_t *fhp); }
520 #else
521 161 NOARGS { int sys_getfh(const char *fname, fhandle_t *fhp); }
522 #endif
523 #else
524 161 EXCL getfh
525 #endif
526 #ifdef COMPAT_09
527 162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
528 int len); } ogetdomainname
529 163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
530 int len); } osetdomainname
531 164 NOARGS { int compat_09_sys_uname(struct outsname *name); } \
532 ouname
533 #else
534 162 EXCL compat_09_sys_getdomainname
535 163 EXCL compat_09_sys_setdomainname
536 164 EXCL compat_09_sys_uname
537 #endif
538 165 NOARGS { int sys_sysarch(int op, void *parms); }
539 166 UNIMPL
540 167 UNIMPL
541 168 UNIMPL
542 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
543 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
544 169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \
545 int a4, int a5); } osemsys
546 #else
547 169 EXCL 1.0 semsys
548 #endif
549 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
550 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
551 170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \
552 int a4, int a5, int a6); } omsgsys
553 #else
554 170 EXCL 1.0 msgsys
555 #endif
556 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
557 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
558 171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \
559 int a4); } oshmsys
560 #else
561 171 EXCL 1.0 shmsys
562 #endif
563 172 UNIMPL
564 173 NOARGS { ssize_t sys_pread(int fd, void *buf, \
565 size_t nbyte, int pad, off_t offset); }
566 174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \
567 size_t nbyte, int pad, off_t offset); }
568 ; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
569 175 NOARGS { int sys_ntp_gettime(struct ntptimeval *ntvp); }
570 #if defined(NTP) || !defined(_KERNEL)
571 176 NOARGS { int sys_ntp_adjtime(struct timex *tp); }
572 #else
573 176 EXCL ntp_adjtime
574 #endif
575 177 UNIMPL
576 178 UNIMPL
577 179 UNIMPL
578 180 UNIMPL
579
580 ; Syscalls 180-199 are used by/reserved for BSD
581 181 NOARGS { int sys_setgid(gid_t gid); }
582 182 NOARGS { int sys_setegid(gid_t egid); }
583 183 NOARGS { int sys_seteuid(uid_t euid); }
584 #if defined(LFS) || !defined(_KERNEL)
585 184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \
586 struct block_info *blkiov, int blkcnt); }
587 185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \
588 struct block_info *blkiov, int blkcnt); }
589 186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
590 187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, \
591 struct timeval *tv); }
592 #else
593 184 EXCL lfs_bmapv
594 185 EXCL lfs_markv
595 186 EXCL lfs_segclean
596 187 EXCL lfs_segwait
597 #endif
598 #ifdef COMPAT_12
599 188 STD { int aoutm68k_compat_12_sys_stat(const char *path, \
600 struct aoutm68k_stat12 *ub); } stat12
601 189 STD { int aoutm68k_compat_12_sys_fstat(int fd, \
602 struct aoutm68k_stat12 *sb); } fstat12
603 190 STD { int aoutm68k_compat_12_sys_lstat(const char *path, \
604 struct aoutm68k_stat12 *ub); } lstat12
605 #else
606 188 EXCL aoutm68k_compat_12_sys_stat
607 189 EXCL aoutm68k_compat_12_sys_fstat
608 190 EXCL aoutm68k_compat_12_sys_lstat
609 #endif
610 #ifdef COMPAT_AOUT_ALTPATH
611 191 STD { long aoutm68k_sys_pathconf(const char *path, \
612 int name); }
613 #else
614 191 NOARGS { long sys_pathconf(const char *path, int name); }
615 #endif
616 192 NOARGS { long sys_fpathconf(int fd, int name); }
617 193 UNIMPL
618 194 NOARGS { int sys_getrlimit(int which, \
619 struct rlimit *rlp); }
620 195 NOARGS { int sys_setrlimit(int which, \
621 const struct rlimit *rlp); }
622 #ifdef COMPAT_12
623 196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \
624 u_int count, long *basep); }
625 #else
626 196 EXCL compat_12_sys_getdirentries
627 #endif
628 197 NOARGS { void *sys_mmap(void *addr, size_t len, int prot, \
629 int flags, int fd, long pad, off_t pos); }
630 198 INDIR { quad_t sys___syscall(quad_t num, ...); }
631 199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \
632 int whence); }
633 #ifdef COMPAT_AOUT_ALTPATH
634 200 STD { int aoutm68k_sys_truncate(const char *path, int pad, \
635 off_t length); }
636 #else
637 200 NOARGS { int sys_truncate(const char *path, int pad, \
638 off_t length); }
639 #endif
640 201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); }
641 202 NOARGS { int sys___sysctl(int *name, u_int namelen, \
642 void *old, size_t *oldlenp, void *new, \
643 size_t newlen); }
644 203 NOARGS { int sys_mlock(const void *addr, size_t len); }
645 204 NOARGS { int sys_munlock(const void *addr, size_t len); }
646 #ifdef COMPAT_AOUT_ALTPATH
647 205 STD { int aoutm68k_sys_undelete(const char *path); }
648 #else
649 205 NOARGS { int sys_undelete(const char *path); }
650 #endif
651 206 NOARGS { int sys_futimes(int fd, \
652 const struct timeval *tptr); }
653 207 NOARGS { pid_t sys_getpgid(pid_t pid); }
654 208 NOARGS { int sys_reboot(int opt, char *bootstr); }
655 209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
656 int timeout); }
657 ;
658 ; Syscalls 210-219 are reserved for dynamically loaded syscalls
659 ;
660 #if defined(LKM) || !defined(_KERNEL)
661 210 NODEF { int sys_lkmnosys(void); }
662 211 NODEF { int sys_lkmnosys(void); }
663 212 NODEF { int sys_lkmnosys(void); }
664 213 NODEF { int sys_lkmnosys(void); }
665 214 NODEF { int sys_lkmnosys(void); }
666 215 NODEF { int sys_lkmnosys(void); }
667 216 NODEF { int sys_lkmnosys(void); }
668 217 NODEF { int sys_lkmnosys(void); }
669 218 NODEF { int sys_lkmnosys(void); }
670 219 NODEF { int sys_lkmnosys(void); }
671 #else /* !LKM */
672 210 EXCL lkmnosys
673 211 EXCL lkmnosys
674 212 EXCL lkmnosys
675 213 EXCL lkmnosys
676 214 EXCL lkmnosys
677 215 EXCL lkmnosys
678 216 EXCL lkmnosys
679 217 EXCL lkmnosys
680 218 EXCL lkmnosys
681 219 EXCL lkmnosys
682 #endif /* !LKM */
683 ; System calls 220-300 are reserved for use by NetBSD
684 #if defined(SYSVSEM) || !defined(_KERNEL)
685 #ifdef COMPAT_14
686 220 NOARGS { int compat_14_sys___semctl(int semid, \
687 int semnum, int cmd, union __semun *arg); }
688 #else
689 220 EXCL compat_14_semctl
690 #endif
691 221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
692 222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
693 size_t nsops); }
694 223 NOARGS { int sys_semconfig(int flag); }
695 #else
696 220 EXCL compat_14_semctl
697 221 EXCL semget
698 222 EXCL semop
699 223 EXCL semconfig
700 #endif
701 #if defined(SYSVMSG) || !defined(_KERNEL)
702 #ifdef COMPAT_14
703 224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \
704 struct msqid_ds14 *buf); }
705 #else
706 224 EXCL compat_14_sys_msgctl
707 #endif
708 225 NOARGS { int sys_msgget(key_t key, int msgflg); }
709 226 NOARGS { int sys_msgsnd(int msqid, const void *msgp, \
710 size_t msgsz, int msgflg); }
711 227 NOARGS { ssize_t sys_msgrcv(int msqid, void *msgp, \
712 size_t msgsz, long msgtyp, int msgflg); }
713 #else
714 224 EXCL compat_14_msgctl
715 225 EXCL msgget
716 226 EXCL msgsnd
717 227 EXCL msgrcv
718 #endif
719 #if defined(SYSVSHM) || !defined(_KERNEL)
720 228 NOARGS { void *sys_shmat(int shmid, const void *shmaddr, \
721 int shmflg); }
722 #ifdef COMPAT_14
723 229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \
724 struct shmid_ds14 *buf); }
725 #else
726 229 EXCL compat_14_sys_shmctl
727 #endif
728 230 NOARGS { int sys_shmdt(const void *shmaddr); }
729 231 NOARGS { int sys_shmget(key_t key, size_t size, int shmflg); }
730 #else
731 228 EXCL shmat
732 229 EXCL compat_14_shmctl
733 230 EXCL shmdt
734 231 EXCL shmget
735 #endif
736 232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \
737 struct timespec *tp); }
738 233 NOARGS { int sys_clock_settime(clockid_t clock_id, \
739 const struct timespec *tp); }
740 234 NOARGS { int sys_clock_getres(clockid_t clock_id, \
741 struct timespec *tp); }
742 235 UNIMPL timer_create
743 236 UNIMPL timer_delete
744 237 UNIMPL timer_settime
745 238 UNIMPL timer_gettime
746 239 UNIMPL timer_getoverrun
747 ;
748 ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
749 ;
750 240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
751 struct timespec *rmtp); }
752 241 NOARGS { int sys_fdatasync(int fd); }
753 242 NOARGS { int sys_mlockall(int flags); }
754 243 NOARGS { int sys_munlockall(void); }
755 244 UNIMPL
756 245 UNIMPL
757 246 UNIMPL
758 247 UNIMPL
759 248 UNIMPL
760 249 UNIMPL
761 250 UNIMPL
762 251 UNIMPL
763 252 UNIMPL
764 253 UNIMPL
765 254 UNIMPL
766 255 UNIMPL
767 256 UNIMPL
768 257 UNIMPL
769 258 UNIMPL
770 259 UNIMPL
771 260 UNIMPL
772 261 UNIMPL
773 262 UNIMPL
774 263 UNIMPL
775 264 UNIMPL
776 265 UNIMPL
777 266 UNIMPL
778 267 UNIMPL
779 268 UNIMPL
780 269 UNIMPL
781 #ifdef COMPAT_AOUT_ALTPATH
782 270 STD { int aoutm68k_sys___posix_rename(const char *from, \
783 const char *to); }
784 #else
785 270 NOARGS { int sys___posix_rename(const char *from, \
786 const char *to); }
787 #endif
788 271 NOARGS { int sys_swapctl(int cmd, const void *arg, int misc); }
789 272 NOARGS { int sys_getdents(int fd, char *buf, size_t count); }
790 273 NOARGS { int sys_minherit(void *addr, size_t len, \
791 int inherit); }
792 #ifdef COMPAT_AOUT_ALTPATH
793 274 STD { int aoutm68k_sys_lchmod(const char *path, \
794 mode_t mode); }
795 275 STD { int aoutm68k_sys_lchown(const char *path, uid_t uid, \
796 gid_t gid); }
797 276 STD { int aoutm68k_sys_lutimes(const char *path, \
798 const struct timeval *tptr); }
799 #else
800 274 NOARGS { int sys_lchmod(const char *path, mode_t mode); }
801 275 NOARGS { int sys_lchown(const char *path, uid_t uid, \
802 gid_t gid); }
803 276 NOARGS { int sys_lutimes(const char *path, \
804 const struct timeval *tptr); }
805 #endif
806 277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); }
807 278 STD { int aoutm68k_sys___stat13(const char *path, \
808 struct aoutm68k_stat *ub); }
809 279 STD { int aoutm68k_sys___fstat13(int fd, \
810 struct aoutm68k_stat *sb); }
811 280 STD { int aoutm68k_sys___lstat13(const char *path, \
812 struct aoutm68k_stat *ub); }
813 281 NOARGS { int sys___sigaltstack14( \
814 const struct sigaltstack *nss, \
815 struct sigaltstack *oss); }
816 282 NOARGS { int sys___vfork14(void); }
817 #ifdef COMPAT_AOUT_ALTPATH
818 283 STD { int aoutm68k_sys___posix_chown(const char *path, \
819 uid_t uid, gid_t gid); }
820 #else
821 283 NOARGS { int sys___posix_chown(const char *path, uid_t uid, \
822 gid_t gid); }
823 #endif
824 284 NOARGS { int sys___posix_fchown(int fd, uid_t uid, \
825 gid_t gid); }
826 285 NOARGS { int sys___posix_lchown(const char *path, uid_t uid, \
827 gid_t gid); }
828 286 NOARGS { pid_t sys_getsid(pid_t pid); }
829 287 UNIMPL
830 #if defined(KTRACE) || !defined(_KERNEL)
831 288 NOARGS { int sys_fktrace(const int fd, int ops, \
832 int facs, int pid); }
833 #else
834 288 EXCL ktrace
835 #endif
836 289 NOARGS { ssize_t sys_preadv(int fd, \
837 const struct iovec *iovp, int iovcnt, \
838 int pad, off_t offset); }
839 290 NOARGS { ssize_t sys_pwritev(int fd, \
840 const struct iovec *iovp, int iovcnt, \
841 int pad, off_t offset); }
842 #ifdef COMPAT_16
843 291 NOARGS { int compat_16_sys___sigaction14(int signum, \
844 const struct sigaction *nsa, \
845 struct sigaction *osa); }
846 #else
847 291 EXCL compat_16_sys___sigaction14
848 #endif
849 292 NOARGS { int sys___sigpending14(sigset_t *set); }
850 293 NOARGS { int sys___sigprocmask14(int how, \
851 const sigset_t *set, \
852 sigset_t *oset); }
853 294 NOARGS { int sys___sigsuspend14(const sigset_t *set); }
854 #ifdef COMPAT_16
855 295 NOARGS { int compat_16_sys___sigreturn14(\
856 struct sigcontext *sigcntxp); }
857 #else
858 295 EXCL compat_16_sys___sigreturn14
859 #endif
860 296 NOARGS { int sys___getcwd(char *bufp, size_t length); }
861 297 NOARGS { int sys_fchroot(int fd); }
862 298 NOARGS { int sys_fhopen(const fhandle_t *fhp, int flags); }
863 299 STD { int aoutm68k_sys_fhstat(const fhandle_t *fhp, \
864 struct aoutm68k_stat *sb); }
865 #ifdef COMPAT_20
866 300 NOARGS { int compat_20_sys_fhstatfs(const fhandle_t *fhp, \
867 struct statfs12 *buf); }
868 #else
869 300 EXCL compat_20_sys_fhstatfs
870 #endif
871 #if defined(SYSVSEM) || !defined(_KERNEL)
872 301 NOARGS { int sys_____semctl13(int semid, int semnum, int cmd, \
873 ... union __semun *arg); }
874 #else
875 301 EXCL ____semctl13
876 #endif
877 #if defined(SYSVMSG) || !defined(_KERNEL)
878 302 NOARGS { int sys___msgctl13(int msqid, int cmd, \
879 struct msqid_ds *buf); }
880 #else
881 302 EXCL __msgctl13
882 #endif
883 #if defined(SYSVSHM) || !defined(_KERNEL)
884 303 NOARGS { int sys___shmctl13(int shmid, int cmd, \
885 struct shmid_ds *buf); }
886 #else
887 303 EXCL __shmctl13
888 #endif
889 304 NOARGS { int sys_lchflags(const char *path, u_long flags); }
890 305 NOARGS { int sys_issetugid(void); }
891 306 NOARGS { int sys_getcontext(struct __ucontext *ucp); }
892 307 NOARGS { int sys_setcontext(const struct __ucontext *ucp); }
893