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