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