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