syscalls.master revision 1.54 1 $NetBSD: syscalls.master,v 1.54 2006/08/30 11:14:39 matt 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 #include "opt_ptrace.h"
65 #endif
66
67 #include <sys/param.h>
68 #include <sys/poll.h>
69 #include <sys/systm.h>
70 #include <sys/signal.h>
71 #include <sys/mount.h>
72 #include <sys/sa.h>
73 #include <sys/syscallargs.h>
74
75 #include <compat/linux/common/linux_types.h>
76 #include <compat/linux/common/linux_signal.h>
77 #include <compat/linux/common/linux_siginfo.h>
78 #include <compat/linux/common/linux_ipc.h>
79 #include <compat/linux/common/linux_msg.h>
80 #include <compat/linux/common/linux_sem.h>
81 #include <compat/linux/common/linux_shm.h>
82 #include <compat/linux/common/linux_mmap.h>
83 ;#include <compat/linux/common/linux_machdep.h>
84
85 #include <compat/linux/linux_syscallargs.h>
86
87 %%
88
89 0 NOARGS { int linux_sys_nosys(void); } syscall
90 1 NOARGS { int sys_exit(int rval); }
91 2 NOARGS { int sys_fork(void); }
92 3 NOARGS { int sys_read(int fd, void *buf, size_t nbyte); }
93 4 NOARGS { int sys_write(int fd, const void *buf, size_t nbyte); }
94 5 UNIMPL
95 6 NOARGS { int sys_close(int fd); }
96 7 NODEF { int osf1_sys_wait4(int pid, int *status, \
97 int options, struct osf1_rusage *rusage); }
98 ;8 ALIAS osf1_sys_old_creat, NOT USED
99 8 STD { int linux_sys_creat(const char *path, mode_t mode); }
100 9 STD { int linux_sys_link(const char *path, const char *link); }
101 10 STD { int linux_sys_unlink(const char *path); }
102 11 UNIMPL
103 12 STD { int linux_sys_chdir(const char *path); }
104 13 NOARGS { int sys_fchdir(int fd); }
105 14 STD { int linux_sys_mknod(const char *path, int mode, int dev); }
106 15 STD { int linux_sys_chmod(const char *path, int mode); }
107 16 NOARGS { int sys___posix_chown(const char *path, int uid, int gid); }
108 ;17 ALIAS osf1_sys_brk
109 17 STD { int linux_sys_brk(char *nsize); }
110 18 UNIMPL
111 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
112 int whence); }
113 20 NOARGS { pid_t sys_getpid_with_ppid(void); }
114 21 NODEF { int osf1_sys_mount(int type, const char *path, \
115 int flags, caddr_t data); }
116 22 UNIMPL umount
117 23 NOARGS { int sys_setuid(uid_t uid); }
118 24 NOARGS { uid_t sys_getuid_with_euid(void); }
119 25 UNIMPL
120 #ifdef PTRACE
121 26 STD { int linux_sys_ptrace(long request, long pid, \
122 long addr, long data); }
123 #else
124 26 EXCL ptrace
125 #endif
126 27 UNIMPL
127 28 UNIMPL
128 29 UNIMPL
129 30 UNIMPL
130 31 UNIMPL
131 32 UNIMPL
132 33 STD { int linux_sys_access(const char *path, int flags); }
133 34 UNIMPL
134 35 UNIMPL
135 36 NOARGS { int sys_sync(void); }
136 37 STD { int linux_sys_kill(int pid, int signum); }
137 38 UNIMPL
138 39 NOARGS { int sys_setpgid(int pid, int pgid); }
139 40 UNIMPL
140 41 NOARGS { int sys_dup(int fd); }
141 42 NOARGS { int linux_sys_pipe(void); }
142 43 NODEF { int osf1_sys_set_program_attributes( \
143 caddr_t taddr, unsigned long tsize, \
144 caddr_t daddr, unsigned long dsize); }
145 44 UNIMPL
146 45 STD { int linux_sys_open(const char *path, int flags, int mode); }
147 46 UNIMPL
148 47 NOARGS { gid_t sys_getgid_with_egid(void); }
149 ; ALIAS osf1_sys_sigprocmask(int how, unsigned long mask);
150 ; XXX <- copied from osf1/syscalls.master
151 48 NOARGS { int compat_13_sys_sigprocmask(int how, \
152 sigset13_t mask); }
153 49 UNIMPL
154 50 UNIMPL
155 51 NOARGS { int sys_acct(const char *path); }
156 52 STD { int linux_sys_sigpending(linux_old_sigset_t *set); }
157 53 UNIMPL
158 54 STD { int linux_sys_ioctl(int fd, u_long com, \
159 caddr_t data); }
160 55 UNIMPL
161 56 UNIMPL
162 57 STD { int linux_sys_symlink(const char *path, const char *to); }
163 58 STD { int linux_sys_readlink(const char *name, char *buf, \
164 int count); }
165 59 STD { int linux_sys_execve(const char *path, char **argp, \
166 char **envp); }
167 60 NOARGS { mode_t sys_umask(mode_t newmask); }
168 61 NOARGS { int sys_chroot(const char *path); }
169 62 UNIMPL
170 63 NOARGS { int sys_getpgrp(void); }
171 64 NOARGS { int compat_43_sys_getpagesize(void); }
172 65 UNIMPL
173 66 NOARGS { int sys___vfork14(void); }
174 67 STD { int linux_sys_stat(const char *path, \
175 struct linux_stat *sp); }
176 68 STD { int linux_sys_lstat(const char *path, \
177 struct linux_stat *sp); }
178 69 UNIMPL
179 70 UNIMPL
180 ;71 ALIAS osf1_sys_mmap
181 71 NOARGS { int linux_sys_mmap(unsigned long addr, size_t len, \
182 int prot, int flags, int fd, linux_off_t offset); }
183 72 UNIMPL
184 73 NOARGS { int sys_munmap(void *addr, size_t len); }
185 74 STD { int linux_sys_mprotect(const void *start, \
186 unsigned long len, int prot); }
187 75 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }
188 76 UNIMPL vhangup
189 77 UNIMPL
190 78 UNIMPL
191 79 NOARGS { int sys_getgroups(int gidsetsize, gid_t *gidset); }
192 80 NOARGS { int sys_setgroups(int gidsetsize, const gid_t *gidset); }
193 81 UNIMPL
194 82 UNIMPL setpgrp
195 83 NODEF { int osf1_sys_setitimer(u_int which, \
196 struct osf1_itimerval *itv, \
197 struct osf1_itimerval *oitv); }
198 84 UNIMPL
199 85 UNIMPL
200 86 UNIMPL osf1_sys_getitimer
201 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
202 u_int len); }
203 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
204 u_int len); }
205 89 UNIMPL getdtablesize
206 90 NOARGS { int sys_dup2(int from, int to); }
207 91 STD { int linux_sys_fstat(int fd, struct linux_stat *sp); }
208 92 STD { int linux_sys_fcntl(int fd, int cmd, void *arg); }
209 93 NODEF { int osf1_sys_select(u_int nd, fd_set *in, \
210 fd_set *ou, fd_set *ex, struct osf1_timeval *tv); }
211 94 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
212 int timeout); }
213 95 NOARGS { int sys_fsync(int fd); }
214 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
215 97 STD { int linux_sys_socket(int domain, int type, \
216 int protocol); }
217 98 STD { int linux_sys_connect(int s, \
218 const struct osockaddr *name, \
219 unsigned int namelen); }
220 99 STD { int linux_sys_accept(int s, \
221 struct osockaddr *name, int *anamelen); }
222 ;100 ALIAS osf1_sys_getpriority
223 100 STD { int linux_sys_getpriority(int which, int who); }
224 101 STD { int linux_sys_send(int s, caddr_t buf, int len, \
225 int flags); }
226 102 STD { int linux_sys_recv(int s, caddr_t buf, int len, \
227 int flags); }
228 103 STD { int linux_sys_sigreturn(struct linux_sigframe *sfp); }
229 104 STD { int linux_sys_bind(int s, \
230 const struct osockaddr *name, \
231 unsigned int namelen); }
232 105 STD { int linux_sys_setsockopt(int s, int level, \
233 int optname, void *optval, int optlen); }
234 106 NOARGS { int sys_listen(int s, int backlog); }
235 107 UNIMPL
236 108 UNIMPL
237 109 UNIMPL
238 110 UNIMPL
239
240 111 STD { int linux_sys_sigsuspend(caddr_t restart, \
241 int oldmask, int mask); }
242 ;112 ALIAS osf1_sys_sigstack
243 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
244 struct sigstack *oss); }
245 113 STD { size_t linux_sys_recvmsg(int s, struct msghdr *msg, \
246 int flags); }
247 114 STD { ssize_t linux_sys_sendmsg(int s, \
248 const struct msghdr *msg, int flags); }
249 115 UNIMPL
250 116 NODEF { int osf1_sys_gettimeofday(struct osf1_timeval *tv, \
251 struct osf1_timezone *tzp); }
252 117 NODEF { int osf1_sys_getrusage(int who, \
253 struct osf1_rusage *rusage); }
254 118 STD { int linux_sys_getsockopt(int s, int level, \
255 int optname, void *optval, int *optlen); }
256 119 UNIMPL
257 120 NOARGS { ssize_t sys_readv(int fd, const struct iovec *iovp, \
258 int iovcnt); }
259 121 NOARGS { ssize_t sys_writev(int fd, const struct iovec *iovp, \
260 int iovcnt); }
261 122 NODEF { int osf1_sys_settimeofday(struct osf1_timeval *tv, \
262 struct osf1_timezone *tzp); }
263 123 NOARGS { int sys___posix_fchown(int fd, int uid, int gid); }
264 124 NOARGS { int sys_fchmod(int fd, mode_t mode); }
265 125 STD { int linux_sys_recvfrom(int s, void *buf, int len, \
266 int flags, struct osockaddr *from, \
267 int *fromlenaddr); }
268 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
269 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
270 128 STD { int linux_sys_rename(const char *from, const char *to); }
271 129 STD { int linux_sys_truncate(const char *path, long length); }
272 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
273 131 NOARGS { int sys_flock(int fd, int how); }
274 132 NOARGS { int sys_setgid(gid_t gid); }
275 133 STD { int linux_sys_sendto(int s, void *msg, int len, \
276 int flags, struct osockaddr *to, int tolen); }
277 134 NOARGS { int sys_shutdown(int s, int how); }
278 135 STD { int linux_sys_socketpair(int domain, int type, \
279 int protocol, int *rsv); }
280 136 STD { int linux_sys_mkdir(const char *path, int mode); }
281 137 STD { int linux_sys_rmdir(const char *path); }
282 138 NODEF { int osf1_sys_utimes(const char *path, \
283 const struct osf1_timeval *tptr); }
284 139 UNIMPL
285 140 UNIMPL
286 141 STD { int linux_sys_getpeername(int fdes, \
287 caddr_t asa, int *alen); }
288 142 UNIMPL
289 143 UNIMPL
290 144 STD { int linux_sys_getrlimit(int which, \
291 struct orlimit *rlp); }
292 145 STD { int linux_sys_setrlimit(int which, \
293 const struct orlimit *rlp); }
294 146 UNIMPL
295 147 NOARGS { int sys_setsid(void); }
296 148 UNIMPL quotactl
297 149 UNIMPL
298 150 STD { int linux_sys_getsockname(int fdec, \
299 caddr_t asa, int *alen); }
300 151 UNIMPL
301 152 UNIMPL
302 153 UNIMPL
303 154 UNIMPL
304 155 UNIMPL
305 ;156 ALIAS osf1_sys_sigaction
306 156 STD { int linux_sys_sigaction(int signum, \
307 const struct linux_old_sigaction *nsa, \
308 struct linux_old_sigaction *osa); }
309 157 UNIMPL
310 158 UNIMPL
311 ;159 ALIAS osf1_sys_getdirentries
312 159 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
313 u_int count, long *basep); }
314 160 NODEF { int osf1_sys_statfs(const char *path, \
315 struct osf1_statfs *buf, int len); }
316 161 NODEF { int osf1_sys_fstatfs(int fd, \
317 struct osf1_statfs *buf, int len); }
318 162 UNIMPL
319 163 UNIMPL
320 164 UNIMPL
321 ;165 ALIAS osf1_sys_getdomainname
322 165 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
323 int len); }
324 166 STD { int linux_sys_setdomainname(char *domainname, \
325 int len); }
326 167 UNIMPL
327 168 UNIMPL
328 169 UNIMPL
329 170 UNIMPL
330 171 UNIMPL
331 172 UNIMPL
332 173 UNIMPL
333 174 UNIMPL
334 175 UNIMPL
335 176 UNIMPL
336 177 UNIMPL
337 178 UNIMPL
338 179 UNIMPL
339 180 UNIMPL
340 181 UNIMPL
341 182 UNIMPL
342 183 UNIMPL
343 184 UNIMPL
344 185 UNIMPL
345 186 UNIMPL
346 187 UNIMPL
347 188 UNIMPL
348 189 UNIMPL
349 190 UNIMPL
350 ; XXX: Dunno
351 191 STD { int linux_sys_ugetrlimit(int which, \
352 struct rlimit *rlp); }
353 192 UNIMPL mmap2
354 193 UNIMPL
355 194 UNIMPL
356 195 UNIMPL
357 196 UNIMPL
358 197 UNIMPL
359 198 UNIMPL
360 199 UNIMPL osf1_sys_swapon
361 #ifdef SYSVMSG
362 200 NOARGS { int linux_sys_msgctl(int msqid, int cmd, \
363 struct linux_msqid_ds *buf); }
364 201 NOARGS { int sys_msgget(key_t key, int msgflg); }
365 202 NOARGS { ssize_t sys_msgrcv(int msqid, void *msgp, \
366 size_t msgsz, long msgtyp, int msgflg); }
367 203 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
368 int msgflg); }
369 #else
370 200 UNIMPL msgctl
371 201 UNIMPL msgget
372 202 UNIMPL msgrcv
373 203 UNIMPL msgsnd
374 #endif
375 #ifdef SYSVSEM
376 204 NOARGS { int linux_sys_semctl(int semid, int semnum, \
377 int cmd, union linux_semun arg); }
378 205 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
379 206 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
380 size_t nsops); }
381 #else
382 204 UNIMPL semctl
383 205 UNIMPL semget
384 206 UNIMPL semop
385 #endif
386 ;207 ALIAS osf1_sys_utsname
387 207 STD { int linux_sys_olduname(struct linux_old_utsname *up); }
388 208 NOARGS { int sys___posix_lchown(const char *path, int uid, int gid); }
389 #ifdef SYSVSHM
390 209 NOARGS { int linux_sys_shmat(int shmid, void *shmaddr, \
391 int shmflg, u_long *raddr); }
392 210 NOARGS { int linux_sys_shmctl(int shmid, int cmd, \
393 struct linux_shmid_ds *buf); }
394 211 NOARGS { int sys_shmdt(const void *shmaddr); }
395 212 STD { int linux_sys_shmget(key_t key, size_t size, int shmflg); }
396 #else
397 209 UNIMPL shmat
398 210 UNIMPL shmctl
399 211 UNIMPL shmdt
400 212 UNIMPL shmget
401 #endif
402 213 UNIMPL
403 214 UNIMPL
404 215 UNIMPL
405 216 UNIMPL
406 217 STD { int linux_sys_msync(caddr_t addr, int len, int fl); }
407 218 UNIMPL
408 219 UNIMPL
409 220 UNIMPL
410 221 UNIMPL
411 222 UNIMPL
412 223 UNIMPL
413 224 UNIMPL
414 225 UNIMPL
415 226 UNIMPL
416 227 UNIMPL
417 228 UNIMPL
418 229 UNIMPL
419 230 UNIMPL
420 231 UNIMPL
421 232 UNIMPL
422 233 STD { int linux_sys_getpgid(int pid); }
423 234 NOARGS { pid_t sys_getsid(pid_t pid); }
424 235 UNIMPL sigaltstack
425 236 UNIMPL
426 237 UNIMPL
427 238 UNIMPL
428 239 UNIMPL
429 240 UNIMPL
430 241 NODEF { int osf1_sys_sysinfo(int cmd, char buf, long len); }
431 242 UNIMPL
432 243 UNIMPL
433 244 UNIMPL osf1_sys_proplist_syscall
434 245 UNIMPL
435 246 UNIMPL
436 247 UNIMPL
437 248 UNIMPL
438 249 UNIMPL
439 250 UNIMPL
440 251 NODEF { int osf1_sys_usleep_thread( \
441 struct osf1_timeval *sleep, \
442 struct osf1_timeval *slept); }
443 252 UNIMPL
444 253 UNIMPL
445 254 UNIMPL
446 255 UNIMPL sysfs
447 256 NODEF { int osf1_sys_getsysinfo(u_long op, caddr_t buffer, \
448 u_long nbytes, caddr_t arg, u_long flag); }
449 257 NODEF { int osf1_sys_setsysinfo(u_long op, caddr_t buffer, \
450 u_long nbytes, caddr_t arg, u_long flag); }
451 258 UNIMPL
452 259 UNIMPL
453 260 UNIMPL
454 ; This entry doesn't exist in the Alpha linux syscall table but the function is
455 ; implemented and used on other ports.
456 261 STD { int linux_sys_fdatasync(int fd); }
457 262 UNIMPL
458 263 UNIMPL
459 264 UNIMPL
460 265 UNIMPL
461 266 UNIMPL
462 267 UNIMPL
463 268 UNIMPL
464 269 UNIMPL
465 270 UNIMPL
466 271 UNIMPL
467 272 UNIMPL
468 273 UNIMPL
469 274 UNIMPL
470 275 UNIMPL
471 276 UNIMPL
472 277 UNIMPL
473 278 UNIMPL
474 279 UNIMPL
475 280 UNIMPL
476 281 UNIMPL
477 282 UNIMPL
478 283 UNIMPL
479 284 UNIMPL
480 285 UNIMPL
481 286 UNIMPL
482 287 UNIMPL
483 288 UNIMPL
484 289 UNIMPL
485 290 UNIMPL
486 291 UNIMPL
487 292 UNIMPL
488 293 UNIMPL
489 294 UNIMPL
490 295 UNIMPL
491 296 UNIMPL
492 297 UNIMPL
493 298 UNIMPL
494 299 UNIMPL
495 300 UNIMPL bdflush
496 301 UNIMPL sethae
497 302 UNIMPL mount
498 303 UNIMPL old_adjtimex
499 304 STD { int linux_sys_swapoff(const char *path); }
500 305 STD { int linux_sys_getdents(int fd, \
501 struct linux_dirent *dent, unsigned int count); }
502 306 UNIMPL alpha_create_module
503 307 UNIMPL init_module
504 308 UNIMPL delete_module
505 309 UNIMPL get_kernel_syms
506 310 UNIMPL syslog
507 311 STD { int linux_sys_reboot(int magic1, int magic2, \
508 int cmd, void *arg); }
509 312 STD { int linux_sys_clone(int flags, void *stack); }
510 #ifdef EXEC_AOUT
511 313 STD { int linux_sys_uselib(const char *path); }
512 #else
513 313 UNIMPL sys_uselib
514 #endif
515 314 NOARGS { int sys_mlock(const void *addr, size_t len); }
516 315 NOARGS { int sys_munlock(const void *addr, size_t len); }
517 316 NOARGS { int sys_mlockall(int flags); }
518 317 NOARGS { int sys_munlockall(void); }
519 318 STD { int linux_sys_sysinfo(struct linux_sysinfo *arg); }
520 319 STD { int linux_sys___sysctl(struct linux___sysctl *lsp); }
521 320 UNIMPL idle
522 321 UNIMPL oldumount
523 322 STD { int linux_sys_swapon(const char *name); }
524 323 STD { int linux_sys_times(struct times *tms); }
525 324 STD { int linux_sys_personality(int per); }
526 325 STD { int linux_sys_setfsuid(uid_t uid); }
527 326 UNIMPL setfsgid
528 327 UNIMPL ustat
529 328 STD { int linux_sys_statfs(const char *path, \
530 struct linux_statfs *sp); }
531 329 STD { int linux_sys_fstatfs(int fd, \
532 struct linux_statfs *sp); }
533 330 STD { int linux_sys_sched_setparam(pid_t pid, \
534 const struct linux_sched_param *sp); }
535 331 STD { int linux_sys_sched_getparam(pid_t pid, \
536 struct linux_sched_param *sp); }
537 332 STD { int linux_sys_sched_setscheduler(pid_t pid, \
538 int policy, const struct linux_sched_param *sp); }
539 333 STD { int linux_sys_sched_getscheduler(pid_t pid); }
540 334 STD { int linux_sys_sched_yield(void); }
541 335 STD { int linux_sys_sched_get_priority_max(int policy); }
542 336 STD { int linux_sys_sched_get_priority_min(int policy); }
543 337 UNIMPL sched_rr_get_interval
544 338 UNIMPL afs_syscall
545 339 STD { int linux_sys_uname(struct linux_utsname *up); }
546 340 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
547 struct timespec *rmtp); }
548 341 STD { void *linux_sys_mremap(void *old_address, \
549 size_t old_size, size_t new_size, u_long flags); }
550 342 UNIMPL nfsservctl
551 343 STD { int linux_sys_setresuid(uid_t ruid, uid_t euid, \
552 uid_t suid); }
553 344 STD { int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
554 uid_t *suid); }
555 345 UNIMPL pciconfig_read
556 346 UNIMPL pciconfig_write
557 347 UNIMPL query_module
558 348 UNIMPL prctl
559 349 STD { int linux_sys_pread(int fd, char *buf, \
560 size_t nbyte, linux_off_t offset); }
561 350 STD { int linux_sys_pwrite(int fd, char *buf, \
562 size_t nbyte, linux_off_t offset); }
563 351 STD { int linux_sys_rt_sigreturn( \
564 struct linux_rt_sigframe *sfp); }
565 352 STD { int linux_sys_rt_sigaction(int signum, \
566 const struct linux_sigaction *nsa, \
567 struct linux_sigaction *osa, \
568 size_t sigsetsize); }
569 353 STD { int linux_sys_rt_sigprocmask(int how, \
570 const linux_sigset_t *set, \
571 linux_sigset_t *oset, \
572 size_t sigsetsize); }
573 354 STD { int linux_sys_rt_sigpending( \
574 linux_sigset_t *set, \
575 size_t sigsetsize); }
576 355 UNIMPL rt_sigtimedwait
577 ; XXX XAX int here? sigset_t here?
578 356 STD { int linux_sys_rt_queueinfo(int pid, int signum, \
579 linux_siginfo_t *uinfo); }
580 357 STD { int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
581 size_t sigsetsize); }
582 358 STD { int linux_sys_select(int nfds, fd_set *readfds, \
583 fd_set *writefds, fd_set *exceptfds, \
584 struct timeval *timeout); }
585 359 NOARGS { int sys_gettimeofday(struct timeval *tp, \
586 struct timezone *tzp); }
587 360 NOARGS { int sys_settimeofday(const struct timeval *tp, \
588 const struct timezone *tzp); }
589 361 NOARGS { int sys_getitimer(int which, \
590 struct itimerval *itv); }
591 362 NOARGS { int sys_setitimer(int which, \
592 const struct itimerval *itv, \
593 struct itimerval *oitv); }
594 363 NOARGS { int sys_utimes(char *path, \
595 struct timeval *times); }
596 364 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
597 365 STD { int linux_sys_wait4(int pid, int *status, \
598 int options, struct rusage *rusage); }
599 366 UNIMPL adjtimex
600 367 NOARGS { int sys___getcwd(char *bufp, size_t length); }
601 368 UNIMPL capget
602 369 UNIMPL capset
603 370 UNIMPL sendfile
604 371 UNIMPL setresgid
605 372 UNIMPL getresgid
606 373 UNIMPL sys_dipc
607 374 UNIMPL pivot_root
608 375 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
609 376 UNIMPL pciconfig_iobase
610 377 STD { int linux_sys_getdents64(int fd, \
611 struct linux_dirent64 *dent, unsigned int count); }
612 378 UNIMPL gettid
613 379 UNIMPL readahead
614 380 UNIMPL /* unused */
615 381 UNIMPL tkill
616 382 STD { int linux_sys_setxattr(char *path, char *name, \
617 void *value, size_t size, int flags); }
618 383 STD { int linux_sys_lsetxattr(char *path, char *name, \
619 void *value, size_t size, int flags); }
620 384 STD { int linux_sys_fsetxattr(int fd, char *name, \
621 void *value, size_t size, int flags); }
622 385 STD { ssize_t linux_sys_getxattr(char *path, char *name, \
623 void *value, size_t size); }
624 386 STD { ssize_t linux_sys_lgetxattr(char *path, char *name, \
625 void *value, size_t size); }
626 387 STD { ssize_t linux_sys_fgetxattr(int fd, char *name, \
627 void *value, size_t size); }
628 388 STD { ssize_t linux_sys_listxattr(char *path, char *list, \
629 size_t size); }
630 389 STD { ssize_t linux_sys_llistxattr(char *path, char *list, \
631 size_t size); }
632 390 STD { ssize_t linux_sys_flistxattr(int fd, char *list, \
633 size_t size); }
634 391 STD { int linux_sys_removexattr(char *path, char *name); }
635 392 STD { int linux_sys_lremovexattr(char *path, char *name); }
636 393 STD { int linux_sys_fremovexattr(int fd, char *name); }
637 394 UNIMPL futex
638 395 UNIMPL sched_setaffinity
639 396 UNIMPL sched_getaffinity
640 397 UNIMPL tuxcall
641 398 UNIMPL io_setup
642 399 UNIMPL io_destroy
643 400 UNIMPL io_getevents
644 401 UNIMPL io_submit
645 402 UNIMPL io_cancel
646 403 UNIMPL /* unused */
647 404 UNIMPL /* unused */
648 405 STD { int linux_sys_exit_group(int error_code); }
649 406 UNIMPL lookup_dcookie
650 407 UNIMPL sys_epoll_create
651 408 UNIMPL sys_epoll_ctl
652 409 UNIMPL sys_epoll_wait
653 410 UNIMPL remap_file_pages
654 411 UNIMPL set_tid_address
655 412 UNIMPL restart_syscall
656 413 UNIMPL fadvise64
657 414 UNIMPL timer_create
658 415 UNIMPL timer_settime
659 416 UNIMPL timer_gettime
660 417 UNIMPL timer_getoverrun
661 418 UNIMPL timer_delete
662 419 STD { int linux_sys_clock_settime(clockid_t which, \
663 struct linux_timespec *tp); }
664 420 STD { int linux_sys_clock_gettime(clockid_t which, \
665 struct linux_timespec *tp); }
666 421 STD { int linux_sys_clock_getres(clockid_t which, \
667 struct linux_timespec *tp); }
668 422 STD { int linux_sys_clock_nanosleep(clockid_t which, \
669 int flags, struct linux_timespec *rqtp, \
670 struct linux_timespec *rmtp); }
671 423 UNIMPL semtimedop
672 424 UNIMPL tgkill
673 425 UNIMPL stat64
674 426 UNIMPL lstat64
675 427 UNIMPL fstat64
676 428 UNIMPL vserver
677 429 UNIMPL mbind
678 430 UNIMPL get_mempolicy
679 431 UNIMPL set_mempolicy
680 432 UNIMPL mq_open
681 433 UNIMPL mq_unlink
682 434 UNIMPL mq_timedsend
683 435 UNIMPL mq_timedreceive
684 436 UNIMPL mq_notify
685 437 UNIMPL mq_getsetattr
686