Home | History | Annotate | Line # | Download | only in alpha
syscalls.master revision 1.4
      1  1.4      tron 	$NetBSD: syscalls.master,v 1.4 1998/10/19 22:23:32 tron Exp $
      2  1.1       erh 
      3  1.1       erh ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4  1.1       erh 
      5  1.1       erh ; NetBSD alpha COMPAT_LINUX system call name/number "master" file.
      6  1.1       erh ; (See syscalls.conf to see what it is processed into.)
      7  1.1       erh ;
      8  1.1       erh ; Fields: number type [type-dependent ...]
      9  1.1       erh ;	number	system call number, must be in order
     10  1.1       erh ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     11  1.1       erh ;		the compatibility options defined in syscalls.conf.
     12  1.1       erh ;
     13  1.1       erh ; types:
     14  1.1       erh ;	STD	always included
     15  1.1       erh ;	OBSOL	obsolete, not included in system
     16  1.1       erh ;	UNIMPL	unimplemented, not included in system
     17  1.1       erh ;	NODEF	included, but don't define the syscall number
     18  1.1       erh ;	NOARGS	included, but don't define the syscall args structure
     19  1.1       erh ;	INDIR	included, but don't define the syscall args structure
     20  1.1       erh ;		and allow it to be "really" varargs.
     21  1.1       erh ;
     22  1.1       erh ; The compat options are defined in the syscalls.conf file, and the
     23  1.1       erh ; compat option name is prefixed to the syscall name.  Other than
     24  1.1       erh ; that, they're like NODEF (for 'compat' options), or STD (for
     25  1.1       erh ; 'libcompat' options).
     26  1.1       erh ;
     27  1.1       erh ; The type-dependent arguments are as follows:
     28  1.1       erh ; For STD, NODEF, NOARGS, and compat syscalls:
     29  1.1       erh ;	{ pseudo-proto } [alias]
     30  1.1       erh ; For other syscalls:
     31  1.1       erh ;	[comment]
     32  1.1       erh ;
     33  1.1       erh ; #ifdef's, etc. may be included, and are copied to the output files.
     34  1.1       erh ; #include's are copied to the syscall names and switch definition files only.
     35  1.1       erh ;
     36  1.1       erh ; (ERH: 5/26/98)
     37  1.1       erh ;
     38  1.1       erh ; XXX XAX todo:
     39  1.1       erh ;		check arguments.
     40  1.1       erh ;		kill not used functions.  (ifdef the actual code)
     41  1.1       erh ;
     42  1.1       erh ; NOT USED = This syscall is not really used in Linux, except in its
     43  1.1       erh ;		osf compat mode.  Since Linux binaries shouldn't ever
     44  1.1       erh ;		call it and osf binaries run under a different emulation,
     45  1.1       erh ;		it shouldn't matter that the linux version of the
     46  1.1       erh ;		function might not DTRT.  Define it anyway so we
     47  1.1       erh ;		don't have to split off or ifdef the associated function.
     48  1.1       erh ; 		    A bit better might be to have makesyscalls identify this
     49  1.1       erh ; 		as "define but don't include in table" so it doesn't actually
     50  1.1       erh ; 		ever get called.
     51  1.1       erh ; UNIMPL <blank> = not implemented here nor in linux source
     52  1.1       erh ; UNIMPL osf_*   = osf functions implemented in linux, not here.
     53  1.1       erh ;
     54  1.4      tron 
     55  1.4      tron #include "opt_sysv.h"
     56  1.1       erh 
     57  1.1       erh #include <sys/param.h>
     58  1.1       erh #include <sys/systm.h>
     59  1.1       erh #include <sys/signal.h>
     60  1.1       erh #include <sys/mount.h>
     61  1.1       erh #include <sys/syscallargs.h>
     62  1.1       erh 
     63  1.2  christos #include <compat/linux/common/linux_types.h>
     64  1.2  christos #include <compat/linux/common/linux_signal.h>
     65  1.2  christos #include <compat/linux/common/linux_siginfo.h>
     66  1.2  christos #include <compat/linux/common/linux_ipc.h>
     67  1.2  christos #include <compat/linux/common/linux_msg.h>
     68  1.2  christos #include <compat/linux/common/linux_sem.h>
     69  1.2  christos #include <compat/linux/common/linux_shm.h>
     70  1.2  christos ;#include <compat/linux/common/linux_machdep.h>
     71  1.2  christos 
     72  1.2  christos #include <compat/linux/linux_syscallargs.h>
     73  1.1       erh 
     74  1.1       erh 
     75  1.1       erh 0	NOARGS		{ int sys_nosys(void); } syscall
     76  1.1       erh 1	NOARGS		{ int sys_exit(int rval); }
     77  1.1       erh 2	NOARGS		{ int sys_fork(void); }
     78  1.1       erh 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     79  1.1       erh 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     80  1.1       erh 5	UNIMPL
     81  1.1       erh 6	NOARGS		{ int sys_close(int fd); }
     82  1.1       erh 7	UNIMPL		osf_wait4
     83  1.1       erh ;8	OBSOL		osf_old_creat, NOT USED. XXX XAX
     84  1.1       erh 8	STD		{ int linux_sys_creat(char *path, int mode); }
     85  1.1       erh 9	NOARGS		{ int sys_link(char *path, char *link); }
     86  1.1       erh 10	STD		{ int linux_sys_unlink(char *path); }
     87  1.1       erh 11	UNIMPL
     88  1.1       erh 12	STD		{ int linux_sys_chdir(char *path); }
     89  1.1       erh 13	NOARGS		{ int sys_fchdir(int fd); }
     90  1.1       erh 14	STD		{ int linux_sys_mknod(char *path, int mode, int dev); }
     91  1.1       erh 15	STD		{ int linux_sys_chmod(char *path, int mode); }
     92  1.1       erh 16	STD		{ int linux_sys_chown(char *path, int uid, int gid); }
     93  1.1       erh ;17	ALIAS		osf_brk
     94  1.1       erh 17	STD		{ int linux_sys_brk(char *nsize); }
     95  1.1       erh 18	UNIMPL
     96  1.1       erh 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     97  1.1       erh 			    int whence); }
     98  1.1       erh 20	NOARGS		{ pid_t sys_getpid(void); }
     99  1.1       erh 21	UNIMPL		osf_mount
    100  1.1       erh 22	UNIMPL		osf_umount
    101  1.1       erh 23	NOARGS		{ int sys_setuid(uid_t uid); }
    102  1.1       erh 24	NOARGS		{ uid_t sys_getuid(void); }
    103  1.1       erh 25	UNIMPL
    104  1.1       erh 26	UNIMPL		ptrace
    105  1.1       erh 27	UNIMPL
    106  1.1       erh 28	UNIMPL
    107  1.1       erh 29	UNIMPL
    108  1.1       erh 30	UNIMPL
    109  1.1       erh 31	UNIMPL
    110  1.1       erh 32	UNIMPL
    111  1.1       erh 33	STD		{ int linux_sys_access(char *path, int flags); }
    112  1.1       erh 34	UNIMPL
    113  1.1       erh 35	UNIMPL
    114  1.1       erh 36	NOARGS		{ int sys_sync(void); }
    115  1.1       erh 37	STD		{ int linux_sys_kill(int pid, int signum); }
    116  1.1       erh 38	UNIMPL
    117  1.1       erh 39	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    118  1.1       erh 40	UNIMPL
    119  1.1       erh 41	NOARGS		{ int sys_dup(u_int fd); }
    120  1.1       erh 42	NOARGS		{ int linux_sys_pipe(void); }
    121  1.1       erh 43	UNIMPL		osf_set_program_attributes
    122  1.1       erh 44	UNIMPL
    123  1.1       erh 45	STD		{ int linux_sys_open(char *path, int flags, int mode); }
    124  1.1       erh 46	UNIMPL
    125  1.1       erh 47	NOARGS		{ gid_t sys_getgid(void); }
    126  1.1       erh 48	UNIMPL		osf_sigprocmask
    127  1.1       erh 49	UNIMPL
    128  1.1       erh 50	UNIMPL
    129  1.1       erh 51	NOARGS		{ int sys_acct(char *path); }
    130  1.1       erh 52	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
    131  1.1       erh 53	UNIMPL
    132  1.1       erh 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    133  1.1       erh 			    caddr_t data); }
    134  1.1       erh 55	UNIMPL
    135  1.1       erh 56	UNIMPL
    136  1.1       erh 57	STD		{ int linux_sys_symlink(char *path, char *to); }
    137  1.1       erh 58	STD		{ int linux_sys_readlink(char *name, char *buf, \
    138  1.1       erh 			    int count); }
    139  1.1       erh 59	STD		{ int linux_sys_execve(char *path, char **argp, \
    140  1.1       erh 			    char **envp); }
    141  1.1       erh 60	NOARGS		{ int sys_umask(int newmask); }
    142  1.1       erh 61	NOARGS		{ int sys_chroot(char *path); }
    143  1.1       erh 62	UNIMPL
    144  1.1       erh 63	NOARGS		{ int sys_getpgrp(void); }
    145  1.1       erh 64	NOARGS		{ int compat_43_sys_getpagesize(void); }
    146  1.1       erh 65	UNIMPL
    147  1.1       erh 66	UNIMPL		osf_vfork
    148  1.1       erh 67	STD		{ int linux_sys_stat(char *path, \
    149  1.1       erh 			    struct linux_stat *sp); }
    150  1.1       erh 68	STD		{ int linux_sys_lstat(char *path, \
    151  1.1       erh 			    struct linux_stat *sp); }
    152  1.1       erh 69	UNIMPL 
    153  1.1       erh 70	UNIMPL
    154  1.3       erh 71	NOARGS		{ int linux_sys_mmap(unsigned long addr, size_t len, \
    155  1.1       erh 			    int prot, int flags, int fd, off_t offset); }
    156  1.1       erh 72	UNIMPL
    157  1.1       erh 73	NOARGS		{ int sys_munmap(caddr_t addr, int len); }
    158  1.1       erh 74	NOARGS		{ int sys_mprotect(caddr_t addr, int len, int prot); }
    159  1.1       erh 75	UNIMPL		madvise
    160  1.1       erh 76	UNIMPL		vhangup
    161  1.1       erh 77	UNIMPL
    162  1.1       erh 78	UNIMPL
    163  1.1       erh 79	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    164  1.1       erh 80	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    165  1.1       erh 81	UNIMPL
    166  1.1       erh 82	UNIMPL		setpgrp
    167  1.1       erh ;83: Uses int for seconds, and time_t.  so need different itimerval struct.
    168  1.1       erh 83	UNIMPL		osf_setitimer
    169  1.1       erh 84	UNIMPL
    170  1.1       erh 85	UNIMPL	
    171  1.1       erh ;86: Uses int for seconds, and time_t.  so need different itimerval struct.
    172  1.1       erh 86	UNIMPL		osf_getitimer
    173  1.1       erh ; XXX XAX here, check args match.
    174  1.1       erh 87	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
    175  1.1       erh 			    u_int len); }
    176  1.1       erh 88	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    177  1.1       erh 			    u_int len); }
    178  1.1       erh 89	UNIMPL		getdtablesize
    179  1.1       erh 90	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    180  1.1       erh 91	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    181  1.1       erh 92	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    182  1.1       erh 93	UNIMPL		osf_select
    183  1.1       erh 94	UNIMPL		poll
    184  1.1       erh 95	NOARGS		{ int sys_fsync(int fd); }
    185  1.1       erh 96	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    186  1.1       erh 97	STD		{ int linux_sys_socket(int domain, int type, \
    187  1.1       erh 			    int protocol); }
    188  1.1       erh 98	NOARGS		{ int sys_connect(int s, const struct sockaddr *name, \
    189  1.1       erh 			    int namelen); }
    190  1.1       erh 99	NOARGS		{ int compat_43_sys_accept(int s, \
    191  1.1       erh 				caddr_t name, int *anamelen); }
    192  1.1       erh ;100	ALIAS		osf_getpriority
    193  1.1       erh 100	NOARGS		{ int sys_getpriority(int which, int who); }
    194  1.1       erh 101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
    195  1.1       erh 				int flags); }
    196  1.1       erh 102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
    197  1.1       erh 				int flags); }
    198  1.1       erh 103	STD		{ int linux_sys_sigreturn(struct linux_sigframe *sfp); }
    199  1.1       erh 104	NOARGS		{ int sys_bind(int s, const struct sockaddr *name, \
    200  1.1       erh 			    int namelen); }
    201  1.1       erh 105	STD		{ int linux_sys_setsockopt(int s, int level, \
    202  1.1       erh 				int optname, void *optval, int optlen); }
    203  1.1       erh 106	NOARGS		{ int sys_listen(int s, int backlog); }
    204  1.1       erh 107	UNIMPL
    205  1.1       erh 108	UNIMPL
    206  1.1       erh 109	UNIMPL
    207  1.1       erh 110	UNIMPL
    208  1.1       erh 
    209  1.1       erh 111	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
    210  1.1       erh 			    int oldmask, int mask); }
    211  1.1       erh 112	UNIMPL
    212  1.1       erh 113	NOARGS		{ int sys_recvmsg(int fd, struct msghdr *msg, \
    213  1.1       erh 				u_int flags); }
    214  1.1       erh 114	NOARGS		{ int sys_sendmsg(int fd, struct msghdr *msg, \
    215  1.1       erh 				u_int flags); }
    216  1.1       erh 115	UNIMPL
    217  1.1       erh 116	UNIMPL		osf_gettimeofday
    218  1.1       erh 117	UNIMPL		osf_getrusage
    219  1.1       erh 118	STD		{ int linux_sys_getsockopt(int s, int level, \
    220  1.1       erh 				int optname, void *optval, int *optlen); }
    221  1.1       erh 119	UNIMPL
    222  1.1       erh 120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    223  1.1       erh 				u_int iovcnt); }
    224  1.1       erh 121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    225  1.1       erh 				u_int iovcnt); }
    226  1.1       erh 122	UNIMPL		osf_settimeofday
    227  1.1       erh 123	STD		{ int linux_sys_fchown(int fd, int uid, int gid); }
    228  1.1       erh 124	NOARGS		{ int sys_fchmod(int fd, int mode); }
    229  1.1       erh 125	STD		{ int linux_sys_recvfrom(int s, void *buf, int len, \
    230  1.1       erh 				int flags, struct sockaddr *from, \
    231  1.1       erh 				int *fromlen); }
    232  1.1       erh 126	STD		{ int linux_sys_setreuid(int ruid, int euid); }
    233  1.1       erh 127	STD		{ int linux_sys_setregid(int rgid, int egid); }
    234  1.1       erh 128	STD		{ int linux_sys_rename(char *from, char *to); }
    235  1.1       erh 129	STD		{ int linux_sys_truncate(char *path, long length); }
    236  1.1       erh 130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    237  1.1       erh 131	NOARGS		{ int sys_flock(int fd, int how); }
    238  1.1       erh 132	NOARGS		{ int sys_setgid(gid_t gid); }
    239  1.1       erh 133	STD		{ int linux_sys_sendto(int s, void *msg, int len, \
    240  1.1       erh 				int flags, struct sockaddr *to, int tolen); }
    241  1.1       erh 134	NOARGS		{ int sys_shutdown(int s, int how); }
    242  1.1       erh 135	STD		{ int linux_sys_socketpair(int domain, int type, \
    243  1.1       erh 				int protocol, int *rsv); }
    244  1.1       erh 136	STD		{ int linux_sys_mkdir(char *path, int mode); }
    245  1.1       erh 137	STD		{ int linux_sys_rmdir(char *path); }
    246  1.1       erh 138	UNIMPL		osf_utimes
    247  1.1       erh 139	UNIMPL
    248  1.1       erh 140	UNIMPL
    249  1.1       erh 141	NOARGS		{ int compat_43_sys_getpeername(int fdes, \
    250  1.1       erh 				caddr_t asa, int *alen); }
    251  1.1       erh 142	UNIMPL
    252  1.1       erh 143	UNIMPL
    253  1.1       erh 144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
    254  1.1       erh 			    struct orlimit *rlp); }
    255  1.1       erh 145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
    256  1.1       erh 			    struct orlimit *rlp); }
    257  1.1       erh 146	UNIMPL
    258  1.1       erh 147	NOARGS		{ int sys_setsid(void); }
    259  1.1       erh 148	UNIMPL		quotactl
    260  1.1       erh 149	UNIMPL
    261  1.1       erh 150	NOARGS		{ int compat_43_sys_getsockname(int fdec, \
    262  1.1       erh 				caddr_t asa, int *alen); }
    263  1.1       erh 151	UNIMPL
    264  1.1       erh 152	UNIMPL
    265  1.1       erh 153	UNIMPL
    266  1.1       erh 154	UNIMPL
    267  1.1       erh 155	UNIMPL
    268  1.1       erh ;156	ALIAS		osf_sigaction
    269  1.1       erh 156	STD		{ int linux_sys_sigaction(int signum, \
    270  1.1       erh 				const struct linux_old_sigaction *nsa, \
    271  1.1       erh 				struct linux_old_sigaction *osa); }
    272  1.1       erh 157	UNIMPL
    273  1.1       erh 158	UNIMPL
    274  1.1       erh 159	UNIMPL		osf_getdirentries
    275  1.1       erh 160	UNIMPL		osf_statfs
    276  1.1       erh 161	UNIMPL		osf_fstatfs
    277  1.1       erh 162	UNIMPL
    278  1.1       erh 163	UNIMPL
    279  1.1       erh 164	UNIMPL
    280  1.1       erh 165	UNIMPL		osf_getdomainname
    281  1.1       erh ;166	ALIAS		osf_setdomainname
    282  1.1       erh 166	UNIMPL		setdomainname
    283  1.1       erh 167	UNIMPL
    284  1.1       erh 168	UNIMPL
    285  1.1       erh 169	UNIMPL
    286  1.1       erh 170	UNIMPL
    287  1.1       erh 171	UNIMPL
    288  1.1       erh 172	UNIMPL
    289  1.1       erh 173	UNIMPL
    290  1.1       erh 174	UNIMPL
    291  1.1       erh 175	UNIMPL
    292  1.1       erh 176	UNIMPL
    293  1.1       erh 177	UNIMPL
    294  1.1       erh 178	UNIMPL
    295  1.1       erh 179	UNIMPL
    296  1.1       erh 180	UNIMPL
    297  1.1       erh 181	UNIMPL
    298  1.1       erh 182	UNIMPL
    299  1.1       erh 183	UNIMPL
    300  1.1       erh 184	UNIMPL
    301  1.1       erh 185	UNIMPL
    302  1.1       erh 186	UNIMPL
    303  1.1       erh 187	UNIMPL
    304  1.1       erh 188	UNIMPL
    305  1.1       erh 189	UNIMPL
    306  1.1       erh 190	UNIMPL
    307  1.1       erh 191	UNIMPL
    308  1.1       erh 192	UNIMPL
    309  1.1       erh 193	UNIMPL
    310  1.1       erh 194	UNIMPL
    311  1.1       erh 195	UNIMPL
    312  1.1       erh 196	UNIMPL
    313  1.1       erh 197	UNIMPL
    314  1.1       erh 198	UNIMPL
    315  1.1       erh 199	UNIMPL		osf_swapon
    316  1.1       erh #ifdef SYSVMSG
    317  1.1       erh 200	NOARGS		{ int linux_sys_msgctl(int msqid, int cmd, \
    318  1.1       erh 			    struct linux_msqid_ds *buf); }
    319  1.1       erh 201	NOARGS		{ int sys_msgget(key_t key, int msgflg); }
    320  1.1       erh 202	NOARGS		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
    321  1.1       erh 			    int msgflg); }
    322  1.1       erh 203	NOARGS		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
    323  1.1       erh 			    int msgflg); }
    324  1.1       erh #else
    325  1.1       erh 200	UNIMPL		msgctl
    326  1.1       erh 201	UNIMPL		msgget
    327  1.1       erh 202	UNIMPL		msgrcv
    328  1.1       erh 203	UNIMPL		msgsnd
    329  1.1       erh #endif
    330  1.1       erh #ifdef SYSVSEM
    331  1.1       erh 204	NOARGS		{ int linux_sys_semctl(int semid, int semnum, \
    332  1.1       erh 			    int cmd, union linux_semun arg); }
    333  1.1       erh 205	NOARGS		{ int sys_semget(key_t key, int nsems, int semflg); }
    334  1.1       erh 206	NOARGS		{ int sys_semop(int semid, struct sembuf *sops, \
    335  1.1       erh 			    unsigned u_int nsops); }
    336  1.1       erh #else
    337  1.1       erh 204	UNIMPL		semctl
    338  1.1       erh 205	UNIMPL		semget
    339  1.1       erh 206	UNIMPL		semop
    340  1.1       erh #endif
    341  1.1       erh ;207	OBSOL		osf_utsname, NOT USED XXX XAX
    342  1.1       erh 207	STD		{ int linux_sys_olduname(struct linux_old_utsname *up); }
    343  1.1       erh 208	STD		{ int linux_sys_lchown(char *path, int uid, int gid); }
    344  1.1       erh #ifdef SYSVSHM
    345  1.1       erh 209	NOARGS		{ int linux_sys_shmat(int shmid, void *shmaddr, \
    346  1.1       erh 			    int shmflg, u_long *raddr); }
    347  1.1       erh 210	NOARGS		{ int linux_sys_shmctl(int shmid, int cmd, \
    348  1.1       erh 			    struct linux_shmid_ds *buf); }
    349  1.1       erh 211	NOARGS		{ int sys_shmdt(void *shmaddr); }
    350  1.1       erh 212	NOARGS		{ int sys_shmget(key_t key, int size, int shmflg); }
    351  1.1       erh #else
    352  1.1       erh 209	UNIMPL		shmat
    353  1.1       erh 210	UNIMPL		shmctl
    354  1.1       erh 211	UNIMPL		shmdt
    355  1.1       erh 212	UNIMPL		shmget
    356  1.1       erh #endif
    357  1.1       erh 213	UNIMPL
    358  1.1       erh 214	UNIMPL
    359  1.1       erh 215	UNIMPL
    360  1.1       erh 216	UNIMPL
    361  1.1       erh 217	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
    362  1.1       erh 218	UNIMPL		osf_signal
    363  1.1       erh 219	UNIMPL
    364  1.1       erh 220	UNIMPL
    365  1.1       erh 221	UNIMPL
    366  1.1       erh 222	UNIMPL
    367  1.1       erh 223	UNIMPL
    368  1.1       erh 224	UNIMPL
    369  1.1       erh 225	UNIMPL
    370  1.1       erh 226	UNIMPL
    371  1.1       erh 227	UNIMPL
    372  1.1       erh 228	UNIMPL
    373  1.1       erh 229	UNIMPL
    374  1.1       erh 230	UNIMPL
    375  1.1       erh 231	UNIMPL
    376  1.1       erh 232	UNIMPL
    377  1.1       erh 233	STD		{ int linux_sys_getpgid(int pid); }
    378  1.1       erh 234	NOARGS		{ pid_t sys_getsid(pid_t pid); }
    379  1.1       erh 235	UNIMPL
    380  1.1       erh 236	UNIMPL
    381  1.1       erh 237	UNIMPL
    382  1.1       erh 238	UNIMPL
    383  1.1       erh 239	UNIMPL
    384  1.1       erh 240	UNIMPL
    385  1.1       erh 241	UNIMPL		osf_sysinfo
    386  1.1       erh 242	UNIMPL
    387  1.1       erh 243	UNIMPL
    388  1.1       erh 244	UNIMPL		osf_proplist_syscall
    389  1.1       erh 245	UNIMPL
    390  1.1       erh 246	UNIMPL
    391  1.1       erh 247	UNIMPL
    392  1.1       erh 248	UNIMPL
    393  1.1       erh 249	UNIMPL
    394  1.1       erh 250	UNIMPL
    395  1.1       erh 251	UNIMPL		osf_usleep_thread
    396  1.1       erh 252	UNIMPL
    397  1.1       erh 253	UNIMPL
    398  1.1       erh 254	UNIMPL		sysfs
    399  1.1       erh 255	UNIMPL
    400  1.1       erh 256	UNIMPL		osf_getsysinfo
    401  1.1       erh 257	UNIMPL		osf_setsysinfo
    402  1.1       erh 258	UNIMPL
    403  1.1       erh 259	UNIMPL
    404  1.1       erh 260	UNIMPL
    405  1.1       erh ;			???: fdatasync isn't implemented in Linux.
    406  1.1       erh 261	STD		{ int linux_sys_fdatasync(int fd); }
    407  1.1       erh 262	UNIMPL
    408  1.1       erh 263	UNIMPL
    409  1.1       erh 264	UNIMPL
    410  1.1       erh 265	UNIMPL
    411  1.1       erh 266	UNIMPL
    412  1.1       erh 267	UNIMPL
    413  1.1       erh 268	UNIMPL
    414  1.1       erh 269	UNIMPL
    415  1.1       erh 270	UNIMPL
    416  1.1       erh 271	UNIMPL
    417  1.1       erh 272	UNIMPL
    418  1.1       erh 273	UNIMPL
    419  1.1       erh 274	UNIMPL
    420  1.1       erh 275	UNIMPL
    421  1.1       erh 276	UNIMPL
    422  1.1       erh 277	UNIMPL
    423  1.1       erh 278	UNIMPL
    424  1.1       erh 279	UNIMPL
    425  1.1       erh 280	UNIMPL
    426  1.1       erh 281	UNIMPL
    427  1.1       erh 282	UNIMPL
    428  1.1       erh 283	UNIMPL
    429  1.1       erh 284	UNIMPL
    430  1.1       erh 285	UNIMPL
    431  1.1       erh 286	UNIMPL
    432  1.1       erh 287	UNIMPL
    433  1.1       erh 288	UNIMPL
    434  1.1       erh 289	UNIMPL
    435  1.1       erh 290	UNIMPL
    436  1.1       erh 291	UNIMPL
    437  1.1       erh 292	UNIMPL
    438  1.1       erh 293	UNIMPL
    439  1.1       erh 294	UNIMPL
    440  1.1       erh 295	UNIMPL
    441  1.1       erh 296	UNIMPL
    442  1.1       erh 297	UNIMPL
    443  1.1       erh 298	UNIMPL
    444  1.1       erh 299	UNIMPL
    445  1.1       erh 300	UNIMPL		bdflush
    446  1.1       erh 301	UNIMPL		sethae
    447  1.1       erh 302	UNIMPL		mount
    448  1.1       erh 303	UNIMPL		old_adjtimex
    449  1.1       erh 304	UNIMPL		swapoff
    450  1.1       erh 305	STD		{ int linux_sys_getdents(int fd, \
    451  1.1       erh 			    struct linux_dirent *dent, unsigned int count); }
    452  1.1       erh 306	UNIMPL		create_module
    453  1.1       erh 307	UNIMPL		init_module
    454  1.1       erh 308	UNIMPL		delete_module
    455  1.1       erh 309	UNIMPL		get_kernel_syms
    456  1.1       erh 310	UNIMPL		syslog
    457  1.1       erh 311	NOARGS		{ int sys_reboot(int opt); }
    458  1.1       erh 312	UNIMPL		clone
    459  1.1       erh ; XXX XAX does alpha linux really have a.out exec?
    460  1.1       erh #ifdef EXEC_AOUT
    461  1.1       erh 313	STD		{ int linux_sys_uselib(char *path); }
    462  1.1       erh #else
    463  1.1       erh 313	UNIMPL		sys_uselib
    464  1.1       erh #endif
    465  1.1       erh 314	NOARGS		{ int sys_mlock(const void *addr, size_t len); }
    466  1.1       erh 315	NOARGS		{ int sys_munlock(const void *addr, size_t len); }
    467  1.1       erh 316	UNIMPL		mlockall
    468  1.1       erh 317	UNIMPL		munlockall
    469  1.1       erh 318	UNIMPL		sysinfo
    470  1.1       erh 319	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    471  1.1       erh 320	UNIMPL		idle
    472  1.1       erh 321	UNIMPL		umount
    473  1.1       erh 322	NOARGS		{ int compat_12_sys_swapon(char *name); }
    474  1.1       erh 323	STD		{ int linux_sys_times(struct times *tms); }
    475  1.1       erh 324	STD		{ int linux_sys_personality(int per); }
    476  1.1       erh 325	UNIMPL		setfsuid
    477  1.1       erh 326	UNIMPL		setfsgid
    478  1.1       erh 327	UNIMPL		ustat
    479  1.1       erh 328	STD		{ int linux_sys_statfs(char *path, \
    480  1.1       erh 			    struct linux_statfs *sp); }
    481  1.1       erh 329	STD		{ int linux_sys_fstatfs(int fd, \
    482  1.1       erh 			    struct linux_statfs *sp); }
    483  1.1       erh 330	UNIMPL		sched_setparam
    484  1.1       erh 331	UNIMPL		sched_getparam
    485  1.1       erh 332	UNIMPL		sched_setscheduler
    486  1.1       erh 333	UNIMPL		sched_getscheduler
    487  1.1       erh 334	UNIMPL		sched_yield
    488  1.1       erh 335	UNIMPL		sched_get_priority_max
    489  1.1       erh 336	UNIMPL		sched_get_priority_min
    490  1.1       erh 337	UNIMPL		sched_rr_get_interval
    491  1.1       erh 338	UNIMPL		afs_syscall
    492  1.1       erh 339	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    493  1.1       erh 340	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
    494  1.1       erh 				struct timespec *rmtp); }
    495  1.1       erh 341	STD		{ void *linux_sys_mremap(void *old_address, \
    496  1.1       erh 			    size_t old_size, size_t new_size, u_long flags); }
    497  1.1       erh 342	UNIMPL		nfsservctl
    498  1.1       erh 343	UNIMPL		setresgid
    499  1.1       erh 344	UNIMPL		getresgid
    500  1.1       erh 345	UNIMPL		pciconfig_read
    501  1.1       erh 346	UNIMPL		pciconfig_write
    502  1.1       erh 347	UNIMPL		query_module
    503  1.1       erh 348	UNIMPL		prctl
    504  1.1       erh 349	UNIMPL		pread
    505  1.1       erh 350	UNIMPL		pwrite
    506  1.1       erh 351	STD		{ int linux_sys_rt_sigreturn( \
    507  1.1       erh 				struct linux_rt_sigframe *sfp); }
    508  1.1       erh 352	STD		{ int linux_sys_rt_sigaction(int signum, \
    509  1.1       erh 				const struct linux_sigaction *nsa, \
    510  1.1       erh 				struct linux_sigaction *osa, \
    511  1.1       erh 				size_t sigsetsize); }
    512  1.1       erh 353	STD		{ int linux_sys_rt_sigprocmask(int how, \
    513  1.1       erh 			    const linux_sigset_t *set, \
    514  1.1       erh 			    linux_sigset_t *oset, \
    515  1.1       erh 			    size_t sigsetsize); }
    516  1.1       erh 354	STD		{ int linux_sys_rt_sigpending( \
    517  1.1       erh 			    linux_sigset_t *set, \
    518  1.1       erh 			    size_t sigsetsize); }
    519  1.1       erh 355	UNIMPL		rt_sigtimedwait
    520  1.1       erh ; XXX XAX int here?  sigset_t here? 
    521  1.1       erh 356	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
    522  1.3       erh 			    linux_siginfo_t *uinfo); }
    523  1.1       erh 357	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
    524  1.1       erh 			    size_t sigsetsize); }
    525  1.1       erh 358	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    526  1.1       erh 			    fd_set *writefds, fd_set *exceptfds, \
    527  1.1       erh 			    struct timeval *timeout); }
    528  1.1       erh 359	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
    529  1.1       erh 			    struct timezone *tzp); }
    530  1.1       erh 360	NOARGS		{ int sys_settimeofday(struct timeval *tp, \
    531  1.1       erh 			    struct timezone *tzp); }
    532  1.1       erh 361	NOARGS		{ int sys_getitimer(u_int which, \
    533  1.1       erh 			    struct itimerval *itv); }
    534  1.1       erh 362	NOARGS		{ int sys_setitimer(u_int which, \
    535  1.1       erh 			    struct itimerval *itv, struct itimerval *oitv); }
    536  1.1       erh ; XXX XAX Is this correct? no.  utime is a lib call.  utimes is the syscall
    537  1.1       erh ; do we need translation here?  I don't think so.
    538  1.1       erh ; what?
    539  1.1       erh 363	NOARGS		{ int sys_utimes(char *path, \
    540  1.1       erh 			    struct timecal *times); }
    541  1.1       erh 364	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    542  1.1       erh 365	STD		{ int linux_sys_wait4(int pid, int *status, \
    543  1.1       erh 			    int options, struct rusage *rusage); }
    544  1.1       erh 366	UNIMPL		adjtimex
    545  1.1       erh ;367-369	UNIMPL(sys_ni_syscall)
    546