Home | History | Annotate | Line # | Download | only in alpha
syscalls.master revision 1.42
      1 	$NetBSD: syscalls.master,v 1.42 2003/01/18 08:02:46 thorpej Exp $
      2 ;
      3 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4 
      5 ; NetBSD alpha COMPAT_LINUX 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 ;	NODEF	included, but don't define the syscall number
     18 ;	NOARGS	included, but don't define the syscall args structure
     19 ;	INDIR	included, but don't define the syscall args structure
     20 ;		and allow it to be "really" varargs.
     21 ;
     22 ; The compat options are defined in the syscalls.conf file, and the
     23 ; compat option name is prefixed to the syscall name.  Other than
     24 ; that, they're like NODEF (for 'compat' options), or STD (for
     25 ; 'libcompat' options).
     26 ;
     27 ; The type-dependent arguments are as follows:
     28 ; For STD, NODEF, NOARGS, and compat syscalls:
     29 ;	{ pseudo-proto } [alias]
     30 ; For other syscalls:
     31 ;	[comment]
     32 ;
     33 ; #ifdef's, etc. may be included, and are copied to the output files.
     34 ; #include's are copied to the syscall names and switch definition files only.
     35 ;
     36 ; (ERH: 3/18/00)
     37 ;
     38 ; XXX XAX things to do:
     39 ;		make sure non-linux_foo() matches real linux syscalls.
     40 ;			create new linux_foo functions otherwise
     41 ;			(i.e. reboot, msgrcv? )
     42 ;		make sure linux_foo() matches expected prototypes in .c files.
     43 ;		kill not used functions.  (ifdef the actual code)
     44 ;		fix getfsuid in linux_misc.c
     45 ;		make linux_sys_sigreturn in linux_machdep.c use frame.extramask
     46 ;
     47 ; NOT USED = This syscall is not really used in Linux, except in its
     48 ;		osf compat mode.  Since Linux binaries shouldn't ever
     49 ;		call it and osf binaries run under a different emulation,
     50 ;		it shouldn't matter that the linux version of the
     51 ;		function might not DTRT.  Define it anyway so we
     52 ;		don't have to split off or ifdef the associated function.
     53 ; 		    A bit better might be to have makesyscalls identify this
     54 ; 		as "define but don't include in table" so it doesn't actually
     55 ; 		ever get called.
     56 ; UNIMPL <blank> = not implemented here nor in linux source
     57 ; UNIMPL osf_*   = osf functions implemented in linux, not here.
     58 ;
     59 
     60 #if defined(_KERNEL_OPT)
     61 #include "opt_sysv.h"
     62 #include "opt_compat_43.h"
     63 #include "opt_compat_osf1.h"
     64 #endif
     65 
     66 #include <sys/param.h>
     67 #include <sys/poll.h>
     68 #include <sys/systm.h>
     69 #include <sys/signal.h>
     70 #include <sys/mount.h>
     71 #include <sys/sa.h>
     72 #include <sys/syscallargs.h>
     73 
     74 #include <compat/linux/common/linux_types.h>
     75 #include <compat/linux/common/linux_signal.h>
     76 #include <compat/linux/common/linux_siginfo.h>
     77 #include <compat/linux/common/linux_ipc.h>
     78 #include <compat/linux/common/linux_msg.h>
     79 #include <compat/linux/common/linux_sem.h>
     80 #include <compat/linux/common/linux_shm.h>
     81 #include <compat/linux/common/linux_mmap.h>
     82 ;#include <compat/linux/common/linux_machdep.h>
     83 
     84 #include <compat/linux/linux_syscallargs.h>
     85 
     86 %%
     87 
     88 0	NOARGS		{ int linux_sys_nosys(void); } syscall
     89 1	NOARGS		{ int sys_exit(int rval); }
     90 2	NOARGS		{ int sys_fork(void); }
     91 3	NOARGS		{ int sys_read(int fd, void *buf, size_t nbyte); }
     92 4	NOARGS		{ int sys_write(int fd, const void *buf, size_t nbyte); }
     93 5	UNIMPL
     94 6	NOARGS		{ int sys_close(int fd); }
     95 7	NODEF		{ int osf1_sys_wait4(int pid, int *status, \
     96 			    int options, struct osf1_rusage *rusage); }
     97 ;8	ALIAS		osf1_sys_old_creat, NOT USED
     98 8	STD		{ int linux_sys_creat(const char *path, mode_t mode); }
     99 9	STD		{ int linux_sys_link(const char *path, const char *link); }
    100 10	STD		{ int linux_sys_unlink(const char *path); }
    101 11	UNIMPL
    102 12	STD		{ int linux_sys_chdir(const char *path); }
    103 13	NOARGS		{ int sys_fchdir(int fd); }
    104 14	STD		{ int linux_sys_mknod(const char *path, int mode, int dev); }
    105 15	STD		{ int linux_sys_chmod(const char *path, int mode); }
    106 16	NOARGS		{ int sys___posix_chown(const char *path, int uid, int gid); }
    107 ;17	ALIAS		osf1_sys_brk
    108 17	STD		{ int linux_sys_brk(char *nsize); }
    109 18	UNIMPL
    110 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
    111 			    int whence); }
    112 20	NOARGS		{ pid_t sys_getpid_with_ppid(void); }
    113 21	NODEF		{ int osf1_sys_mount(int type, const char *path, \
    114 			    int flags, caddr_t data); }
    115 22	UNIMPL		umount
    116 23	NOARGS		{ int sys_setuid(uid_t uid); }
    117 24	NOARGS		{ uid_t sys_getuid_with_euid(void); }
    118 25	UNIMPL
    119 26	STD		{ int linux_sys_ptrace(long request, long pid, \
    120 			  long addr, long data); }
    121 27	UNIMPL
    122 28	UNIMPL
    123 29	UNIMPL
    124 30	UNIMPL
    125 31	UNIMPL
    126 32	UNIMPL
    127 33	STD		{ int linux_sys_access(const char *path, int flags); }
    128 34	UNIMPL
    129 35	UNIMPL
    130 36	NOARGS		{ int sys_sync(void); }
    131 37	STD		{ int linux_sys_kill(int pid, int signum); }
    132 38	UNIMPL
    133 39	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    134 40	UNIMPL
    135 41	NOARGS		{ int sys_dup(int fd); }
    136 42	NOARGS		{ int linux_sys_pipe(void); }
    137 43	NODEF		{ int osf1_sys_set_program_attributes( \
    138 			    caddr_t taddr, unsigned long tsize, \
    139 			    caddr_t daddr, unsigned long dsize); }
    140 44	UNIMPL
    141 45	STD		{ int linux_sys_open(const char *path, int flags, int mode); }
    142 46	UNIMPL
    143 47	NOARGS		{ gid_t sys_getgid_with_egid(void); }
    144 ; ALIAS osf1_sys_sigprocmask(int how, unsigned long mask);
    145 ; XXX <- copied from osf1/syscalls.master
    146 48	NOARGS		{ int compat_13_sys_sigprocmask(int how, \
    147 			    sigset13_t mask); }
    148 49	UNIMPL
    149 50	UNIMPL
    150 51	NOARGS		{ int sys_acct(const char *path); }
    151 52	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
    152 53	UNIMPL
    153 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    154 			    caddr_t data); }
    155 55	UNIMPL
    156 56	UNIMPL
    157 57	STD		{ int linux_sys_symlink(const char *path, const char *to); }
    158 58	STD		{ int linux_sys_readlink(const char *name, char *buf, \
    159 			    int count); }
    160 59	STD		{ int linux_sys_execve(const char *path, char **argp, \
    161 			    char **envp); }
    162 60	NOARGS		{ mode_t sys_umask(mode_t newmask); }
    163 61	NOARGS		{ int sys_chroot(const char *path); }
    164 62	UNIMPL
    165 63	NOARGS		{ int sys_getpgrp(void); }
    166 64	NOARGS		{ int compat_43_sys_getpagesize(void); }
    167 65	UNIMPL
    168 66	NOARGS		{ int sys___vfork14(void); }
    169 67	STD		{ int linux_sys_stat(const char *path, \
    170 			    struct linux_stat *sp); }
    171 68	STD		{ int linux_sys_lstat(const char *path, \
    172 			    struct linux_stat *sp); }
    173 69	UNIMPL 
    174 70	UNIMPL
    175 ;71	ALIAS		osf1_sys_mmap
    176 71	NOARGS		{ int linux_sys_mmap(unsigned long addr, size_t len, \
    177 			    int prot, int flags, int fd, linux_off_t offset); }
    178 72	UNIMPL
    179 73	NOARGS		{ int sys_munmap(void *addr, size_t len); }
    180 74	STD		{ int linux_sys_mprotect(const void *start, \
    181 			    unsigned long len, int prot); }
    182 ; Linux sys_madvise just returns 0.
    183 75	UNIMPL		madvise
    184 76	UNIMPL		vhangup
    185 77	UNIMPL
    186 78	UNIMPL
    187 79	NOARGS		{ int sys_getgroups(int gidsetsize, gid_t *gidset); }
    188 80	NOARGS		{ int sys_setgroups(int gidsetsize, const gid_t *gidset); }
    189 81	UNIMPL
    190 82	UNIMPL		setpgrp
    191 83	NODEF		{ int osf1_sys_setitimer(u_int which, \
    192 			    struct osf1_itimerval *itv, \
    193 			    struct osf1_itimerval *oitv); }
    194 84	UNIMPL
    195 85	UNIMPL	
    196 86	UNIMPL		osf1_sys_getitimer
    197 87	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
    198 			    u_int len); }
    199 88	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    200 			    u_int len); }
    201 89	UNIMPL		getdtablesize
    202 90	NOARGS		{ int sys_dup2(int from, int to); }
    203 91	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    204 92	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    205 93	NODEF		{ int osf1_sys_select(u_int nd, fd_set *in, \
    206 			    fd_set *ou, fd_set *ex, struct osf1_timeval *tv); }
    207 94	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
    208 			    int timeout); }
    209 95	NOARGS		{ int sys_fsync(int fd); }
    210 96	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    211 97	STD		{ int linux_sys_socket(int domain, int type, \
    212 			    int protocol); }
    213 98	STD		{ int linux_sys_connect(int s, \
    214 			    const struct osockaddr *name, \
    215 			    unsigned int namelen); }
    216 99	STD		{ int linux_sys_accept(int s, \
    217 				struct osockaddr *name, int *anamelen); }
    218 ;100	ALIAS		osf1_sys_getpriority
    219 100	NOARGS		{ int sys_getpriority(int which, int who); }
    220 101	STD		{ int linux_sys_send(int s, caddr_t buf, int len, \
    221 				int flags); }
    222 102	STD		{ int linux_sys_recv(int s, caddr_t buf, int len, \
    223 				int flags); }
    224 103	STD		{ int linux_sys_sigreturn(struct linux_sigframe *sfp); }
    225 104	STD		{ int linux_sys_bind(int s,	     \
    226 				const struct osockaddr *name, \
    227 				unsigned int namelen); }
    228 105	STD		{ int linux_sys_setsockopt(int s, int level, \
    229 				int optname, void *optval, int optlen); }
    230 106	NOARGS		{ int sys_listen(int s, int backlog); }
    231 107	UNIMPL
    232 108	UNIMPL
    233 109	UNIMPL
    234 110	UNIMPL
    235 
    236 111	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
    237 			    int oldmask, int mask); }
    238 ;112	ALIAS		osf1_sys_sigstack
    239 112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
    240 			    struct sigstack *oss); }
    241 113	STD		{ size_t linux_sys_recvmsg(int s, struct msghdr *msg, \
    242 				int flags); }
    243 114	STD		{ ssize_t linux_sys_sendmsg(int s, \
    244 				const struct msghdr *msg, int flags); }
    245 115	UNIMPL
    246 116	NODEF		{ int osf1_sys_gettimeofday(struct osf1_timeval *tv, \
    247 			    struct osf1_timezone *tzp); }
    248 117	NODEF		{ int osf1_sys_getrusage(int who, \
    249 			    struct osf1_rusage *rusage); }
    250 118	STD		{ int linux_sys_getsockopt(int s, int level, \
    251 				int optname, void *optval, int *optlen); }
    252 119	UNIMPL
    253 120	NOARGS		{ ssize_t sys_readv(int fd, const struct iovec *iovp, \
    254 				int iovcnt); }
    255 121	NOARGS		{ ssize_t sys_writev(int fd, const struct iovec *iovp, \
    256 				int iovcnt); }
    257 122	NODEF		{ int osf1_sys_settimeofday(struct osf1_timeval *tv, \
    258 			    struct osf1_timezone *tzp); }
    259 123	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
    260 124	NOARGS		{ int sys_fchmod(int fd, mode_t mode); }
    261 125	STD		{ int linux_sys_recvfrom(int s, void *buf, int len, \
    262 				int flags, struct osockaddr *from, \
    263 				int *fromlenaddr); }
    264 126	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
    265 127	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
    266 128	STD		{ int linux_sys_rename(const char *from, const char *to); }
    267 129	STD		{ int linux_sys_truncate(const char *path, long length); }
    268 130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    269 131	NOARGS		{ int sys_flock(int fd, int how); }
    270 132	NOARGS		{ int sys_setgid(gid_t gid); }
    271 133	STD		{ int linux_sys_sendto(int s, void *msg, int len, \
    272 				int flags, struct osockaddr *to, int tolen); }
    273 134	NOARGS		{ int sys_shutdown(int s, int how); }
    274 135	STD		{ int linux_sys_socketpair(int domain, int type, \
    275 				int protocol, int *rsv); }
    276 136	STD		{ int linux_sys_mkdir(const char *path, int mode); }
    277 137	STD		{ int linux_sys_rmdir(const char *path); }
    278 138	NODEF		{ int osf1_sys_utimes(const char *path, \
    279 			    const struct osf1_timeval *tptr); }
    280 139	UNIMPL
    281 140	UNIMPL
    282 141	STD		{ int linux_sys_getpeername(int fdes, \
    283 				caddr_t asa, int *alen); }
    284 142	UNIMPL
    285 143	UNIMPL
    286 144	STD		{ int linux_sys_getrlimit(int which, \
    287 			    struct orlimit *rlp); }
    288 145	STD		{ int linux_sys_setrlimit(int which, \
    289 			    const struct orlimit *rlp); }
    290 146	UNIMPL
    291 147	NOARGS		{ int sys_setsid(void); }
    292 148	UNIMPL		quotactl
    293 149	UNIMPL
    294 150	STD		{ int linux_sys_getsockname(int fdec, \
    295 				caddr_t asa, int *alen); }
    296 151	UNIMPL
    297 152	UNIMPL
    298 153	UNIMPL
    299 154	UNIMPL
    300 155	UNIMPL
    301 ;156	ALIAS		osf1_sys_sigaction
    302 156	STD		{ int linux_sys_sigaction(int signum, \
    303 				const struct linux_old_sigaction *nsa, \
    304 				struct linux_old_sigaction *osa); }
    305 157	UNIMPL
    306 158	UNIMPL
    307 ;159	ALIAS		osf1_sys_getdirentries
    308 159	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
    309 			    u_int count, long *basep); }
    310 160	NODEF		{ int osf1_sys_statfs(const char *path, \
    311 			    struct osf1_statfs *buf, int len); }
    312 161	NODEF		{ int osf1_sys_fstatfs(int fd, \
    313 			    struct osf1_statfs *buf, int len); }
    314 162	UNIMPL
    315 163	UNIMPL
    316 164	UNIMPL
    317 ;165	ALIAS		osf1_sys_getdomainname
    318 165	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
    319 			    int len); }
    320 166	STD		{ int linux_sys_setdomainname(char *domainname, \
    321                             int len); }
    322 167	UNIMPL
    323 168	UNIMPL
    324 169	UNIMPL
    325 170	UNIMPL
    326 171	UNIMPL
    327 172	UNIMPL
    328 173	UNIMPL
    329 174	UNIMPL
    330 175	UNIMPL
    331 176	UNIMPL
    332 177	UNIMPL
    333 178	UNIMPL
    334 179	UNIMPL
    335 180	UNIMPL
    336 181	UNIMPL
    337 182	UNIMPL
    338 183	UNIMPL
    339 184	UNIMPL
    340 185	UNIMPL
    341 186	UNIMPL
    342 187	UNIMPL
    343 188	UNIMPL
    344 189	UNIMPL
    345 190	UNIMPL
    346 ; XXX: Dunno
    347 191	STD		{ int linux_sys_ugetrlimit(int which, \
    348 			    struct rlimit *rlp); }
    349 192	UNIMPL		mmap2
    350 193	UNIMPL
    351 194	UNIMPL
    352 195	UNIMPL
    353 196	UNIMPL
    354 197	UNIMPL
    355 198	UNIMPL
    356 199	UNIMPL		osf1_sys_swapon
    357 #ifdef SYSVMSG
    358 200	NOARGS		{ int linux_sys_msgctl(int msqid, int cmd, \
    359 			    struct linux_msqid_ds *buf); }
    360 201	NOARGS		{ int sys_msgget(key_t key, int msgflg); }
    361 202	NOARGS		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
    362 			    size_t msgsz, long msgtyp, int msgflg); }
    363 203	NOARGS		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
    364 			    int msgflg); }
    365 #else
    366 200	UNIMPL		msgctl
    367 201	UNIMPL		msgget
    368 202	UNIMPL		msgrcv
    369 203	UNIMPL		msgsnd
    370 #endif
    371 #ifdef SYSVSEM
    372 204	NOARGS		{ int linux_sys_semctl(int semid, int semnum, \
    373 			    int cmd, union linux_semun arg); }
    374 205	NOARGS		{ int sys_semget(key_t key, int nsems, int semflg); }
    375 206	NOARGS		{ int sys_semop(int semid, struct sembuf *sops, \
    376 			    size_t nsops); }
    377 #else
    378 204	UNIMPL		semctl
    379 205	UNIMPL		semget
    380 206	UNIMPL		semop
    381 #endif
    382 ;207	ALIAS		osf1_sys_utsname
    383 207	STD		{ int linux_sys_olduname(struct linux_old_utsname *up); }
    384 208	NOARGS		{ int sys___posix_lchown(const char *path, int uid, int gid); }
    385 #ifdef SYSVSHM
    386 209	NOARGS		{ int linux_sys_shmat(int shmid, void *shmaddr, \
    387 			    int shmflg, u_long *raddr); }
    388 210	NOARGS		{ int linux_sys_shmctl(int shmid, int cmd, \
    389 			    struct linux_shmid_ds *buf); }
    390 211	NOARGS		{ int sys_shmdt(const void *shmaddr); }
    391 212	NOARGS		{ int sys_shmget(key_t key, size_t size, int shmflg); }
    392 #else
    393 209	UNIMPL		shmat
    394 210	UNIMPL		shmctl
    395 211	UNIMPL		shmdt
    396 212	UNIMPL		shmget
    397 #endif
    398 213	UNIMPL
    399 214	UNIMPL
    400 215	UNIMPL
    401 216	UNIMPL
    402 217	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
    403 218	UNIMPL
    404 219	UNIMPL
    405 220	UNIMPL
    406 221	UNIMPL
    407 222	UNIMPL
    408 223	UNIMPL
    409 224	UNIMPL
    410 225	UNIMPL
    411 226	UNIMPL
    412 227	UNIMPL
    413 228	UNIMPL
    414 229	UNIMPL
    415 230	UNIMPL
    416 231	UNIMPL
    417 232	UNIMPL
    418 233	STD		{ int linux_sys_getpgid(int pid); }
    419 234	NOARGS		{ pid_t sys_getsid(pid_t pid); }
    420 235	UNIMPL		sigaltstack
    421 236	UNIMPL
    422 237	UNIMPL
    423 238	UNIMPL
    424 239	UNIMPL
    425 240	UNIMPL
    426 241	NODEF		{ int osf1_sys_sysinfo(int cmd, char buf, long len); }
    427 242	UNIMPL
    428 243	UNIMPL
    429 244	UNIMPL		osf1_sys_proplist_syscall
    430 245	UNIMPL
    431 246	UNIMPL
    432 247	UNIMPL
    433 248	UNIMPL
    434 249	UNIMPL
    435 250	UNIMPL
    436 251	NODEF		{ int osf1_sys_usleep_thread( \
    437 			    struct osf1_timeval *sleep, \
    438 			    struct osf1_timeval *slept); }
    439 252	UNIMPL
    440 253	UNIMPL
    441 254	UNIMPL
    442 255	UNIMPL		sysfs
    443 256	NODEF		{ int osf1_sys_getsysinfo(u_long op, caddr_t buffer, \
    444 			    u_long nbytes, caddr_t arg, u_long flag); }
    445 257	NODEF		{ int osf1_sys_setsysinfo(u_long op, caddr_t buffer, \
    446 			    u_long nbytes, caddr_t arg, u_long flag); }
    447 258	UNIMPL
    448 259	UNIMPL
    449 260	UNIMPL
    450 ; This entry doesn't exist in the Alpha linux syscall table but the function is
    451 ; implemented and used on other ports.
    452 261	STD		{ int linux_sys_fdatasync(int fd); }
    453 262	UNIMPL
    454 263	UNIMPL
    455 264	UNIMPL
    456 265	UNIMPL
    457 266	UNIMPL
    458 267	UNIMPL
    459 268	UNIMPL
    460 269	UNIMPL
    461 270	UNIMPL
    462 271	UNIMPL
    463 272	UNIMPL
    464 273	UNIMPL
    465 274	UNIMPL
    466 275	UNIMPL
    467 276	UNIMPL
    468 277	UNIMPL
    469 278	UNIMPL
    470 279	UNIMPL
    471 280	UNIMPL
    472 281	UNIMPL
    473 282	UNIMPL
    474 283	UNIMPL
    475 284	UNIMPL
    476 285	UNIMPL
    477 286	UNIMPL
    478 287	UNIMPL
    479 288	UNIMPL
    480 289	UNIMPL
    481 290	UNIMPL
    482 291	UNIMPL
    483 292	UNIMPL
    484 293	UNIMPL
    485 294	UNIMPL
    486 295	UNIMPL
    487 296	UNIMPL
    488 297	UNIMPL
    489 298	UNIMPL
    490 299	UNIMPL
    491 300	UNIMPL		bdflush
    492 301	UNIMPL		sethae
    493 302	UNIMPL		mount
    494 303	UNIMPL		old_adjtimex
    495 304	STD		{ int linux_sys_swapoff(const char *path); }
    496 305	STD		{ int linux_sys_getdents(int fd, \
    497 			    struct linux_dirent *dent, unsigned int count); }
    498 306	UNIMPL		alpha_create_module
    499 307	UNIMPL		init_module
    500 308	UNIMPL		delete_module
    501 309	UNIMPL		get_kernel_syms
    502 310	UNIMPL		syslog
    503 311	STD		{ int linux_sys_reboot(int magic1, int magic2, \
    504 			    int cmd, void *arg); }
    505 312	STD		{ int linux_sys_clone(int flags, void *stack); }
    506 #ifdef EXEC_AOUT
    507 313	STD		{ int linux_sys_uselib(const char *path); }
    508 #else
    509 313	UNIMPL		sys_uselib
    510 #endif
    511 314	NOARGS		{ int sys_mlock(const void *addr, size_t len); }
    512 315	NOARGS		{ int sys_munlock(const void *addr, size_t len); }
    513 316	NOARGS		{ int sys_mlockall(int flags); }
    514 317	NOARGS		{ int sys_munlockall(void); }
    515 318	STD		{ int linux_sys_sysinfo(struct linux_sysinfo *arg); }
    516 319	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    517 320	UNIMPL		idle
    518 321	UNIMPL		oldumount
    519 322	STD		{ int linux_sys_swapon(const char *name); }
    520 323	STD		{ int linux_sys_times(struct times *tms); }
    521 324	STD		{ int linux_sys_personality(int per); }
    522 325	STD		{ int linux_sys_setfsuid(uid_t uid); }
    523 326	UNIMPL		setfsgid
    524 327	UNIMPL		ustat
    525 328	STD		{ int linux_sys_statfs(const char *path, \
    526 			    struct linux_statfs *sp); }
    527 329	STD		{ int linux_sys_fstatfs(int fd, \
    528 			    struct linux_statfs *sp); }
    529 330	STD		{ int linux_sys_sched_setparam(pid_t pid, \
    530 			    const struct linux_sched_param *sp); }
    531 331	STD		{ int linux_sys_sched_getparam(pid_t pid, \
    532 			    struct linux_sched_param *sp); }
    533 332	STD		{ int linux_sys_sched_setscheduler(pid_t pid, \
    534 			    int policy, const struct linux_sched_param *sp); }
    535 333	STD		{ int linux_sys_sched_getscheduler(pid_t pid); }
    536 334	STD		{ int linux_sys_sched_yield(void); }
    537 335	STD		{ int linux_sys_sched_get_priority_max(int policy); }
    538 336	STD		{ int linux_sys_sched_get_priority_min(int policy); }
    539 337	UNIMPL		sched_rr_get_interval
    540 338	UNIMPL		afs_syscall
    541 339	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    542 340	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
    543 				struct timespec *rmtp); }
    544 341	STD		{ void *linux_sys_mremap(void *old_address, \
    545 			    size_t old_size, size_t new_size, u_long flags); }
    546 342	UNIMPL		nfsservctl
    547 343	STD		{ int linux_sys_setresuid(uid_t ruid, uid_t euid, \
    548 			    uid_t suid); }
    549 344	STD		{ int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
    550 			    uid_t *suid); }
    551 345	UNIMPL		pciconfig_read
    552 346	UNIMPL		pciconfig_write
    553 347	UNIMPL		query_module
    554 348	UNIMPL		prctl
    555 349	STD		{ int linux_sys_pread(int fd, char *buf, \
    556 			    size_t nbyte, linux_off_t offset); }
    557 350	STD		{ int linux_sys_pwrite(int fd, char *buf, \
    558 			    size_t nbyte, linux_off_t offset); }
    559 351	STD		{ int linux_sys_rt_sigreturn( \
    560 				struct linux_rt_sigframe *sfp); }
    561 352	STD		{ int linux_sys_rt_sigaction(int signum, \
    562 				const struct linux_sigaction *nsa, \
    563 				struct linux_sigaction *osa, \
    564 				size_t sigsetsize); }
    565 353	STD		{ int linux_sys_rt_sigprocmask(int how, \
    566 			    const linux_sigset_t *set, \
    567 			    linux_sigset_t *oset, \
    568 			    size_t sigsetsize); }
    569 354	STD		{ int linux_sys_rt_sigpending( \
    570 			    linux_sigset_t *set, \
    571 			    size_t sigsetsize); }
    572 355	UNIMPL		rt_sigtimedwait
    573 ; XXX XAX int here?  sigset_t here? 
    574 356	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
    575 			    linux_siginfo_t *uinfo); }
    576 357	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
    577 			    size_t sigsetsize); }
    578 358	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    579 			    fd_set *writefds, fd_set *exceptfds, \
    580 			    struct timeval *timeout); }
    581 359	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
    582 			    struct timezone *tzp); }
    583 360	NOARGS		{ int sys_settimeofday(const struct timeval *tp, \
    584 			    const struct timezone *tzp); }
    585 361	NOARGS		{ int sys_getitimer(int which, \
    586 			    struct itimerval *itv); }
    587 362	NOARGS		{ int sys_setitimer(int which, \
    588 			    const struct itimerval *itv, \
    589 			    struct itimerval *oitv); }
    590 363	NOARGS		{ int sys_utimes(char *path, \
    591 			    struct timeval *times); }
    592 364	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    593 365	STD		{ int linux_sys_wait4(int pid, int *status, \
    594 			    int options, struct rusage *rusage); }
    595 366	UNIMPL		adjtimex
    596 367	NOARGS		{ int sys___getcwd(char *bufp, size_t length); }
    597 368	UNIMPL		capget
    598 369	UNIMPL		capset
    599 370	UNIMPL		sendfile
    600 371	UNIMPL		setresgid
    601 372	UNIMPL		getresgid
    602 373	UNIMPL		sys_dipc
    603 374	UNIMPL		pivot_root
    604 375	UNIMPL		mincore
    605 376	UNIMPL		pciconfig_iobase
    606 377	STD		{ int linux_sys_getdents64(int fd, \
    607 			    struct linux_dirent64 *dent, unsigned int count); }
    608