1 $NetBSD: syscalls.master,v 1.32 2009/01/13 21:06:47 pooka Exp $
3 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
5 ; NetBSD system call name/number "master" file.
6 ; (See syscalls.conf to see what it is processed into.)
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.
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.
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).
28 ; The type-dependent arguments are as follows:
29 ; For STD, NODEF, NOARGS, and compat syscalls:
30 ; { pseudo-proto } [alias]
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.
37 #if defined(_KERNEL_OPT)
38 #include "opt_ktrace.h"
39 #include "opt_nfsserver.h"
41 #include "opt_compat_netbsd.h"
43 #include "opt_compat_43.h"
49 #include <sys/param.h>
50 #include <sys/systm.h>
51 #include <sys/signal.h>
52 #include <sys/mount.h>
53 #include <sys/sched.h>
54 #include <sys/syscallargs.h>
55 #include <compat/aoutm68k/aoutm68k_syscallargs.h>
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.
65 0 NOARGS INDIR { int|sys||syscall(int code, \
66 ... register32_t args[AOUTM68K_SYS_MAXSYSARGS]); }
67 1 NOARGS { void|sys||exit(int rval); }
68 2 NOARGS { int|sys||fork(void); }
69 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
70 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \
72 5 NOARGS { int|sys||open(const char *path, int flags, \
74 6 NOARGS { int|sys||close(int fd); }
75 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \
76 int options, struct rusage50 *rusage); }
77 #if defined(COMPAT_43) || !defined(_KERNEL)
78 8 NOARGS { int|compat_43_sys||creat(const char *path, \
79 mode_t mode); } ocreat
81 8 EXCL compat_43_sys_creat
83 9 NOARGS { int|sys||link(const char *path, const char *link); }
84 10 NOARGS { int|sys||unlink(const char *path); }
86 12 NOARGS { int|sys||chdir(const char *path); }
87 13 NOARGS { int|sys||fchdir(int fd); }
88 14 NOARGS { int|compat_50_sys||mknod(const char *path, \
89 mode_t mode, dev_t dev); }
90 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); }
91 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \
93 17 NOARGS { int|sys||obreak(char *nsize); } break
94 #if defined(COMPAT_20) || !defined(_KERNEL)
95 18 NOARGS { int|compat_20_sys||getfsstat(struct statfs12 *buf, \
96 long bufsize, int flags); }
98 18 EXCL compat_20_sys_getfsstat
100 #if defined(COMPAT_43) || !defined(_KERNEL)
101 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \
102 int whence); } olseek
104 19 EXCL compat_43_sys_lseek
106 20 NOARGS { pid_t|sys||getpid(void); }
107 21 NOARGS { int|compat_40_sys||mount(const char *type, \
108 const char *path, int flags, void *data); }
109 22 NOARGS { int|sys||unmount(const char *path, int flags); }
110 23 NOARGS { int|sys||setuid(uid_t uid); }
111 24 NOARGS { uid_t|sys||getuid(void); }
112 25 NOARGS { uid_t|sys||geteuid(void); }
113 26 NOARGS { int|sys||ptrace(int req, pid_t pid, void *addr, \
115 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
117 28 NOARGS { ssize_t|sys||sendmsg(int s, \
118 const struct msghdr *msg, int flags); }
119 29 NOARGS { ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
120 int flags, struct sockaddr *from, \
121 unsigned int *fromlenaddr); }
122 30 NOARGS { int|sys||accept(int s, struct sockaddr *name, \
123 unsigned int *anamelen); }
124 31 NOARGS { int|sys||getpeername(int fdes, struct sockaddr *asa, \
125 unsigned int *alen); }
126 32 NOARGS { int|sys||getsockname(int fdes, struct sockaddr *asa, \
127 unsigned int *alen); }
128 33 NOARGS { int|sys||access(const char *path, int flags); }
129 34 NOARGS { int|sys||chflags(const char *path, u_long flags); }
130 35 NOARGS { int|sys||fchflags(int fd, u_long flags); }
131 36 NOARGS { void|sys||sync(void); }
132 37 NOARGS { int|sys||kill(int pid, int signum); }
133 #if defined(COMPAT_43) || !defined(_KERNEL)
134 38 STD { int|aoutm68k_compat_43_sys||stat(const char *path, \
135 struct aoutm68k_stat43 *ub); } stat43
137 38 EXCL aoutm68k_compat_43_sys_stat
139 39 NOARGS { pid_t|sys||getppid(void); }
140 #if defined(COMPAT_43) || !defined(_KERNEL)
141 40 STD { int|aoutm68k_compat_43_sys||lstat(const char *path, \
142 struct aoutm68k_stat43 *ub); } lstat43
144 40 EXCL aoutm68k_compat_43_sys_lstat
146 41 NOARGS { int|sys||dup(int fd); }
147 42 NOARGS { int|sys||pipe(void); }
148 43 NOARGS { gid_t|sys||getegid(void); }
149 44 NOARGS { int|sys||profil(void *samples, size_t size, \
150 u_long offset, u_int scale); }
151 #if defined(KTRACE) || !defined(_KERNEL)
152 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \
153 int facs, int pid); }
157 #if defined(COMPAT_13) || !defined(_KERNEL)
158 46 NOARGS { int|compat_13_sys||sigaction(int signum, \
159 const struct sigaction13 *nsa, \
160 struct sigaction13 *osa); } sigaction13
162 46 EXCL compat_13_sys_sigaction
164 47 NOARGS { gid_t|sys||getgid(void); }
165 #if defined(COMPAT_13) || !defined(_KERNEL)
166 48 NOARGS { int|compat_13_sys||sigprocmask(int how, \
167 int mask); } sigprocmask13
169 48 EXCL compat_13_sys_sigprocmask
171 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); }
172 50 NOARGS { int|sys||__setlogin(const char *namebuf); }
173 51 NOARGS { int|sys||acct(const char *path); }
174 #if defined(COMPAT_13) || !defined(_KERNEL)
175 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13
176 53 NOARGS { int|compat_13_sys||sigaltstack( \
177 const struct sigaltstack13 *nss, \
178 struct sigaltstack13 *oss); } sigaltstack13
180 52 EXCL compat_13_sys_sigpending
181 53 EXCL compat_13_sys_sigaltstack
183 54 NOARGS { int|sys||ioctl(int fd, u_long com, ... void *data); }
184 #if defined(COMPAT_12) || !defined(_KERNEL)
185 55 NOARGS { int|compat_12_sys||reboot(int opt); } oreboot
187 55 EXCL compat_12_sys_reboot
189 56 NOARGS { int|sys||revoke(const char *path); }
190 57 NOARGS { int|sys||symlink(const char *path, \
192 58 NOARGS { int|sys||readlink(const char *path, \
193 char *buf, size_t count); }
194 59 NOARGS { int|sys||execve(const char *path, \
195 char * const *argp, char * const *envp); }
196 60 NOARGS { mode_t|sys||umask(mode_t newmask); }
197 61 NOARGS { int|sys||chroot(const char *path); }
198 #if defined(COMPAT_43) || !defined(_KERNEL)
199 62 STD { int|aoutm68k_compat_43_sys||fstat(int fd, \
200 struct aoutm68k_stat43 *sb); } fstat43
201 63 NOARGS { int|compat_43_sys||getkerninfo(int op, char *where, \
202 int *size, int arg); } ogetkerninfo
203 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize
205 62 EXCL aoutm68k_compat_43_sys_fstat
206 63 EXCL compat_43_sys_getkerninfo
207 64 EXCL compat_43_sys_getpagesize
209 #if defined(COMPAT_12) || !defined(_KERNEL)
210 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); }
212 65 EXCL compat_12_sys_msync
214 ; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
215 66 NOARGS { int|sys||vfork(void); }
218 69 NOARGS { int|sys||sbrk(intptr_t incr); }
219 70 NOARGS { int|sys||sstk(int incr); }
220 #if defined(COMPAT_43) || !defined(_KERNEL)
221 71 NOARGS { int|compat_43_sys||mmap(void *addr, size_t len, \
222 int prot, int flags, int fd, long pos); } ommap
224 71 EXCL compat_43_sys_mmap
226 72 NOARGS { int|sys||ovadvise(int anom); } vadvise
227 73 NOARGS { int|sys||munmap(void *addr, size_t len); }
228 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \
230 75 NOARGS { int|sys||madvise(void *addr, size_t len, \
234 78 NOARGS { int|sys||mincore(void *addr, size_t len, \
236 79 NOARGS { int|sys||getgroups(int gidsetsize, \
238 80 NOARGS { int|sys||setgroups(int gidsetsize, \
239 const gid_t *gidset); }
240 81 NOARGS { int|sys||getpgrp(void); }
241 82 NOARGS { int|sys||setpgid(int pid, int pgid); }
242 83 NOARGS { int|compat_50_sys||setitimer(int which, \
243 const struct itimerval50 *itv, \
244 struct itimerval50 *oitv); }
245 #if defined(COMPAT_43) || !defined(_KERNEL)
246 84 NOARGS { int|compat_43_sys||wait(void); } owait
248 84 EXCL compat_43_sys_wait
250 #if defined(COMPAT_12) || !defined(_KERNEL)
251 85 NOARGS { int|compat_12_sys||swapon(const char *name); } oswapon
253 85 EXCL compat_12_sys_swapon
255 86 NOARGS { int|compat_50_sys||getitimer(int which, \
256 struct itimerval50 *itv); }
257 #if defined(COMPAT_43) || !defined(_KERNEL)
258 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \
259 u_int len); } ogethostname
260 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \
261 u_int len); } osethostname
262 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \
265 87 EXCL compat_43_sys_gethostname
266 88 EXCL compat_43_sys_sethostname
267 89 EXCL compat_43_sys_getdtablesize
269 90 NOARGS { int|sys||dup2(int from, int to); }
271 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); }
272 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \
273 fd_set *ou, fd_set *ex, struct timeval50 *tv); }
275 95 NOARGS { int|sys||fsync(int fd); }
276 96 NOARGS { int|sys||setpriority(int which, int who, int prio); }
277 97 NOARGS { int|compat_30_sys||socket(int domain, int type, int protocol); }
278 98 NOARGS { int|sys||connect(int s, const struct sockaddr *name, \
280 #if defined(COMPAT_43) || !defined(_KERNEL)
281 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \
282 int *anamelen); } oaccept
284 99 EXCL compat_43_sys_accept
286 100 NOARGS { int|sys||getpriority(int which, int who); }
287 #if defined(COMPAT_43) || !defined(_KERNEL)
288 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \
290 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \
293 101 EXCL compat_43_sys_send
294 102 EXCL compat_43_sys_recv
296 #if defined(COMPAT_13) || !defined(_KERNEL)
297 103 NOARGS { int|compat_13_sys||sigreturn( \
298 struct sigcontext13 *sigcntxp); } sigreturn13
300 103 EXCL compat_13_sys_sigreturn
302 104 NOARGS { int|sys||bind(int s, const struct sockaddr *name, \
304 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \
305 const void *val, int valsize); }
306 106 NOARGS { int|sys||listen(int s, int backlog); }
308 #if defined(COMPAT_43) || !defined(_KERNEL)
309 108 NOARGS { int|compat_43_sys||sigvec(int signum, \
310 struct sigvec *nsv, struct sigvec *osv); } osigvec
311 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock
312 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask
314 108 EXCL compat_43_sys_sigvec
315 109 EXCL compat_43_sys_sigblock
316 110 EXCL compat_43_sys_sigsetmask
318 #if defined(COMPAT_13) || !defined(_KERNEL)
319 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } sigsuspend13
321 111 EXCL compat_13_sys_sigsuspend
323 #if defined(COMPAT_43) || !defined(_KERNEL)
324 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \
325 struct sigstack *oss); } osigstack
326 113 NOARGS { int|compat_43_sys||recvmsg(int s, \
327 struct omsghdr *msg, int flags); } orecvmsg
328 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \
329 int flags); } osendmsg
331 112 EXCL compat_43_sys_sigstack
332 113 EXCL compat_43_sys_recvmesg
333 114 EXCL compat_43_sys_sendmesg
336 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \
337 struct timezone *tzp); }
338 117 NOARGS { int|compat_50_sys||getrusage(int who, \
339 struct rusage50 *rusage); }
340 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \
341 void *val, int *avalsize); }
343 120 NOARGS { ssize_t|sys||readv(int fd, \
344 const struct iovec *iovp, int iovcnt); }
345 121 NOARGS { ssize_t|sys||writev(int fd, \
346 const struct iovec *iovp, int iovcnt); }
347 122 NOARGS { int|compat_50_sys||settimeofday( \
348 const struct timeval50 *tv, \
349 const struct timezone *tzp); }
350 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); }
351 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); }
352 #if defined(COMPAT_43) || !defined(_KERNEL)
353 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \
354 size_t len, int flags, void *from, \
355 int *fromlenaddr); } orecvfrom
357 125 EXCL compat_43_sys_recvfrom
359 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); }
360 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); }
361 128 NOARGS { int|sys||rename(const char *from, const char *to); }
362 #if defined(COMPAT_43) || !defined(_KERNEL)
363 129 NOARGS { int|compat_43_sys||truncate(const char *path, \
364 long length); } otruncate
365 130 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } \
368 129 EXCL compat_43_sys_truncate
369 130 EXCL compat_43_sys_ftruncate
371 131 NOARGS { int|sys||flock(int fd, int how); }
372 132 NOARGS { int|sys||mkfifo(const char *path, mode_t mode); }
373 133 NOARGS { ssize_t|sys||sendto(int s, const void *buf, \
374 size_t len, int flags, const struct sockaddr *to, \
376 134 NOARGS { int|sys||shutdown(int s, int how); }
377 135 NOARGS { int|sys||socketpair(int domain, int type, \
378 int protocol, int *rsv); }
379 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); }
380 137 NOARGS { int|sys||rmdir(const char *path); }
381 138 NOARGS { int|compat_50_sys||utimes(const char *path, \
382 const struct timeval50 *tptr); }
383 139 OBSOL 4.2 sigreturn
384 140 NOARGS { int|compat_50_sys||adjtime( \
385 const struct timeval50 *delta, \
386 struct timeval50 *olddelta); }
387 #if defined(COMPAT_43) || !defined(_KERNEL)
388 141 NOARGS { int|compat_43_sys||getpeername(int fdes, void *asa, \
389 int *alen); } ogetpeername
390 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid
391 143 NOARGS { int|compat_43_sys||sethostid(int32_t hostid); } \
393 144 NOARGS { int|compat_43_sys||getrlimit(int which, \
394 struct orlimit *rlp); } ogetrlimit
395 145 NOARGS { int|compat_43_sys||setrlimit(int which, \
396 const struct orlimit *rlp); } osetrlimit
397 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \
400 141 EXCL compat_43_sys_getpeername
401 142 EXCL compat_43_sys_gethostid
402 143 EXCL compat_43_sys_sethostid
403 144 EXCL compat_43_sys_getrlimit
404 145 EXCL compat_43_sys_setrlimit
405 146 EXCL compat_43_sys_killpg
407 147 NOARGS { int|sys||setsid(void); }
408 148 NOARGS { int|sys||quotactl(const char *path, \
409 int cmd, int uid, void *arg); }
410 #if defined(COMPAT_43) || !defined(_KERNEL)
411 149 NOARGS { int|compat_43_sys||quota(void); } oquota
412 150 NOARGS { int|compat_43_sys||getsockname(int fdec, void *asa, \
413 int *alen); } ogetsockname
415 149 EXCL compat_43_sys_quota
416 150 EXCL compat_43_sys_getsockname
419 ; Syscalls 151-180 inclusive are reserved for vendor-specific
420 ; system calls. (This includes various calls added for compatibity
421 ; with other Unix variants.)
422 ; Some of these calls are now supported by BSD...
427 #if defined(NFSSERVER) || !defined(_KERNEL)
428 155 NOARGS { int|sys||nfssvc(int flag, void *argp); }
432 #if defined(COMPAT_43) || !defined(_KERNEL)
433 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \
434 u_int count, long *basep); } ogetdirentries
436 156 EXCL compat_43_sys_getdirentries
438 #if defined(COMPAT_20) || !defined(_KERNEL)
439 157 NOARGS { int|compat_20_sys||statfs(const char *path, \
440 struct statfs12 *buf); }
442 157 EXCL compat_20_sys_statfs
444 #if defined(COMPAT_20) || !defined(_KERNEL)
445 158 NOARGS { int|compat_20_sys||fstatfs(int fd, \
446 struct statfs12 *buf); }
448 158 EXCL compat_20_sys_statfs
452 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \
453 struct compat_30_fhandle *fhp); }
454 #if defined(COMPAT_09) || !defined(_KERNEL)
455 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \
456 int len); } ogetdomainname
457 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \
458 int len); } osetdomainname
459 164 NOARGS { int|compat_09_sys||uname(struct outsname *name); } \
462 162 EXCL compat_09_sys_getdomainname
463 163 EXCL compat_09_sys_setdomainname
464 164 EXCL compat_09_sys_uname
466 165 NOARGS { int|sys||sysarch(int op, void *parms); }
470 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
471 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
472 169 NOARGS { int|compat_10_sys||semsys(int which, int a2, int a3, \
473 int a4, int a5); } osemsys
477 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
478 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
479 170 NOARGS { int|compat_10_sys||msgsys(int which, int a2, int a3, \
480 int a4, int a5, int a6); } omsgsys
484 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
485 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
486 171 NOARGS { int|compat_10_sys||shmsys(int which, int a2, int a3, \
492 173 NOARGS { ssize_t|sys||pread(int fd, void *buf, \
493 size_t nbyte, int pad, off_t offset); }
494 174 NOARGS { ssize_t|sys||pwrite(int fd, const void *buf, \
495 size_t nbyte, int pad, off_t offset); }
496 175 UNIMPL sys_ntp_gettime
497 #if defined(NTP) || !defined(_KERNEL)
498 176 NOARGS { int|sys||ntp_adjtime(struct timex *tp); }
507 ; Syscalls 180-199 are used by/reserved for BSD
508 181 NOARGS { int|sys||setgid(gid_t gid); }
509 182 NOARGS { int|sys||setegid(gid_t egid); }
510 183 NOARGS { int|sys||seteuid(uid_t euid); }
511 #if defined(LFS) || !defined(_KERNEL)
512 184 NOARGS { int|sys||lfs_bmapv(fsid_t *fsidp, \
513 struct block_info *blkiov, int blkcnt); }
514 185 NOARGS { int|sys||lfs_markv(fsid_t *fsidp, \
515 struct block_info *blkiov, int blkcnt); }
516 186 NOARGS { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
517 187 NOARGS { int|compat_50_sys||lfs_segwait(fsid_t *fsidp, \
518 struct timeval50 *tv); }
522 186 EXCL lfs_segclean
525 #if defined(COMPAT_12) || !defined(_KERNEL)
526 188 STD { int|aoutm68k_compat_12_sys||stat(const char *path, \
527 struct aoutm68k_stat12 *ub); } stat12
528 189 STD { int|aoutm68k_compat_12_sys||fstat(int fd, \
529 struct aoutm68k_stat12 *sb); } fstat12
530 190 STD { int|aoutm68k_compat_12_sys||lstat(const char *path, \
531 struct aoutm68k_stat12 *ub); } lstat12
533 188 EXCL aoutm68k_compat_12_sys_stat
534 189 EXCL aoutm68k_compat_12_sys_fstat
535 190 EXCL aoutm68k_compat_12_sys_lstat
537 191 NOARGS { long|sys||pathconf(const char *path, int name); }
538 192 NOARGS { long|sys||fpathconf(int fd, int name); }
540 194 NOARGS { int|sys||getrlimit(int which, \
541 struct rlimit *rlp); }
542 195 NOARGS { int|sys||setrlimit(int which, \
543 const struct rlimit *rlp); }
544 #if defined(COMPAT_12) || !defined(_KERNEL)
545 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \
546 u_int count, long *basep); }
548 196 EXCL compat_12_sys_getdirentries
550 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \
551 int flags, int fd, long pad, off_t pos); }
552 198 NOARGS INDIR { quad_t|sys||__syscall(quad_t code, \
553 ... register32_t args[AOUTM68K_SYS_MAXSYSARGS]); }
554 199 NOARGS { off_t|sys||lseek(int fd, int pad, off_t offset, \
556 200 NOARGS { int|sys||truncate(const char *path, int pad, \
558 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); }
559 202 NOARGS { int|sys||__sysctl(int *name, u_int namelen, \
560 void *old, size_t *oldlenp, void *new, \
562 203 NOARGS { int|sys||mlock(const void *addr, size_t len); }
563 204 NOARGS { int|sys||munlock(const void *addr, size_t len); }
564 205 NOARGS { int|sys||undelete(const char *path); }
565 206 NOARGS { int|compat_50_sys||futimes(int fd, \
566 const struct timeval50 *tptr); }
567 207 NOARGS { pid_t|sys||getpgid(pid_t pid); }
568 208 NOARGS { int|sys||reboot(int opt, char *bootstr); }
569 209 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \
581 ; System calls 220-300 are reserved for use by NetBSD
582 #if defined(SYSVSEM) || !defined(_KERNEL)
583 #if defined(COMPAT_14) || !defined(_KERNEL)
584 220 NOARGS { int|compat_14_sys||__semctl(int semid, \
585 int semnum, int cmd, union __semun *arg); }
587 220 EXCL compat_14_semctl
589 221 NOARGS { int|sys||semget(key_t key, int nsems, int semflg); }
590 222 NOARGS { int|sys||semop(int semid, struct sembuf *sops, \
592 223 NOARGS { int|sys||semconfig(int flag); }
594 220 EXCL compat_14_semctl
599 #if defined(SYSVMSG) || !defined(_KERNEL)
600 #if defined(COMPAT_14) || !defined(_KERNEL)
601 224 NOARGS { int|compat_14_sys||msgctl(int msqid, int cmd, \
602 struct msqid_ds14 *buf); }
604 224 EXCL compat_14_sys_msgctl
606 225 NOARGS { int|sys||msgget(key_t key, int msgflg); }
607 226 NOARGS { int|sys||msgsnd(int msqid, const void *msgp, \
608 size_t msgsz, int msgflg); }
609 227 NOARGS { ssize_t|sys||msgrcv(int msqid, void *msgp, \
610 size_t msgsz, long msgtyp, int msgflg); }
612 224 EXCL compat_14_msgctl
617 #if defined(SYSVSHM) || !defined(_KERNEL)
618 228 NOARGS { void *|sys||shmat(int shmid, const void *shmaddr, \
620 #if defined(COMPAT_14) || !defined(_KERNEL)
621 229 NOARGS { int|compat_14_sys||shmctl(int shmid, int cmd, \
622 struct shmid_ds14 *buf); }
624 229 EXCL compat_14_sys_shmctl
626 230 NOARGS { int|sys||shmdt(const void *shmaddr); }
627 231 NOARGS { int|sys||shmget(key_t key, size_t size, int shmflg); }
630 229 EXCL compat_14_shmctl
634 232 NOARGS { int|compat_50_sys||clock_gettime(clockid_t clock_id, \
635 struct timespec50 *tp); }
636 233 NOARGS { int|compat_50_sys||clock_settime(clockid_t clock_id, \
637 const struct timespec50 *tp); }
638 234 NOARGS { int|compat_50_sys||clock_getres(clockid_t clock_id, \
639 struct timespec50 *tp); }
640 235 UNIMPL timer_create
641 236 UNIMPL timer_delete
642 237 UNIMPL timer_settime
643 238 UNIMPL timer_gettime
644 239 UNIMPL timer_getoverrun
646 ; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
648 240 NOARGS { int|compat_50_sys||nanosleep( \
649 const struct timespec50 *rqtp, \
650 struct timespec50 *rmtp); }
651 241 NOARGS { int|sys||fdatasync(int fd); }
652 242 NOARGS { int|sys||mlockall(int flags); }
653 243 NOARGS { int|sys||munlockall(void); }
680 270 NOARGS { int|sys||__posix_rename(const char *from, \
682 271 NOARGS { int|sys||swapctl(int cmd, const void *arg, int misc); }
683 #if defined(COMPAT_30) || !defined(_KERNEL)
684 272 NOARGS { int|compat_30_sys||getdents(int fd, char *buf, size_t count); }
686 272 EXCL compat_30_sys_getdents
688 273 NOARGS { int|sys||minherit(void *addr, size_t len, \
690 274 NOARGS { int|sys||lchmod(const char *path, mode_t mode); }
691 275 NOARGS { int|sys||lchown(const char *path, uid_t uid, \
693 276 NOARGS { int|compat_50_sys||lutimes(const char *path, \
694 const struct timeval50 *tptr); }
695 277 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); }
696 278 STD { int|aoutm68k_sys|13|stat(const char *path, \
697 struct aoutm68k_stat *ub); }
698 279 STD { int|aoutm68k_sys|13|fstat(int fd, \
699 struct aoutm68k_stat *sb); }
700 280 STD { int|aoutm68k_sys|13|lstat(const char *path, \
701 struct aoutm68k_stat *ub); }
702 281 NOARGS { int|sys|14|sigaltstack( \
703 const struct sigaltstack *nss, \
704 struct sigaltstack *oss); }
705 282 NOARGS { int|sys|14|vfork(void); }
706 283 NOARGS { int|sys||__posix_chown(const char *path, uid_t uid, \
708 284 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
710 285 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \
712 286 NOARGS { pid_t|sys||getsid(pid_t pid); }
714 #if defined(KTRACE) || !defined(_KERNEL)
715 288 NOARGS { int|sys||fktrace(const int fd, int ops, \
716 int facs, int pid); }
720 289 NOARGS { ssize_t|sys||preadv(int fd, \
721 const struct iovec *iovp, int iovcnt, \
722 int pad, off_t offset); }
723 290 NOARGS { ssize_t|sys||pwritev(int fd, \
724 const struct iovec *iovp, int iovcnt, \
725 int pad, off_t offset); }
726 #if defined(COMPAT_16) || !defined(_KERNEL)
727 291 NOARGS { int|compat_16_sys|14|sigaction(int signum, \
728 const struct sigaction *nsa, \
729 struct sigaction *osa); }
731 291 EXCL compat_16_sys___sigaction14
733 292 NOARGS { int|sys|14|sigpending(sigset_t *set); }
734 293 NOARGS { int|sys|14|sigprocmask(int how, \
735 const sigset_t *set, \
737 294 NOARGS { int|sys|14|sigsuspend(const sigset_t *set); }
738 #if defined(COMPAT_16) || !defined(_KERNEL)
739 295 NOARGS { int|compat_16_sys|14|sigreturn(\
740 struct sigcontext *sigcntxp); }
742 295 EXCL compat_16_sys___sigreturn14
744 296 NOARGS { int|sys||__getcwd(char *bufp, size_t length); }
745 297 NOARGS { int|sys||fchroot(int fd); }
746 298 NOARGS { int|compat_30_sys||fhopen(const \
747 struct compat_30_fhandle *fhp, int flags); }
748 299 STD { int|aoutm68k_sys||fhstat(const struct \
749 compat_30_fhandle *fhp, \
750 struct aoutm68k_stat *sb); }
751 #if defined(COMPAT_20) || !defined(_KERNEL)
752 300 NOARGS { int|compat_20_sys||fhstatfs(const struct \
753 compat_30-fhandle *fhp, \
754 struct statfs12 *buf); }
756 300 EXCL compat_20_sys_fhstatfs
758 #if defined(SYSVSEM) || !defined(_KERNEL)
759 301 NOARGS { int|compat_50_sys|13|__semctl(int semid, \
760 int semnum, int cmd, ... union __semun *arg); }
762 301 EXCL ____semctl13
764 #if defined(SYSVMSG) || !defined(_KERNEL)
765 302 NOARGS { int|compat_50_sys|13|msgctl(int msqid, int cmd, \
766 struct msqid_ds *buf); }
770 #if defined(SYSVSHM) || !defined(_KERNEL)
771 303 NOARGS { int|compat_50_sys|13|shmctl(int shmid, int cmd, \
772 struct shmid_ds *buf); }
776 304 NOARGS { int|sys||lchflags(const char *path, u_long flags); }
777 305 NOARGS { int|sys||issetugid(void); }
778 306 NOARGS { int|sys||getcontext(struct __ucontext *ucp); }
779 307 NOARGS { int|sys||setcontext(const struct __ucontext *ucp); }