Generate.

This commit is contained in:
erh 1998-09-30 21:34:32 +00:00
parent f6ea7521d7
commit 69ebd14bba
8 changed files with 4212 additions and 0 deletions

View File

@ -0,0 +1,409 @@
/* $NetBSD: linux_syscall.h,v 1.1 1998/09/30 21:34:32 erh Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
/* syscall: "syscall" ret: "int" args: */
#define LINUX_SYS_syscall 0
/* syscall: "exit" ret: "int" args: "int" */
#define LINUX_SYS_exit 1
/* syscall: "fork" ret: "int" args: */
#define LINUX_SYS_fork 2
/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
#define LINUX_SYS_read 3
/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
#define LINUX_SYS_write 4
/* syscall: "close" ret: "int" args: "int" */
#define LINUX_SYS_close 6
/* syscall: "creat" ret: "int" args: "char *" "int" */
#define LINUX_SYS_creat 8
/* syscall: "link" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_link 9
/* syscall: "unlink" ret: "int" args: "char *" */
#define LINUX_SYS_unlink 10
/* syscall: "chdir" ret: "int" args: "char *" */
#define LINUX_SYS_chdir 12
/* syscall: "fchdir" ret: "int" args: "int" */
#define LINUX_SYS_fchdir 13
/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_mknod 14
/* syscall: "chmod" ret: "int" args: "char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_chown 16
/* syscall: "brk" ret: "int" args: "char *" */
#define LINUX_SYS_brk 17
/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
#define LINUX_SYS_lseek 19
/* syscall: "getpid" ret: "pid_t" args: */
#define LINUX_SYS_getpid 20
/* syscall: "setuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setuid 23
/* syscall: "getuid" ret: "uid_t" args: */
#define LINUX_SYS_getuid 24
/* syscall: "access" ret: "int" args: "char *" "int" */
#define LINUX_SYS_access 33
/* syscall: "sync" ret: "int" args: */
#define LINUX_SYS_sync 36
/* syscall: "kill" ret: "int" args: "int" "int" */
#define LINUX_SYS_kill 37
/* syscall: "setpgid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setpgid 39
/* syscall: "dup" ret: "int" args: "u_int" */
#define LINUX_SYS_dup 41
/* syscall: "pipe" ret: "int" args: */
#define LINUX_SYS_pipe 42
/* syscall: "open" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_open 45
/* syscall: "getgid" ret: "gid_t" args: */
#define LINUX_SYS_getgid 47
/* syscall: "acct" ret: "int" args: "char *" */
#define LINUX_SYS_acct 51
/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
#define LINUX_SYS_sigpending 52
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
#define LINUX_SYS_ioctl 54
/* syscall: "symlink" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_symlink 57
/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
#define LINUX_SYS_readlink 58
/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
#define LINUX_SYS_execve 59
/* syscall: "umask" ret: "int" args: "int" */
#define LINUX_SYS_umask 60
/* syscall: "chroot" ret: "int" args: "char *" */
#define LINUX_SYS_chroot 61
/* syscall: "getpgrp" ret: "int" args: */
#define LINUX_SYS_getpgrp 63
/* syscall: "getpagesize" ret: "int" args: */
#define LINUX_SYS_getpagesize 64
/* syscall: "stat" ret: "int" args: "char *" "struct linux_stat *" */
#define LINUX_SYS_stat 67
/* syscall: "lstat" ret: "int" args: "char *" "struct linux_stat *" */
#define LINUX_SYS_lstat 68
/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "off_t" */
#define LINUX_SYS_mmap 71
/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
#define LINUX_SYS_munmap 73
/* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_mprotect 74
/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_getgroups 79
/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_setgroups 80
/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
#define LINUX_SYS_gethostname 87
/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
#define LINUX_SYS_sethostname 88
/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
#define LINUX_SYS_dup2 90
/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
#define LINUX_SYS_fstat 91
/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
#define LINUX_SYS_fcntl 92
/* syscall: "fsync" ret: "int" args: "int" */
#define LINUX_SYS_fsync 95
/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_setpriority 96
/* syscall: "socket" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_socket 97
/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define LINUX_SYS_connect 98
/* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_accept 99
/* syscall: "getpriority" ret: "int" args: "int" "int" */
#define LINUX_SYS_getpriority 100
/* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
#define LINUX_SYS_send 101
/* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
#define LINUX_SYS_recv 102
/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */
#define LINUX_SYS_sigreturn 103
/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define LINUX_SYS_bind 104
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
#define LINUX_SYS_setsockopt 105
/* syscall: "listen" ret: "int" args: "int" "int" */
#define LINUX_SYS_listen 106
/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_sigsuspend 111
/* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
#define LINUX_SYS_recvmsg 113
/* syscall: "sendmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
#define LINUX_SYS_sendmsg 114
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
#define LINUX_SYS_getsockopt 118
/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
#define LINUX_SYS_readv 120
/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
#define LINUX_SYS_writev 121
/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_fchown 123
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define LINUX_SYS_fchmod 124
/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct sockaddr *" "int *" */
#define LINUX_SYS_recvfrom 125
/* syscall: "setreuid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setreuid 126
/* syscall: "setregid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setregid 127
/* syscall: "rename" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_rename 128
/* syscall: "truncate" ret: "int" args: "char *" "long" */
#define LINUX_SYS_truncate 129
/* syscall: "ftruncate" ret: "int" args: "int" "long" */
#define LINUX_SYS_ftruncate 130
/* syscall: "flock" ret: "int" args: "int" "int" */
#define LINUX_SYS_flock 131
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_setgid 132
/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct sockaddr *" "int" */
#define LINUX_SYS_sendto 133
/* syscall: "shutdown" ret: "int" args: "int" "int" */
#define LINUX_SYS_shutdown 134
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
#define LINUX_SYS_socketpair 135
/* syscall: "mkdir" ret: "int" args: "char *" "int" */
#define LINUX_SYS_mkdir 136
/* syscall: "rmdir" ret: "int" args: "char *" */
#define LINUX_SYS_rmdir 137
/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_getpeername 141
/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
#define LINUX_SYS_getrlimit 144
/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
#define LINUX_SYS_setrlimit 145
/* syscall: "setsid" ret: "int" args: */
#define LINUX_SYS_setsid 147
/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_getsockname 150
/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
#define LINUX_SYS_sigaction 156
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
#define LINUX_SYS_msgctl 200
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
#define LINUX_SYS_msgget 201
/* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "int" */
#define LINUX_SYS_msgrcv 202
/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
#define LINUX_SYS_msgsnd 203
/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
#define LINUX_SYS_semctl 204
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
#define LINUX_SYS_semget 205
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "unsigned u_int" */
#define LINUX_SYS_semop 206
/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
#define LINUX_SYS_olduname 207
/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_lchown 208
/* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */
#define LINUX_SYS_shmat 209
/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
#define LINUX_SYS_shmctl 210
/* syscall: "shmdt" ret: "int" args: "void *" */
#define LINUX_SYS_shmdt 211
/* syscall: "shmget" ret: "int" args: "key_t" "int" "int" */
#define LINUX_SYS_shmget 212
/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_msync 217
/* syscall: "getpgid" ret: "int" args: "int" */
#define LINUX_SYS_getpgid 233
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
#define LINUX_SYS_getsid 234
/* syscall: "fdatasync" ret: "int" args: "int" */
#define LINUX_SYS_fdatasync 261
/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
#define LINUX_SYS_getdents 305
/* syscall: "reboot" ret: "int" args: "int" */
#define LINUX_SYS_reboot 311
/* syscall: "uselib" ret: "int" args: "char *" */
#define LINUX_SYS_uselib 313
/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
#define LINUX_SYS_mlock 314
/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
#define LINUX_SYS_munlock 315
/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
#define LINUX_SYS___sysctl 319
/* syscall: "swapon" ret: "int" args: "char *" */
#define LINUX_SYS_swapon 322
/* syscall: "times" ret: "int" args: "struct times *" */
#define LINUX_SYS_times 323
/* syscall: "personality" ret: "int" args: "int" */
#define LINUX_SYS_personality 324
/* syscall: "statfs" ret: "int" args: "char *" "struct linux_statfs *" */
#define LINUX_SYS_statfs 328
/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
#define LINUX_SYS_fstatfs 329
/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
#define LINUX_SYS_uname 339
/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
#define LINUX_SYS_nanosleep 340
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 341
/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
#define LINUX_SYS_rt_sigreturn 351
/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
#define LINUX_SYS_rt_sigaction 352
/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigprocmask 353
/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigpending 354
/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "siginfo_t *" */
#define LINUX_SYS_rt_queueinfo 356
/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigsuspend 357
/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
#define LINUX_SYS_select 358
/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_gettimeofday 359
/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_settimeofday 360
/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
#define LINUX_SYS_getitimer 361
/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
#define LINUX_SYS_setitimer 362
/* syscall: "utimes" ret: "int" args: "char *" "struct timecal *" */
#define LINUX_SYS_utimes 363
/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
#define LINUX_SYS_getrusage 364
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
#define LINUX_SYS_wait4 365
#define LINUX_SYS_MAXSYSCALL 367

View File

@ -0,0 +1,481 @@
/* $NetBSD: linux_syscallargs.h,v 1.1 1998/09/30 21:34:33 erh Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
struct linux_sys_creat_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_unlink_args {
syscallarg(char *) path;
};
struct linux_sys_chdir_args {
syscallarg(char *) path;
};
struct linux_sys_mknod_args {
syscallarg(char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
};
struct linux_sys_chmod_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_chown_args {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_brk_args {
syscallarg(char *) nsize;
};
struct linux_sys_access_args {
syscallarg(char *) path;
syscallarg(int) flags;
};
struct linux_sys_kill_args {
syscallarg(int) pid;
syscallarg(int) signum;
};
struct linux_sys_open_args {
syscallarg(char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
};
struct linux_sys_sigpending_args {
syscallarg(linux_old_sigset_t *) set;
};
struct linux_sys_ioctl_args {
syscallarg(int) fd;
syscallarg(u_long) com;
syscallarg(caddr_t) data;
};
struct linux_sys_symlink_args {
syscallarg(char *) path;
syscallarg(char *) to;
};
struct linux_sys_readlink_args {
syscallarg(char *) name;
syscallarg(char *) buf;
syscallarg(int) count;
};
struct linux_sys_execve_args {
syscallarg(char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
};
struct linux_sys_stat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_lstat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_mmap_args {
syscallarg(unsigned long) addr;
syscallarg(size_t) len;
syscallarg(int) prot;
syscallarg(int) flags;
syscallarg(int) fd;
syscallarg(off_t) offset;
};
struct linux_sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_fcntl_args {
syscallarg(int) fd;
syscallarg(int) cmd;
syscallarg(void *) arg;
};
struct linux_sys_socket_args {
syscallarg(int) domain;
syscallarg(int) type;
syscallarg(int) protocol;
};
struct linux_sys_sigreturn_args {
syscallarg(struct linux_sigframe *) sfp;
};
struct linux_sys_setsockopt_args {
syscallarg(int) s;
syscallarg(int) level;
syscallarg(int) optname;
syscallarg(void *) optval;
syscallarg(int) optlen;
};
struct linux_sys_sigsuspend_args {
syscallarg(caddr_t) restart;
syscallarg(int) oldmask;
syscallarg(int) mask;
};
struct linux_sys_getsockopt_args {
syscallarg(int) s;
syscallarg(int) level;
syscallarg(int) optname;
syscallarg(void *) optval;
syscallarg(int *) optlen;
};
struct linux_sys_fchown_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_recvfrom_args {
syscallarg(int) s;
syscallarg(void *) buf;
syscallarg(int) len;
syscallarg(int) flags;
syscallarg(struct sockaddr *) from;
syscallarg(int *) fromlen;
};
struct linux_sys_setreuid_args {
syscallarg(int) ruid;
syscallarg(int) euid;
};
struct linux_sys_setregid_args {
syscallarg(int) rgid;
syscallarg(int) egid;
};
struct linux_sys_rename_args {
syscallarg(char *) from;
syscallarg(char *) to;
};
struct linux_sys_truncate_args {
syscallarg(char *) path;
syscallarg(long) length;
};
struct linux_sys_sendto_args {
syscallarg(int) s;
syscallarg(void *) msg;
syscallarg(int) len;
syscallarg(int) flags;
syscallarg(struct sockaddr *) to;
syscallarg(int) tolen;
};
struct linux_sys_socketpair_args {
syscallarg(int) domain;
syscallarg(int) type;
syscallarg(int) protocol;
syscallarg(int *) rsv;
};
struct linux_sys_mkdir_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_rmdir_args {
syscallarg(char *) path;
};
struct linux_sys_sigaction_args {
syscallarg(int) signum;
syscallarg(const struct linux_old_sigaction *) nsa;
syscallarg(struct linux_old_sigaction *) osa;
};
struct linux_sys_olduname_args {
syscallarg(struct linux_old_utsname *) up;
};
struct linux_sys_lchown_args {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_msync_args {
syscallarg(caddr_t) addr;
syscallarg(int) len;
syscallarg(int) fl;
};
struct linux_sys_getpgid_args {
syscallarg(int) pid;
};
struct linux_sys_fdatasync_args {
syscallarg(int) fd;
};
struct linux_sys_getdents_args {
syscallarg(int) fd;
syscallarg(struct linux_dirent *) dent;
syscallarg(unsigned int) count;
};
struct linux_sys_uselib_args {
syscallarg(char *) path;
};
struct linux_sys___sysctl_args {
syscallarg(struct linux___sysctl *) lsp;
};
struct linux_sys_times_args {
syscallarg(struct times *) tms;
};
struct linux_sys_personality_args {
syscallarg(int) per;
};
struct linux_sys_statfs_args {
syscallarg(char *) path;
syscallarg(struct linux_statfs *) sp;
};
struct linux_sys_fstatfs_args {
syscallarg(int) fd;
syscallarg(struct linux_statfs *) sp;
};
struct linux_sys_uname_args {
syscallarg(struct linux_utsname *) up;
};
struct linux_sys_mremap_args {
syscallarg(void *) old_address;
syscallarg(size_t) old_size;
syscallarg(size_t) new_size;
syscallarg(u_long) flags;
};
struct linux_sys_rt_sigreturn_args {
syscallarg(struct linux_rt_sigframe *) sfp;
};
struct linux_sys_rt_sigaction_args {
syscallarg(int) signum;
syscallarg(const struct linux_sigaction *) nsa;
syscallarg(struct linux_sigaction *) osa;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_sigprocmask_args {
syscallarg(int) how;
syscallarg(const linux_sigset_t *) set;
syscallarg(linux_sigset_t *) oset;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_sigpending_args {
syscallarg(linux_sigset_t *) set;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_queueinfo_args {
syscallarg(int) pid;
syscallarg(int) signum;
syscallarg(siginfo_t *) uinfo;
};
struct linux_sys_rt_sigsuspend_args {
syscallarg(linux_sigset_t *) unewset;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_select_args {
syscallarg(int) nfds;
syscallarg(fd_set *) readfds;
syscallarg(fd_set *) writefds;
syscallarg(fd_set *) exceptfds;
syscallarg(struct timeval *) timeout;
};
struct linux_sys_wait4_args {
syscallarg(int) pid;
syscallarg(int *) status;
syscallarg(int) options;
syscallarg(struct rusage *) rusage;
};
/*
* System call prototypes.
*/
int sys_nosys __P((struct proc *, void *, register_t *));
int sys_exit __P((struct proc *, void *, register_t *));
int sys_fork __P((struct proc *, void *, register_t *));
int sys_read __P((struct proc *, void *, register_t *));
int sys_write __P((struct proc *, void *, register_t *));
int sys_close __P((struct proc *, void *, register_t *));
int linux_sys_creat __P((struct proc *, void *, register_t *));
int sys_link __P((struct proc *, void *, register_t *));
int linux_sys_unlink __P((struct proc *, void *, register_t *));
int linux_sys_chdir __P((struct proc *, void *, register_t *));
int sys_fchdir __P((struct proc *, void *, register_t *));
int linux_sys_mknod __P((struct proc *, void *, register_t *));
int linux_sys_chmod __P((struct proc *, void *, register_t *));
int linux_sys_chown __P((struct proc *, void *, register_t *));
int linux_sys_brk __P((struct proc *, void *, register_t *));
int compat_43_sys_lseek __P((struct proc *, void *, register_t *));
int sys_getpid __P((struct proc *, void *, register_t *));
int sys_setuid __P((struct proc *, void *, register_t *));
int sys_getuid __P((struct proc *, void *, register_t *));
int linux_sys_access __P((struct proc *, void *, register_t *));
int sys_sync __P((struct proc *, void *, register_t *));
int linux_sys_kill __P((struct proc *, void *, register_t *));
int sys_setpgid __P((struct proc *, void *, register_t *));
int sys_dup __P((struct proc *, void *, register_t *));
int linux_sys_pipe __P((struct proc *, void *, register_t *));
int linux_sys_open __P((struct proc *, void *, register_t *));
int sys_getgid __P((struct proc *, void *, register_t *));
int sys_acct __P((struct proc *, void *, register_t *));
int linux_sys_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_ioctl __P((struct proc *, void *, register_t *));
int linux_sys_symlink __P((struct proc *, void *, register_t *));
int linux_sys_readlink __P((struct proc *, void *, register_t *));
int linux_sys_execve __P((struct proc *, void *, register_t *));
int sys_umask __P((struct proc *, void *, register_t *));
int sys_chroot __P((struct proc *, void *, register_t *));
int sys_getpgrp __P((struct proc *, void *, register_t *));
int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *));
int linux_sys_stat __P((struct proc *, void *, register_t *));
int linux_sys_lstat __P((struct proc *, void *, register_t *));
int linux_sys_mmap __P((struct proc *, void *, register_t *));
int sys_munmap __P((struct proc *, void *, register_t *));
int sys_mprotect __P((struct proc *, void *, register_t *));
int sys_getgroups __P((struct proc *, void *, register_t *));
int sys_setgroups __P((struct proc *, void *, register_t *));
int compat_43_sys_gethostname __P((struct proc *, void *, register_t *));
int compat_43_sys_sethostname __P((struct proc *, void *, register_t *));
int sys_dup2 __P((struct proc *, void *, register_t *));
int linux_sys_fstat __P((struct proc *, void *, register_t *));
int linux_sys_fcntl __P((struct proc *, void *, register_t *));
int sys_fsync __P((struct proc *, void *, register_t *));
int sys_setpriority __P((struct proc *, void *, register_t *));
int linux_sys_socket __P((struct proc *, void *, register_t *));
int sys_connect __P((struct proc *, void *, register_t *));
int compat_43_sys_accept __P((struct proc *, void *, register_t *));
int sys_getpriority __P((struct proc *, void *, register_t *));
int compat_43_sys_send __P((struct proc *, void *, register_t *));
int compat_43_sys_recv __P((struct proc *, void *, register_t *));
int linux_sys_sigreturn __P((struct proc *, void *, register_t *));
int sys_bind __P((struct proc *, void *, register_t *));
int linux_sys_setsockopt __P((struct proc *, void *, register_t *));
int sys_listen __P((struct proc *, void *, register_t *));
int linux_sys_sigsuspend __P((struct proc *, void *, register_t *));
int sys_recvmsg __P((struct proc *, void *, register_t *));
int sys_sendmsg __P((struct proc *, void *, register_t *));
int linux_sys_getsockopt __P((struct proc *, void *, register_t *));
int sys_readv __P((struct proc *, void *, register_t *));
int sys_writev __P((struct proc *, void *, register_t *));
int linux_sys_fchown __P((struct proc *, void *, register_t *));
int sys_fchmod __P((struct proc *, void *, register_t *));
int linux_sys_recvfrom __P((struct proc *, void *, register_t *));
int linux_sys_setreuid __P((struct proc *, void *, register_t *));
int linux_sys_setregid __P((struct proc *, void *, register_t *));
int linux_sys_rename __P((struct proc *, void *, register_t *));
int linux_sys_truncate __P((struct proc *, void *, register_t *));
int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *));
int sys_flock __P((struct proc *, void *, register_t *));
int sys_setgid __P((struct proc *, void *, register_t *));
int linux_sys_sendto __P((struct proc *, void *, register_t *));
int sys_shutdown __P((struct proc *, void *, register_t *));
int linux_sys_socketpair __P((struct proc *, void *, register_t *));
int linux_sys_mkdir __P((struct proc *, void *, register_t *));
int linux_sys_rmdir __P((struct proc *, void *, register_t *));
int compat_43_sys_getpeername __P((struct proc *, void *, register_t *));
int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *));
int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *));
int sys_setsid __P((struct proc *, void *, register_t *));
int compat_43_sys_getsockname __P((struct proc *, void *, register_t *));
int linux_sys_sigaction __P((struct proc *, void *, register_t *));
#ifdef SYSVMSG
int linux_sys_msgctl __P((struct proc *, void *, register_t *));
int sys_msgget __P((struct proc *, void *, register_t *));
int sys_msgrcv __P((struct proc *, void *, register_t *));
int sys_msgsnd __P((struct proc *, void *, register_t *));
#else
#endif
#ifdef SYSVSEM
int linux_sys_semctl __P((struct proc *, void *, register_t *));
int sys_semget __P((struct proc *, void *, register_t *));
int sys_semop __P((struct proc *, void *, register_t *));
#else
#endif
int linux_sys_olduname __P((struct proc *, void *, register_t *));
int linux_sys_lchown __P((struct proc *, void *, register_t *));
#ifdef SYSVSHM
int linux_sys_shmat __P((struct proc *, void *, register_t *));
int linux_sys_shmctl __P((struct proc *, void *, register_t *));
int sys_shmdt __P((struct proc *, void *, register_t *));
int sys_shmget __P((struct proc *, void *, register_t *));
#else
#endif
int linux_sys_msync __P((struct proc *, void *, register_t *));
int linux_sys_getpgid __P((struct proc *, void *, register_t *));
int sys_getsid __P((struct proc *, void *, register_t *));
int linux_sys_fdatasync __P((struct proc *, void *, register_t *));
int linux_sys_getdents __P((struct proc *, void *, register_t *));
int sys_reboot __P((struct proc *, void *, register_t *));
#ifdef EXEC_AOUT
int linux_sys_uselib __P((struct proc *, void *, register_t *));
#else
#endif
int sys_mlock __P((struct proc *, void *, register_t *));
int sys_munlock __P((struct proc *, void *, register_t *));
int linux_sys___sysctl __P((struct proc *, void *, register_t *));
int compat_12_sys_swapon __P((struct proc *, void *, register_t *));
int linux_sys_times __P((struct proc *, void *, register_t *));
int linux_sys_personality __P((struct proc *, void *, register_t *));
int linux_sys_statfs __P((struct proc *, void *, register_t *));
int linux_sys_fstatfs __P((struct proc *, void *, register_t *));
int linux_sys_uname __P((struct proc *, void *, register_t *));
int sys_nanosleep __P((struct proc *, void *, register_t *));
int linux_sys_mremap __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigreturn __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_rt_queueinfo __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
int linux_sys_select __P((struct proc *, void *, register_t *));
int sys_gettimeofday __P((struct proc *, void *, register_t *));
int sys_settimeofday __P((struct proc *, void *, register_t *));
int sys_getitimer __P((struct proc *, void *, register_t *));
int sys_setitimer __P((struct proc *, void *, register_t *));
int sys_utimes __P((struct proc *, void *, register_t *));
int sys_getrusage __P((struct proc *, void *, register_t *));
int linux_sys_wait4 __P((struct proc *, void *, register_t *));

View File

@ -0,0 +1,418 @@
/* $NetBSD: linux_syscalls.c,v 1.1 1998/09/30 21:34:33 erh Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/linux/linux_types.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_siginfo.h>
#include <compat/linux/alpha/linux_syscallargs.h>
#include <compat/linux/linux_ipc.h>
#include <compat/linux/linux_msg.h>
#include <compat/linux/linux_sem.h>
#include <compat/linux/linux_shm.h>
#endif /* _KERNEL && ! _LKM */
char *linux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */
"read", /* 3 = read */
"write", /* 4 = write */
"#5 (unimplemented)", /* 5 = unimplemented */
"close", /* 6 = close */
"#7 (unimplemented osf_wait4)", /* 7 = unimplemented osf_wait4 */
"creat", /* 8 = creat */
"link", /* 9 = link */
"unlink", /* 10 = unlink */
"#11 (unimplemented)", /* 11 = unimplemented */
"chdir", /* 12 = chdir */
"fchdir", /* 13 = fchdir */
"mknod", /* 14 = mknod */
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
"brk", /* 17 = brk */
"#18 (unimplemented)", /* 18 = unimplemented */
"lseek", /* 19 = lseek */
"getpid", /* 20 = getpid */
"#21 (unimplemented osf_mount)", /* 21 = unimplemented osf_mount */
"#22 (unimplemented osf_umount)", /* 22 = unimplemented osf_umount */
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
"#25 (unimplemented)", /* 25 = unimplemented */
"#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */
"#27 (unimplemented)", /* 27 = unimplemented */
"#28 (unimplemented)", /* 28 = unimplemented */
"#29 (unimplemented)", /* 29 = unimplemented */
"#30 (unimplemented)", /* 30 = unimplemented */
"#31 (unimplemented)", /* 31 = unimplemented */
"#32 (unimplemented)", /* 32 = unimplemented */
"access", /* 33 = access */
"#34 (unimplemented)", /* 34 = unimplemented */
"#35 (unimplemented)", /* 35 = unimplemented */
"sync", /* 36 = sync */
"kill", /* 37 = kill */
"#38 (unimplemented)", /* 38 = unimplemented */
"setpgid", /* 39 = setpgid */
"#40 (unimplemented)", /* 40 = unimplemented */
"dup", /* 41 = dup */
"pipe", /* 42 = pipe */
"#43 (unimplemented osf_set_program_attributes)", /* 43 = unimplemented osf_set_program_attributes */
"#44 (unimplemented)", /* 44 = unimplemented */
"open", /* 45 = open */
"#46 (unimplemented)", /* 46 = unimplemented */
"getgid", /* 47 = getgid */
"#48 (unimplemented osf_sigprocmask)", /* 48 = unimplemented osf_sigprocmask */
"#49 (unimplemented)", /* 49 = unimplemented */
"#50 (unimplemented)", /* 50 = unimplemented */
"acct", /* 51 = acct */
"sigpending", /* 52 = sigpending */
"#53 (unimplemented)", /* 53 = unimplemented */
"ioctl", /* 54 = ioctl */
"#55 (unimplemented)", /* 55 = unimplemented */
"#56 (unimplemented)", /* 56 = unimplemented */
"symlink", /* 57 = symlink */
"readlink", /* 58 = readlink */
"execve", /* 59 = execve */
"umask", /* 60 = umask */
"chroot", /* 61 = chroot */
"#62 (unimplemented)", /* 62 = unimplemented */
"getpgrp", /* 63 = getpgrp */
"getpagesize", /* 64 = getpagesize */
"#65 (unimplemented)", /* 65 = unimplemented */
"#66 (unimplemented osf_vfork)", /* 66 = unimplemented osf_vfork */
"stat", /* 67 = stat */
"lstat", /* 68 = lstat */
"#69 (unimplemented)", /* 69 = unimplemented */
"#70 (unimplemented)", /* 70 = unimplemented */
"mmap", /* 71 = mmap */
"#72 (unimplemented)", /* 72 = unimplemented */
"munmap", /* 73 = munmap */
"mprotect", /* 74 = mprotect */
"#75 (unimplemented madvise)", /* 75 = unimplemented madvise */
"#76 (unimplemented vhangup)", /* 76 = unimplemented vhangup */
"#77 (unimplemented)", /* 77 = unimplemented */
"#78 (unimplemented)", /* 78 = unimplemented */
"getgroups", /* 79 = getgroups */
"setgroups", /* 80 = setgroups */
"#81 (unimplemented)", /* 81 = unimplemented */
"#82 (unimplemented setpgrp)", /* 82 = unimplemented setpgrp */
"#83 (unimplemented osf_setitimer)", /* 83 = unimplemented osf_setitimer */
"#84 (unimplemented)", /* 84 = unimplemented */
"#85 (unimplemented)", /* 85 = unimplemented */
"#86 (unimplemented osf_getitimer)", /* 86 = unimplemented osf_getitimer */
"gethostname", /* 87 = gethostname */
"sethostname", /* 88 = sethostname */
"#89 (unimplemented getdtablesize)", /* 89 = unimplemented getdtablesize */
"dup2", /* 90 = dup2 */
"fstat", /* 91 = fstat */
"fcntl", /* 92 = fcntl */
"#93 (unimplemented osf_select)", /* 93 = unimplemented osf_select */
"#94 (unimplemented poll)", /* 94 = unimplemented poll */
"fsync", /* 95 = fsync */
"setpriority", /* 96 = setpriority */
"socket", /* 97 = socket */
"connect", /* 98 = connect */
"accept", /* 99 = accept */
"getpriority", /* 100 = getpriority */
"send", /* 101 = send */
"recv", /* 102 = recv */
"sigreturn", /* 103 = sigreturn */
"bind", /* 104 = bind */
"setsockopt", /* 105 = setsockopt */
"listen", /* 106 = listen */
"#107 (unimplemented)", /* 107 = unimplemented */
"#108 (unimplemented)", /* 108 = unimplemented */
"#109 (unimplemented)", /* 109 = unimplemented */
"#110 (unimplemented)", /* 110 = unimplemented */
"sigsuspend", /* 111 = sigsuspend */
"#112 (unimplemented)", /* 112 = unimplemented */
"recvmsg", /* 113 = recvmsg */
"sendmsg", /* 114 = sendmsg */
"#115 (unimplemented)", /* 115 = unimplemented */
"#116 (unimplemented osf_gettimeofday)", /* 116 = unimplemented osf_gettimeofday */
"#117 (unimplemented osf_getrusage)", /* 117 = unimplemented osf_getrusage */
"getsockopt", /* 118 = getsockopt */
"#119 (unimplemented)", /* 119 = unimplemented */
"readv", /* 120 = readv */
"writev", /* 121 = writev */
"#122 (unimplemented osf_settimeofday)", /* 122 = unimplemented osf_settimeofday */
"fchown", /* 123 = fchown */
"fchmod", /* 124 = fchmod */
"recvfrom", /* 125 = recvfrom */
"setreuid", /* 126 = setreuid */
"setregid", /* 127 = setregid */
"rename", /* 128 = rename */
"truncate", /* 129 = truncate */
"ftruncate", /* 130 = ftruncate */
"flock", /* 131 = flock */
"setgid", /* 132 = setgid */
"sendto", /* 133 = sendto */
"shutdown", /* 134 = shutdown */
"socketpair", /* 135 = socketpair */
"mkdir", /* 136 = mkdir */
"rmdir", /* 137 = rmdir */
"#138 (unimplemented osf_utimes)", /* 138 = unimplemented osf_utimes */
"#139 (unimplemented)", /* 139 = unimplemented */
"#140 (unimplemented)", /* 140 = unimplemented */
"getpeername", /* 141 = getpeername */
"#142 (unimplemented)", /* 142 = unimplemented */
"#143 (unimplemented)", /* 143 = unimplemented */
"getrlimit", /* 144 = getrlimit */
"setrlimit", /* 145 = setrlimit */
"#146 (unimplemented)", /* 146 = unimplemented */
"setsid", /* 147 = setsid */
"#148 (unimplemented quotactl)", /* 148 = unimplemented quotactl */
"#149 (unimplemented)", /* 149 = unimplemented */
"getsockname", /* 150 = getsockname */
"#151 (unimplemented)", /* 151 = unimplemented */
"#152 (unimplemented)", /* 152 = unimplemented */
"#153 (unimplemented)", /* 153 = unimplemented */
"#154 (unimplemented)", /* 154 = unimplemented */
"#155 (unimplemented)", /* 155 = unimplemented */
"sigaction", /* 156 = sigaction */
"#157 (unimplemented)", /* 157 = unimplemented */
"#158 (unimplemented)", /* 158 = unimplemented */
"#159 (unimplemented osf_getdirentries)", /* 159 = unimplemented osf_getdirentries */
"#160 (unimplemented osf_statfs)", /* 160 = unimplemented osf_statfs */
"#161 (unimplemented osf_fstatfs)", /* 161 = unimplemented osf_fstatfs */
"#162 (unimplemented)", /* 162 = unimplemented */
"#163 (unimplemented)", /* 163 = unimplemented */
"#164 (unimplemented)", /* 164 = unimplemented */
"#165 (unimplemented osf_getdomainname)", /* 165 = unimplemented osf_getdomainname */
"#166 (unimplemented setdomainname)", /* 166 = unimplemented setdomainname */
"#167 (unimplemented)", /* 167 = unimplemented */
"#168 (unimplemented)", /* 168 = unimplemented */
"#169 (unimplemented)", /* 169 = unimplemented */
"#170 (unimplemented)", /* 170 = unimplemented */
"#171 (unimplemented)", /* 171 = unimplemented */
"#172 (unimplemented)", /* 172 = unimplemented */
"#173 (unimplemented)", /* 173 = unimplemented */
"#174 (unimplemented)", /* 174 = unimplemented */
"#175 (unimplemented)", /* 175 = unimplemented */
"#176 (unimplemented)", /* 176 = unimplemented */
"#177 (unimplemented)", /* 177 = unimplemented */
"#178 (unimplemented)", /* 178 = unimplemented */
"#179 (unimplemented)", /* 179 = unimplemented */
"#180 (unimplemented)", /* 180 = unimplemented */
"#181 (unimplemented)", /* 181 = unimplemented */
"#182 (unimplemented)", /* 182 = unimplemented */
"#183 (unimplemented)", /* 183 = unimplemented */
"#184 (unimplemented)", /* 184 = unimplemented */
"#185 (unimplemented)", /* 185 = unimplemented */
"#186 (unimplemented)", /* 186 = unimplemented */
"#187 (unimplemented)", /* 187 = unimplemented */
"#188 (unimplemented)", /* 188 = unimplemented */
"#189 (unimplemented)", /* 189 = unimplemented */
"#190 (unimplemented)", /* 190 = unimplemented */
"#191 (unimplemented)", /* 191 = unimplemented */
"#192 (unimplemented)", /* 192 = unimplemented */
"#193 (unimplemented)", /* 193 = unimplemented */
"#194 (unimplemented)", /* 194 = unimplemented */
"#195 (unimplemented)", /* 195 = unimplemented */
"#196 (unimplemented)", /* 196 = unimplemented */
"#197 (unimplemented)", /* 197 = unimplemented */
"#198 (unimplemented)", /* 198 = unimplemented */
"#199 (unimplemented osf_swapon)", /* 199 = unimplemented osf_swapon */
#ifdef SYSVMSG
"msgctl", /* 200 = msgctl */
"msgget", /* 201 = msgget */
"msgrcv", /* 202 = msgrcv */
"msgsnd", /* 203 = msgsnd */
#else
"#200 (unimplemented msgctl)", /* 200 = unimplemented msgctl */
"#201 (unimplemented msgget)", /* 201 = unimplemented msgget */
"#202 (unimplemented msgrcv)", /* 202 = unimplemented msgrcv */
"#203 (unimplemented msgsnd)", /* 203 = unimplemented msgsnd */
#endif
#ifdef SYSVSEM
"semctl", /* 204 = semctl */
"semget", /* 205 = semget */
"semop", /* 206 = semop */
#else
"#204 (unimplemented semctl)", /* 204 = unimplemented semctl */
"#205 (unimplemented semget)", /* 205 = unimplemented semget */
"#206 (unimplemented semop)", /* 206 = unimplemented semop */
#endif
"olduname", /* 207 = olduname */
"lchown", /* 208 = lchown */
#ifdef SYSVSHM
"shmat", /* 209 = shmat */
"shmctl", /* 210 = shmctl */
"shmdt", /* 211 = shmdt */
"shmget", /* 212 = shmget */
#else
"#209 (unimplemented shmat)", /* 209 = unimplemented shmat */
"#210 (unimplemented shmctl)", /* 210 = unimplemented shmctl */
"#211 (unimplemented shmdt)", /* 211 = unimplemented shmdt */
"#212 (unimplemented shmget)", /* 212 = unimplemented shmget */
#endif
"#213 (unimplemented)", /* 213 = unimplemented */
"#214 (unimplemented)", /* 214 = unimplemented */
"#215 (unimplemented)", /* 215 = unimplemented */
"#216 (unimplemented)", /* 216 = unimplemented */
"msync", /* 217 = msync */
"#218 (unimplemented osf_signal)", /* 218 = unimplemented osf_signal */
"#219 (unimplemented)", /* 219 = unimplemented */
"#220 (unimplemented)", /* 220 = unimplemented */
"#221 (unimplemented)", /* 221 = unimplemented */
"#222 (unimplemented)", /* 222 = unimplemented */
"#223 (unimplemented)", /* 223 = unimplemented */
"#224 (unimplemented)", /* 224 = unimplemented */
"#225 (unimplemented)", /* 225 = unimplemented */
"#226 (unimplemented)", /* 226 = unimplemented */
"#227 (unimplemented)", /* 227 = unimplemented */
"#228 (unimplemented)", /* 228 = unimplemented */
"#229 (unimplemented)", /* 229 = unimplemented */
"#230 (unimplemented)", /* 230 = unimplemented */
"#231 (unimplemented)", /* 231 = unimplemented */
"#232 (unimplemented)", /* 232 = unimplemented */
"getpgid", /* 233 = getpgid */
"getsid", /* 234 = getsid */
"#235 (unimplemented)", /* 235 = unimplemented */
"#236 (unimplemented)", /* 236 = unimplemented */
"#237 (unimplemented)", /* 237 = unimplemented */
"#238 (unimplemented)", /* 238 = unimplemented */
"#239 (unimplemented)", /* 239 = unimplemented */
"#240 (unimplemented)", /* 240 = unimplemented */
"#241 (unimplemented osf_sysinfo)", /* 241 = unimplemented osf_sysinfo */
"#242 (unimplemented)", /* 242 = unimplemented */
"#243 (unimplemented)", /* 243 = unimplemented */
"#244 (unimplemented osf_proplist_syscall)", /* 244 = unimplemented osf_proplist_syscall */
"#245 (unimplemented)", /* 245 = unimplemented */
"#246 (unimplemented)", /* 246 = unimplemented */
"#247 (unimplemented)", /* 247 = unimplemented */
"#248 (unimplemented)", /* 248 = unimplemented */
"#249 (unimplemented)", /* 249 = unimplemented */
"#250 (unimplemented)", /* 250 = unimplemented */
"#251 (unimplemented osf_usleep_thread)", /* 251 = unimplemented osf_usleep_thread */
"#252 (unimplemented)", /* 252 = unimplemented */
"#253 (unimplemented)", /* 253 = unimplemented */
"#254 (unimplemented sysfs)", /* 254 = unimplemented sysfs */
"#255 (unimplemented)", /* 255 = unimplemented */
"#256 (unimplemented osf_getsysinfo)", /* 256 = unimplemented osf_getsysinfo */
"#257 (unimplemented osf_setsysinfo)", /* 257 = unimplemented osf_setsysinfo */
"#258 (unimplemented)", /* 258 = unimplemented */
"#259 (unimplemented)", /* 259 = unimplemented */
"#260 (unimplemented)", /* 260 = unimplemented */
"fdatasync", /* 261 = fdatasync */
"#262 (unimplemented)", /* 262 = unimplemented */
"#263 (unimplemented)", /* 263 = unimplemented */
"#264 (unimplemented)", /* 264 = unimplemented */
"#265 (unimplemented)", /* 265 = unimplemented */
"#266 (unimplemented)", /* 266 = unimplemented */
"#267 (unimplemented)", /* 267 = unimplemented */
"#268 (unimplemented)", /* 268 = unimplemented */
"#269 (unimplemented)", /* 269 = unimplemented */
"#270 (unimplemented)", /* 270 = unimplemented */
"#271 (unimplemented)", /* 271 = unimplemented */
"#272 (unimplemented)", /* 272 = unimplemented */
"#273 (unimplemented)", /* 273 = unimplemented */
"#274 (unimplemented)", /* 274 = unimplemented */
"#275 (unimplemented)", /* 275 = unimplemented */
"#276 (unimplemented)", /* 276 = unimplemented */
"#277 (unimplemented)", /* 277 = unimplemented */
"#278 (unimplemented)", /* 278 = unimplemented */
"#279 (unimplemented)", /* 279 = unimplemented */
"#280 (unimplemented)", /* 280 = unimplemented */
"#281 (unimplemented)", /* 281 = unimplemented */
"#282 (unimplemented)", /* 282 = unimplemented */
"#283 (unimplemented)", /* 283 = unimplemented */
"#284 (unimplemented)", /* 284 = unimplemented */
"#285 (unimplemented)", /* 285 = unimplemented */
"#286 (unimplemented)", /* 286 = unimplemented */
"#287 (unimplemented)", /* 287 = unimplemented */
"#288 (unimplemented)", /* 288 = unimplemented */
"#289 (unimplemented)", /* 289 = unimplemented */
"#290 (unimplemented)", /* 290 = unimplemented */
"#291 (unimplemented)", /* 291 = unimplemented */
"#292 (unimplemented)", /* 292 = unimplemented */
"#293 (unimplemented)", /* 293 = unimplemented */
"#294 (unimplemented)", /* 294 = unimplemented */
"#295 (unimplemented)", /* 295 = unimplemented */
"#296 (unimplemented)", /* 296 = unimplemented */
"#297 (unimplemented)", /* 297 = unimplemented */
"#298 (unimplemented)", /* 298 = unimplemented */
"#299 (unimplemented)", /* 299 = unimplemented */
"#300 (unimplemented bdflush)", /* 300 = unimplemented bdflush */
"#301 (unimplemented sethae)", /* 301 = unimplemented sethae */
"#302 (unimplemented mount)", /* 302 = unimplemented mount */
"#303 (unimplemented old_adjtimex)", /* 303 = unimplemented old_adjtimex */
"#304 (unimplemented swapoff)", /* 304 = unimplemented swapoff */
"getdents", /* 305 = getdents */
"#306 (unimplemented create_module)", /* 306 = unimplemented create_module */
"#307 (unimplemented init_module)", /* 307 = unimplemented init_module */
"#308 (unimplemented delete_module)", /* 308 = unimplemented delete_module */
"#309 (unimplemented get_kernel_syms)", /* 309 = unimplemented get_kernel_syms */
"#310 (unimplemented syslog)", /* 310 = unimplemented syslog */
"reboot", /* 311 = reboot */
"#312 (unimplemented clone)", /* 312 = unimplemented clone */
#ifdef EXEC_AOUT
"uselib", /* 313 = uselib */
#else
"#313 (unimplemented sys_uselib)", /* 313 = unimplemented sys_uselib */
#endif
"mlock", /* 314 = mlock */
"munlock", /* 315 = munlock */
"#316 (unimplemented mlockall)", /* 316 = unimplemented mlockall */
"#317 (unimplemented munlockall)", /* 317 = unimplemented munlockall */
"#318 (unimplemented sysinfo)", /* 318 = unimplemented sysinfo */
"__sysctl", /* 319 = __sysctl */
"#320 (unimplemented idle)", /* 320 = unimplemented idle */
"#321 (unimplemented umount)", /* 321 = unimplemented umount */
"swapon", /* 322 = swapon */
"times", /* 323 = times */
"personality", /* 324 = personality */
"#325 (unimplemented setfsuid)", /* 325 = unimplemented setfsuid */
"#326 (unimplemented setfsgid)", /* 326 = unimplemented setfsgid */
"#327 (unimplemented ustat)", /* 327 = unimplemented ustat */
"statfs", /* 328 = statfs */
"fstatfs", /* 329 = fstatfs */
"#330 (unimplemented sched_setparam)", /* 330 = unimplemented sched_setparam */
"#331 (unimplemented sched_getparam)", /* 331 = unimplemented sched_getparam */
"#332 (unimplemented sched_setscheduler)", /* 332 = unimplemented sched_setscheduler */
"#333 (unimplemented sched_getscheduler)", /* 333 = unimplemented sched_getscheduler */
"#334 (unimplemented sched_yield)", /* 334 = unimplemented sched_yield */
"#335 (unimplemented sched_get_priority_max)", /* 335 = unimplemented sched_get_priority_max */
"#336 (unimplemented sched_get_priority_min)", /* 336 = unimplemented sched_get_priority_min */
"#337 (unimplemented sched_rr_get_interval)", /* 337 = unimplemented sched_rr_get_interval */
"#338 (unimplemented afs_syscall)", /* 338 = unimplemented afs_syscall */
"uname", /* 339 = uname */
"nanosleep", /* 340 = nanosleep */
"mremap", /* 341 = mremap */
"#342 (unimplemented nfsservctl)", /* 342 = unimplemented nfsservctl */
"#343 (unimplemented setresgid)", /* 343 = unimplemented setresgid */
"#344 (unimplemented getresgid)", /* 344 = unimplemented getresgid */
"#345 (unimplemented pciconfig_read)", /* 345 = unimplemented pciconfig_read */
"#346 (unimplemented pciconfig_write)", /* 346 = unimplemented pciconfig_write */
"#347 (unimplemented query_module)", /* 347 = unimplemented query_module */
"#348 (unimplemented prctl)", /* 348 = unimplemented prctl */
"#349 (unimplemented pread)", /* 349 = unimplemented pread */
"#350 (unimplemented pwrite)", /* 350 = unimplemented pwrite */
"rt_sigreturn", /* 351 = rt_sigreturn */
"rt_sigaction", /* 352 = rt_sigaction */
"rt_sigprocmask", /* 353 = rt_sigprocmask */
"rt_sigpending", /* 354 = rt_sigpending */
"#355 (unimplemented rt_sigtimedwait)", /* 355 = unimplemented rt_sigtimedwait */
"rt_queueinfo", /* 356 = rt_queueinfo */
"rt_sigsuspend", /* 357 = rt_sigsuspend */
"select", /* 358 = select */
"gettimeofday", /* 359 = gettimeofday */
"settimeofday", /* 360 = settimeofday */
"getitimer", /* 361 = getitimer */
"setitimer", /* 362 = setitimer */
"utimes", /* 363 = utimes */
"getrusage", /* 364 = getrusage */
"wait4", /* 365 = wait4 */
"#366 (unimplemented adjtimex)", /* 366 = unimplemented adjtimex */
};

View File

@ -0,0 +1,798 @@
/* $NetBSD: linux_sysent.c,v 1.1 1998/09/30 21:34:34 erh Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/linux/linux_types.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_siginfo.h>
#include <compat/linux/alpha/linux_syscallargs.h>
#include <compat/linux/linux_ipc.h>
#include <compat/linux/linux_msg.h>
#include <compat/linux/linux_sem.h>
#include <compat/linux/linux_shm.h>
#define s(type) sizeof(type)
struct sysent linux_sysent[] = {
{ 0, 0,
sys_nosys }, /* 0 = syscall */
{ 1, s(struct sys_exit_args),
sys_exit }, /* 1 = exit */
{ 0, 0,
sys_fork }, /* 2 = fork */
{ 3, s(struct sys_read_args),
sys_read }, /* 3 = read */
{ 3, s(struct sys_write_args),
sys_write }, /* 4 = write */
{ 0, 0,
sys_nosys }, /* 5 = unimplemented */
{ 1, s(struct sys_close_args),
sys_close }, /* 6 = close */
{ 0, 0,
sys_nosys }, /* 7 = unimplemented osf_wait4 */
{ 2, s(struct linux_sys_creat_args),
linux_sys_creat }, /* 8 = creat */
{ 2, s(struct sys_link_args),
sys_link }, /* 9 = link */
{ 1, s(struct linux_sys_unlink_args),
linux_sys_unlink }, /* 10 = unlink */
{ 0, 0,
sys_nosys }, /* 11 = unimplemented */
{ 1, s(struct linux_sys_chdir_args),
linux_sys_chdir }, /* 12 = chdir */
{ 1, s(struct sys_fchdir_args),
sys_fchdir }, /* 13 = fchdir */
{ 3, s(struct linux_sys_mknod_args),
linux_sys_mknod }, /* 14 = mknod */
{ 2, s(struct linux_sys_chmod_args),
linux_sys_chmod }, /* 15 = chmod */
{ 3, s(struct linux_sys_chown_args),
linux_sys_chown }, /* 16 = chown */
{ 1, s(struct linux_sys_brk_args),
linux_sys_brk }, /* 17 = brk */
{ 0, 0,
sys_nosys }, /* 18 = unimplemented */
{ 3, s(struct compat_43_sys_lseek_args),
compat_43_sys_lseek }, /* 19 = lseek */
{ 0, 0,
sys_getpid }, /* 20 = getpid */
{ 0, 0,
sys_nosys }, /* 21 = unimplemented osf_mount */
{ 0, 0,
sys_nosys }, /* 22 = unimplemented osf_umount */
{ 1, s(struct sys_setuid_args),
sys_setuid }, /* 23 = setuid */
{ 0, 0,
sys_getuid }, /* 24 = getuid */
{ 0, 0,
sys_nosys }, /* 25 = unimplemented */
{ 0, 0,
sys_nosys }, /* 26 = unimplemented ptrace */
{ 0, 0,
sys_nosys }, /* 27 = unimplemented */
{ 0, 0,
sys_nosys }, /* 28 = unimplemented */
{ 0, 0,
sys_nosys }, /* 29 = unimplemented */
{ 0, 0,
sys_nosys }, /* 30 = unimplemented */
{ 0, 0,
sys_nosys }, /* 31 = unimplemented */
{ 0, 0,
sys_nosys }, /* 32 = unimplemented */
{ 2, s(struct linux_sys_access_args),
linux_sys_access }, /* 33 = access */
{ 0, 0,
sys_nosys }, /* 34 = unimplemented */
{ 0, 0,
sys_nosys }, /* 35 = unimplemented */
{ 0, 0,
sys_sync }, /* 36 = sync */
{ 2, s(struct linux_sys_kill_args),
linux_sys_kill }, /* 37 = kill */
{ 0, 0,
sys_nosys }, /* 38 = unimplemented */
{ 2, s(struct sys_setpgid_args),
sys_setpgid }, /* 39 = setpgid */
{ 0, 0,
sys_nosys }, /* 40 = unimplemented */
{ 1, s(struct sys_dup_args),
sys_dup }, /* 41 = dup */
{ 0, 0,
linux_sys_pipe }, /* 42 = pipe */
{ 0, 0,
sys_nosys }, /* 43 = unimplemented osf_set_program_attributes */
{ 0, 0,
sys_nosys }, /* 44 = unimplemented */
{ 3, s(struct linux_sys_open_args),
linux_sys_open }, /* 45 = open */
{ 0, 0,
sys_nosys }, /* 46 = unimplemented */
{ 0, 0,
sys_getgid }, /* 47 = getgid */
{ 0, 0,
sys_nosys }, /* 48 = unimplemented osf_sigprocmask */
{ 0, 0,
sys_nosys }, /* 49 = unimplemented */
{ 0, 0,
sys_nosys }, /* 50 = unimplemented */
{ 1, s(struct sys_acct_args),
sys_acct }, /* 51 = acct */
{ 1, s(struct linux_sys_sigpending_args),
linux_sys_sigpending }, /* 52 = sigpending */
{ 0, 0,
sys_nosys }, /* 53 = unimplemented */
{ 3, s(struct linux_sys_ioctl_args),
linux_sys_ioctl }, /* 54 = ioctl */
{ 0, 0,
sys_nosys }, /* 55 = unimplemented */
{ 0, 0,
sys_nosys }, /* 56 = unimplemented */
{ 2, s(struct linux_sys_symlink_args),
linux_sys_symlink }, /* 57 = symlink */
{ 3, s(struct linux_sys_readlink_args),
linux_sys_readlink }, /* 58 = readlink */
{ 3, s(struct linux_sys_execve_args),
linux_sys_execve }, /* 59 = execve */
{ 1, s(struct sys_umask_args),
sys_umask }, /* 60 = umask */
{ 1, s(struct sys_chroot_args),
sys_chroot }, /* 61 = chroot */
{ 0, 0,
sys_nosys }, /* 62 = unimplemented */
{ 0, 0,
sys_getpgrp }, /* 63 = getpgrp */
{ 0, 0,
compat_43_sys_getpagesize }, /* 64 = getpagesize */
{ 0, 0,
sys_nosys }, /* 65 = unimplemented */
{ 0, 0,
sys_nosys }, /* 66 = unimplemented osf_vfork */
{ 2, s(struct linux_sys_stat_args),
linux_sys_stat }, /* 67 = stat */
{ 2, s(struct linux_sys_lstat_args),
linux_sys_lstat }, /* 68 = lstat */
{ 0, 0,
sys_nosys }, /* 69 = unimplemented */
{ 0, 0,
sys_nosys }, /* 70 = unimplemented */
{ 6, s(struct linux_sys_mmap_args),
linux_sys_mmap }, /* 71 = mmap */
{ 0, 0,
sys_nosys }, /* 72 = unimplemented */
{ 2, s(struct sys_munmap_args),
sys_munmap }, /* 73 = munmap */
{ 3, s(struct sys_mprotect_args),
sys_mprotect }, /* 74 = mprotect */
{ 0, 0,
sys_nosys }, /* 75 = unimplemented madvise */
{ 0, 0,
sys_nosys }, /* 76 = unimplemented vhangup */
{ 0, 0,
sys_nosys }, /* 77 = unimplemented */
{ 0, 0,
sys_nosys }, /* 78 = unimplemented */
{ 2, s(struct sys_getgroups_args),
sys_getgroups }, /* 79 = getgroups */
{ 2, s(struct sys_setgroups_args),
sys_setgroups }, /* 80 = setgroups */
{ 0, 0,
sys_nosys }, /* 81 = unimplemented */
{ 0, 0,
sys_nosys }, /* 82 = unimplemented setpgrp */
{ 0, 0,
sys_nosys }, /* 83 = unimplemented osf_setitimer */
{ 0, 0,
sys_nosys }, /* 84 = unimplemented */
{ 0, 0,
sys_nosys }, /* 85 = unimplemented */
{ 0, 0,
sys_nosys }, /* 86 = unimplemented osf_getitimer */
{ 2, s(struct compat_43_sys_gethostname_args),
compat_43_sys_gethostname }, /* 87 = gethostname */
{ 2, s(struct compat_43_sys_sethostname_args),
compat_43_sys_sethostname }, /* 88 = sethostname */
{ 0, 0,
sys_nosys }, /* 89 = unimplemented getdtablesize */
{ 2, s(struct sys_dup2_args),
sys_dup2 }, /* 90 = dup2 */
{ 2, s(struct linux_sys_fstat_args),
linux_sys_fstat }, /* 91 = fstat */
{ 3, s(struct linux_sys_fcntl_args),
linux_sys_fcntl }, /* 92 = fcntl */
{ 0, 0,
sys_nosys }, /* 93 = unimplemented osf_select */
{ 0, 0,
sys_nosys }, /* 94 = unimplemented poll */
{ 1, s(struct sys_fsync_args),
sys_fsync }, /* 95 = fsync */
{ 3, s(struct sys_setpriority_args),
sys_setpriority }, /* 96 = setpriority */
{ 3, s(struct linux_sys_socket_args),
linux_sys_socket }, /* 97 = socket */
{ 3, s(struct sys_connect_args),
sys_connect }, /* 98 = connect */
{ 3, s(struct compat_43_sys_accept_args),
compat_43_sys_accept }, /* 99 = accept */
{ 2, s(struct sys_getpriority_args),
sys_getpriority }, /* 100 = getpriority */
{ 4, s(struct compat_43_sys_send_args),
compat_43_sys_send }, /* 101 = send */
{ 4, s(struct compat_43_sys_recv_args),
compat_43_sys_recv }, /* 102 = recv */
{ 1, s(struct linux_sys_sigreturn_args),
linux_sys_sigreturn }, /* 103 = sigreturn */
{ 3, s(struct sys_bind_args),
sys_bind }, /* 104 = bind */
{ 5, s(struct linux_sys_setsockopt_args),
linux_sys_setsockopt }, /* 105 = setsockopt */
{ 2, s(struct sys_listen_args),
sys_listen }, /* 106 = listen */
{ 0, 0,
sys_nosys }, /* 107 = unimplemented */
{ 0, 0,
sys_nosys }, /* 108 = unimplemented */
{ 0, 0,
sys_nosys }, /* 109 = unimplemented */
{ 0, 0,
sys_nosys }, /* 110 = unimplemented */
{ 3, s(struct linux_sys_sigsuspend_args),
linux_sys_sigsuspend }, /* 111 = sigsuspend */
{ 0, 0,
sys_nosys }, /* 112 = unimplemented */
{ 3, s(struct sys_recvmsg_args),
sys_recvmsg }, /* 113 = recvmsg */
{ 3, s(struct sys_sendmsg_args),
sys_sendmsg }, /* 114 = sendmsg */
{ 0, 0,
sys_nosys }, /* 115 = unimplemented */
{ 0, 0,
sys_nosys }, /* 116 = unimplemented osf_gettimeofday */
{ 0, 0,
sys_nosys }, /* 117 = unimplemented osf_getrusage */
{ 5, s(struct linux_sys_getsockopt_args),
linux_sys_getsockopt }, /* 118 = getsockopt */
{ 0, 0,
sys_nosys }, /* 119 = unimplemented */
{ 3, s(struct sys_readv_args),
sys_readv }, /* 120 = readv */
{ 3, s(struct sys_writev_args),
sys_writev }, /* 121 = writev */
{ 0, 0,
sys_nosys }, /* 122 = unimplemented osf_settimeofday */
{ 3, s(struct linux_sys_fchown_args),
linux_sys_fchown }, /* 123 = fchown */
{ 2, s(struct sys_fchmod_args),
sys_fchmod }, /* 124 = fchmod */
{ 6, s(struct linux_sys_recvfrom_args),
linux_sys_recvfrom }, /* 125 = recvfrom */
{ 2, s(struct linux_sys_setreuid_args),
linux_sys_setreuid }, /* 126 = setreuid */
{ 2, s(struct linux_sys_setregid_args),
linux_sys_setregid }, /* 127 = setregid */
{ 2, s(struct linux_sys_rename_args),
linux_sys_rename }, /* 128 = rename */
{ 2, s(struct linux_sys_truncate_args),
linux_sys_truncate }, /* 129 = truncate */
{ 2, s(struct compat_43_sys_ftruncate_args),
compat_43_sys_ftruncate }, /* 130 = ftruncate */
{ 2, s(struct sys_flock_args),
sys_flock }, /* 131 = flock */
{ 1, s(struct sys_setgid_args),
sys_setgid }, /* 132 = setgid */
{ 6, s(struct linux_sys_sendto_args),
linux_sys_sendto }, /* 133 = sendto */
{ 2, s(struct sys_shutdown_args),
sys_shutdown }, /* 134 = shutdown */
{ 4, s(struct linux_sys_socketpair_args),
linux_sys_socketpair }, /* 135 = socketpair */
{ 2, s(struct linux_sys_mkdir_args),
linux_sys_mkdir }, /* 136 = mkdir */
{ 1, s(struct linux_sys_rmdir_args),
linux_sys_rmdir }, /* 137 = rmdir */
{ 0, 0,
sys_nosys }, /* 138 = unimplemented osf_utimes */
{ 0, 0,
sys_nosys }, /* 139 = unimplemented */
{ 0, 0,
sys_nosys }, /* 140 = unimplemented */
{ 3, s(struct compat_43_sys_getpeername_args),
compat_43_sys_getpeername }, /* 141 = getpeername */
{ 0, 0,
sys_nosys }, /* 142 = unimplemented */
{ 0, 0,
sys_nosys }, /* 143 = unimplemented */
{ 2, s(struct compat_43_sys_getrlimit_args),
compat_43_sys_getrlimit }, /* 144 = getrlimit */
{ 2, s(struct compat_43_sys_setrlimit_args),
compat_43_sys_setrlimit }, /* 145 = setrlimit */
{ 0, 0,
sys_nosys }, /* 146 = unimplemented */
{ 0, 0,
sys_setsid }, /* 147 = setsid */
{ 0, 0,
sys_nosys }, /* 148 = unimplemented quotactl */
{ 0, 0,
sys_nosys }, /* 149 = unimplemented */
{ 3, s(struct compat_43_sys_getsockname_args),
compat_43_sys_getsockname }, /* 150 = getsockname */
{ 0, 0,
sys_nosys }, /* 151 = unimplemented */
{ 0, 0,
sys_nosys }, /* 152 = unimplemented */
{ 0, 0,
sys_nosys }, /* 153 = unimplemented */
{ 0, 0,
sys_nosys }, /* 154 = unimplemented */
{ 0, 0,
sys_nosys }, /* 155 = unimplemented */
{ 3, s(struct linux_sys_sigaction_args),
linux_sys_sigaction }, /* 156 = sigaction */
{ 0, 0,
sys_nosys }, /* 157 = unimplemented */
{ 0, 0,
sys_nosys }, /* 158 = unimplemented */
{ 0, 0,
sys_nosys }, /* 159 = unimplemented osf_getdirentries */
{ 0, 0,
sys_nosys }, /* 160 = unimplemented osf_statfs */
{ 0, 0,
sys_nosys }, /* 161 = unimplemented osf_fstatfs */
{ 0, 0,
sys_nosys }, /* 162 = unimplemented */
{ 0, 0,
sys_nosys }, /* 163 = unimplemented */
{ 0, 0,
sys_nosys }, /* 164 = unimplemented */
{ 0, 0,
sys_nosys }, /* 165 = unimplemented osf_getdomainname */
{ 0, 0,
sys_nosys }, /* 166 = unimplemented setdomainname */
{ 0, 0,
sys_nosys }, /* 167 = unimplemented */
{ 0, 0,
sys_nosys }, /* 168 = unimplemented */
{ 0, 0,
sys_nosys }, /* 169 = unimplemented */
{ 0, 0,
sys_nosys }, /* 170 = unimplemented */
{ 0, 0,
sys_nosys }, /* 171 = unimplemented */
{ 0, 0,
sys_nosys }, /* 172 = unimplemented */
{ 0, 0,
sys_nosys }, /* 173 = unimplemented */
{ 0, 0,
sys_nosys }, /* 174 = unimplemented */
{ 0, 0,
sys_nosys }, /* 175 = unimplemented */
{ 0, 0,
sys_nosys }, /* 176 = unimplemented */
{ 0, 0,
sys_nosys }, /* 177 = unimplemented */
{ 0, 0,
sys_nosys }, /* 178 = unimplemented */
{ 0, 0,
sys_nosys }, /* 179 = unimplemented */
{ 0, 0,
sys_nosys }, /* 180 = unimplemented */
{ 0, 0,
sys_nosys }, /* 181 = unimplemented */
{ 0, 0,
sys_nosys }, /* 182 = unimplemented */
{ 0, 0,
sys_nosys }, /* 183 = unimplemented */
{ 0, 0,
sys_nosys }, /* 184 = unimplemented */
{ 0, 0,
sys_nosys }, /* 185 = unimplemented */
{ 0, 0,
sys_nosys }, /* 186 = unimplemented */
{ 0, 0,
sys_nosys }, /* 187 = unimplemented */
{ 0, 0,
sys_nosys }, /* 188 = unimplemented */
{ 0, 0,
sys_nosys }, /* 189 = unimplemented */
{ 0, 0,
sys_nosys }, /* 190 = unimplemented */
{ 0, 0,
sys_nosys }, /* 191 = unimplemented */
{ 0, 0,
sys_nosys }, /* 192 = unimplemented */
{ 0, 0,
sys_nosys }, /* 193 = unimplemented */
{ 0, 0,
sys_nosys }, /* 194 = unimplemented */
{ 0, 0,
sys_nosys }, /* 195 = unimplemented */
{ 0, 0,
sys_nosys }, /* 196 = unimplemented */
{ 0, 0,
sys_nosys }, /* 197 = unimplemented */
{ 0, 0,
sys_nosys }, /* 198 = unimplemented */
{ 0, 0,
sys_nosys }, /* 199 = unimplemented osf_swapon */
#ifdef SYSVMSG
{ 3, s(struct linux_sys_msgctl_args),
linux_sys_msgctl }, /* 200 = msgctl */
{ 2, s(struct sys_msgget_args),
sys_msgget }, /* 201 = msgget */
{ 4, s(struct sys_msgrcv_args),
sys_msgrcv }, /* 202 = msgrcv */
{ 4, s(struct sys_msgsnd_args),
sys_msgsnd }, /* 203 = msgsnd */
#else
{ 0, 0,
sys_nosys }, /* 200 = unimplemented msgctl */
{ 0, 0,
sys_nosys }, /* 201 = unimplemented msgget */
{ 0, 0,
sys_nosys }, /* 202 = unimplemented msgrcv */
{ 0, 0,
sys_nosys }, /* 203 = unimplemented msgsnd */
#endif
#ifdef SYSVSEM
{ 4, s(struct linux_sys_semctl_args),
linux_sys_semctl }, /* 204 = semctl */
{ 3, s(struct sys_semget_args),
sys_semget }, /* 205 = semget */
{ 3, s(struct sys_semop_args),
sys_semop }, /* 206 = semop */
#else
{ 0, 0,
sys_nosys }, /* 204 = unimplemented semctl */
{ 0, 0,
sys_nosys }, /* 205 = unimplemented semget */
{ 0, 0,
sys_nosys }, /* 206 = unimplemented semop */
#endif
{ 1, s(struct linux_sys_olduname_args),
linux_sys_olduname }, /* 207 = olduname */
{ 3, s(struct linux_sys_lchown_args),
linux_sys_lchown }, /* 208 = lchown */
#ifdef SYSVSHM
{ 4, s(struct linux_sys_shmat_args),
linux_sys_shmat }, /* 209 = shmat */
{ 3, s(struct linux_sys_shmctl_args),
linux_sys_shmctl }, /* 210 = shmctl */
{ 1, s(struct sys_shmdt_args),
sys_shmdt }, /* 211 = shmdt */
{ 3, s(struct sys_shmget_args),
sys_shmget }, /* 212 = shmget */
#else
{ 0, 0,
sys_nosys }, /* 209 = unimplemented shmat */
{ 0, 0,
sys_nosys }, /* 210 = unimplemented shmctl */
{ 0, 0,
sys_nosys }, /* 211 = unimplemented shmdt */
{ 0, 0,
sys_nosys }, /* 212 = unimplemented shmget */
#endif
{ 0, 0,
sys_nosys }, /* 213 = unimplemented */
{ 0, 0,
sys_nosys }, /* 214 = unimplemented */
{ 0, 0,
sys_nosys }, /* 215 = unimplemented */
{ 0, 0,
sys_nosys }, /* 216 = unimplemented */
{ 3, s(struct linux_sys_msync_args),
linux_sys_msync }, /* 217 = msync */
{ 0, 0,
sys_nosys }, /* 218 = unimplemented osf_signal */
{ 0, 0,
sys_nosys }, /* 219 = unimplemented */
{ 0, 0,
sys_nosys }, /* 220 = unimplemented */
{ 0, 0,
sys_nosys }, /* 221 = unimplemented */
{ 0, 0,
sys_nosys }, /* 222 = unimplemented */
{ 0, 0,
sys_nosys }, /* 223 = unimplemented */
{ 0, 0,
sys_nosys }, /* 224 = unimplemented */
{ 0, 0,
sys_nosys }, /* 225 = unimplemented */
{ 0, 0,
sys_nosys }, /* 226 = unimplemented */
{ 0, 0,
sys_nosys }, /* 227 = unimplemented */
{ 0, 0,
sys_nosys }, /* 228 = unimplemented */
{ 0, 0,
sys_nosys }, /* 229 = unimplemented */
{ 0, 0,
sys_nosys }, /* 230 = unimplemented */
{ 0, 0,
sys_nosys }, /* 231 = unimplemented */
{ 0, 0,
sys_nosys }, /* 232 = unimplemented */
{ 1, s(struct linux_sys_getpgid_args),
linux_sys_getpgid }, /* 233 = getpgid */
{ 1, s(struct sys_getsid_args),
sys_getsid }, /* 234 = getsid */
{ 0, 0,
sys_nosys }, /* 235 = unimplemented */
{ 0, 0,
sys_nosys }, /* 236 = unimplemented */
{ 0, 0,
sys_nosys }, /* 237 = unimplemented */
{ 0, 0,
sys_nosys }, /* 238 = unimplemented */
{ 0, 0,
sys_nosys }, /* 239 = unimplemented */
{ 0, 0,
sys_nosys }, /* 240 = unimplemented */
{ 0, 0,
sys_nosys }, /* 241 = unimplemented osf_sysinfo */
{ 0, 0,
sys_nosys }, /* 242 = unimplemented */
{ 0, 0,
sys_nosys }, /* 243 = unimplemented */
{ 0, 0,
sys_nosys }, /* 244 = unimplemented osf_proplist_syscall */
{ 0, 0,
sys_nosys }, /* 245 = unimplemented */
{ 0, 0,
sys_nosys }, /* 246 = unimplemented */
{ 0, 0,
sys_nosys }, /* 247 = unimplemented */
{ 0, 0,
sys_nosys }, /* 248 = unimplemented */
{ 0, 0,
sys_nosys }, /* 249 = unimplemented */
{ 0, 0,
sys_nosys }, /* 250 = unimplemented */
{ 0, 0,
sys_nosys }, /* 251 = unimplemented osf_usleep_thread */
{ 0, 0,
sys_nosys }, /* 252 = unimplemented */
{ 0, 0,
sys_nosys }, /* 253 = unimplemented */
{ 0, 0,
sys_nosys }, /* 254 = unimplemented sysfs */
{ 0, 0,
sys_nosys }, /* 255 = unimplemented */
{ 0, 0,
sys_nosys }, /* 256 = unimplemented osf_getsysinfo */
{ 0, 0,
sys_nosys }, /* 257 = unimplemented osf_setsysinfo */
{ 0, 0,
sys_nosys }, /* 258 = unimplemented */
{ 0, 0,
sys_nosys }, /* 259 = unimplemented */
{ 0, 0,
sys_nosys }, /* 260 = unimplemented */
{ 1, s(struct linux_sys_fdatasync_args),
linux_sys_fdatasync }, /* 261 = fdatasync */
{ 0, 0,
sys_nosys }, /* 262 = unimplemented */
{ 0, 0,
sys_nosys }, /* 263 = unimplemented */
{ 0, 0,
sys_nosys }, /* 264 = unimplemented */
{ 0, 0,
sys_nosys }, /* 265 = unimplemented */
{ 0, 0,
sys_nosys }, /* 266 = unimplemented */
{ 0, 0,
sys_nosys }, /* 267 = unimplemented */
{ 0, 0,
sys_nosys }, /* 268 = unimplemented */
{ 0, 0,
sys_nosys }, /* 269 = unimplemented */
{ 0, 0,
sys_nosys }, /* 270 = unimplemented */
{ 0, 0,
sys_nosys }, /* 271 = unimplemented */
{ 0, 0,
sys_nosys }, /* 272 = unimplemented */
{ 0, 0,
sys_nosys }, /* 273 = unimplemented */
{ 0, 0,
sys_nosys }, /* 274 = unimplemented */
{ 0, 0,
sys_nosys }, /* 275 = unimplemented */
{ 0, 0,
sys_nosys }, /* 276 = unimplemented */
{ 0, 0,
sys_nosys }, /* 277 = unimplemented */
{ 0, 0,
sys_nosys }, /* 278 = unimplemented */
{ 0, 0,
sys_nosys }, /* 279 = unimplemented */
{ 0, 0,
sys_nosys }, /* 280 = unimplemented */
{ 0, 0,
sys_nosys }, /* 281 = unimplemented */
{ 0, 0,
sys_nosys }, /* 282 = unimplemented */
{ 0, 0,
sys_nosys }, /* 283 = unimplemented */
{ 0, 0,
sys_nosys }, /* 284 = unimplemented */
{ 0, 0,
sys_nosys }, /* 285 = unimplemented */
{ 0, 0,
sys_nosys }, /* 286 = unimplemented */
{ 0, 0,
sys_nosys }, /* 287 = unimplemented */
{ 0, 0,
sys_nosys }, /* 288 = unimplemented */
{ 0, 0,
sys_nosys }, /* 289 = unimplemented */
{ 0, 0,
sys_nosys }, /* 290 = unimplemented */
{ 0, 0,
sys_nosys }, /* 291 = unimplemented */
{ 0, 0,
sys_nosys }, /* 292 = unimplemented */
{ 0, 0,
sys_nosys }, /* 293 = unimplemented */
{ 0, 0,
sys_nosys }, /* 294 = unimplemented */
{ 0, 0,
sys_nosys }, /* 295 = unimplemented */
{ 0, 0,
sys_nosys }, /* 296 = unimplemented */
{ 0, 0,
sys_nosys }, /* 297 = unimplemented */
{ 0, 0,
sys_nosys }, /* 298 = unimplemented */
{ 0, 0,
sys_nosys }, /* 299 = unimplemented */
{ 0, 0,
sys_nosys }, /* 300 = unimplemented bdflush */
{ 0, 0,
sys_nosys }, /* 301 = unimplemented sethae */
{ 0, 0,
sys_nosys }, /* 302 = unimplemented mount */
{ 0, 0,
sys_nosys }, /* 303 = unimplemented old_adjtimex */
{ 0, 0,
sys_nosys }, /* 304 = unimplemented swapoff */
{ 3, s(struct linux_sys_getdents_args),
linux_sys_getdents }, /* 305 = getdents */
{ 0, 0,
sys_nosys }, /* 306 = unimplemented create_module */
{ 0, 0,
sys_nosys }, /* 307 = unimplemented init_module */
{ 0, 0,
sys_nosys }, /* 308 = unimplemented delete_module */
{ 0, 0,
sys_nosys }, /* 309 = unimplemented get_kernel_syms */
{ 0, 0,
sys_nosys }, /* 310 = unimplemented syslog */
{ 1, s(struct sys_reboot_args),
sys_reboot }, /* 311 = reboot */
{ 0, 0,
sys_nosys }, /* 312 = unimplemented clone */
#ifdef EXEC_AOUT
{ 1, s(struct linux_sys_uselib_args),
linux_sys_uselib }, /* 313 = uselib */
#else
{ 0, 0,
sys_nosys }, /* 313 = unimplemented sys_uselib */
#endif
{ 2, s(struct sys_mlock_args),
sys_mlock }, /* 314 = mlock */
{ 2, s(struct sys_munlock_args),
sys_munlock }, /* 315 = munlock */
{ 0, 0,
sys_nosys }, /* 316 = unimplemented mlockall */
{ 0, 0,
sys_nosys }, /* 317 = unimplemented munlockall */
{ 0, 0,
sys_nosys }, /* 318 = unimplemented sysinfo */
{ 1, s(struct linux_sys___sysctl_args),
linux_sys___sysctl }, /* 319 = __sysctl */
{ 0, 0,
sys_nosys }, /* 320 = unimplemented idle */
{ 0, 0,
sys_nosys }, /* 321 = unimplemented umount */
{ 1, s(struct compat_12_sys_swapon_args),
compat_12_sys_swapon }, /* 322 = swapon */
{ 1, s(struct linux_sys_times_args),
linux_sys_times }, /* 323 = times */
{ 1, s(struct linux_sys_personality_args),
linux_sys_personality }, /* 324 = personality */
{ 0, 0,
sys_nosys }, /* 325 = unimplemented setfsuid */
{ 0, 0,
sys_nosys }, /* 326 = unimplemented setfsgid */
{ 0, 0,
sys_nosys }, /* 327 = unimplemented ustat */
{ 2, s(struct linux_sys_statfs_args),
linux_sys_statfs }, /* 328 = statfs */
{ 2, s(struct linux_sys_fstatfs_args),
linux_sys_fstatfs }, /* 329 = fstatfs */
{ 0, 0,
sys_nosys }, /* 330 = unimplemented sched_setparam */
{ 0, 0,
sys_nosys }, /* 331 = unimplemented sched_getparam */
{ 0, 0,
sys_nosys }, /* 332 = unimplemented sched_setscheduler */
{ 0, 0,
sys_nosys }, /* 333 = unimplemented sched_getscheduler */
{ 0, 0,
sys_nosys }, /* 334 = unimplemented sched_yield */
{ 0, 0,
sys_nosys }, /* 335 = unimplemented sched_get_priority_max */
{ 0, 0,
sys_nosys }, /* 336 = unimplemented sched_get_priority_min */
{ 0, 0,
sys_nosys }, /* 337 = unimplemented sched_rr_get_interval */
{ 0, 0,
sys_nosys }, /* 338 = unimplemented afs_syscall */
{ 1, s(struct linux_sys_uname_args),
linux_sys_uname }, /* 339 = uname */
{ 2, s(struct sys_nanosleep_args),
sys_nanosleep }, /* 340 = nanosleep */
{ 4, s(struct linux_sys_mremap_args),
linux_sys_mremap }, /* 341 = mremap */
{ 0, 0,
sys_nosys }, /* 342 = unimplemented nfsservctl */
{ 0, 0,
sys_nosys }, /* 343 = unimplemented setresgid */
{ 0, 0,
sys_nosys }, /* 344 = unimplemented getresgid */
{ 0, 0,
sys_nosys }, /* 345 = unimplemented pciconfig_read */
{ 0, 0,
sys_nosys }, /* 346 = unimplemented pciconfig_write */
{ 0, 0,
sys_nosys }, /* 347 = unimplemented query_module */
{ 0, 0,
sys_nosys }, /* 348 = unimplemented prctl */
{ 0, 0,
sys_nosys }, /* 349 = unimplemented pread */
{ 0, 0,
sys_nosys }, /* 350 = unimplemented pwrite */
{ 1, s(struct linux_sys_rt_sigreturn_args),
linux_sys_rt_sigreturn }, /* 351 = rt_sigreturn */
{ 4, s(struct linux_sys_rt_sigaction_args),
linux_sys_rt_sigaction }, /* 352 = rt_sigaction */
{ 4, s(struct linux_sys_rt_sigprocmask_args),
linux_sys_rt_sigprocmask }, /* 353 = rt_sigprocmask */
{ 2, s(struct linux_sys_rt_sigpending_args),
linux_sys_rt_sigpending }, /* 354 = rt_sigpending */
{ 0, 0,
sys_nosys }, /* 355 = unimplemented rt_sigtimedwait */
{ 3, s(struct linux_sys_rt_queueinfo_args),
linux_sys_rt_queueinfo }, /* 356 = rt_queueinfo */
{ 2, s(struct linux_sys_rt_sigsuspend_args),
linux_sys_rt_sigsuspend }, /* 357 = rt_sigsuspend */
{ 5, s(struct linux_sys_select_args),
linux_sys_select }, /* 358 = select */
{ 2, s(struct sys_gettimeofday_args),
sys_gettimeofday }, /* 359 = gettimeofday */
{ 2, s(struct sys_settimeofday_args),
sys_settimeofday }, /* 360 = settimeofday */
{ 2, s(struct sys_getitimer_args),
sys_getitimer }, /* 361 = getitimer */
{ 3, s(struct sys_setitimer_args),
sys_setitimer }, /* 362 = setitimer */
{ 2, s(struct sys_utimes_args),
sys_utimes }, /* 363 = utimes */
{ 2, s(struct sys_getrusage_args),
sys_getrusage }, /* 364 = getrusage */
{ 4, s(struct linux_sys_wait4_args),
linux_sys_wait4 }, /* 365 = wait4 */
{ 0, 0,
sys_nosys }, /* 366 = unimplemented adjtimex */
};

View File

@ -0,0 +1,409 @@
/* $NetBSD: linux_syscall.h,v 1.1 1998/09/30 21:34:32 erh Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
/* syscall: "syscall" ret: "int" args: */
#define LINUX_SYS_syscall 0
/* syscall: "exit" ret: "int" args: "int" */
#define LINUX_SYS_exit 1
/* syscall: "fork" ret: "int" args: */
#define LINUX_SYS_fork 2
/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
#define LINUX_SYS_read 3
/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
#define LINUX_SYS_write 4
/* syscall: "close" ret: "int" args: "int" */
#define LINUX_SYS_close 6
/* syscall: "creat" ret: "int" args: "char *" "int" */
#define LINUX_SYS_creat 8
/* syscall: "link" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_link 9
/* syscall: "unlink" ret: "int" args: "char *" */
#define LINUX_SYS_unlink 10
/* syscall: "chdir" ret: "int" args: "char *" */
#define LINUX_SYS_chdir 12
/* syscall: "fchdir" ret: "int" args: "int" */
#define LINUX_SYS_fchdir 13
/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_mknod 14
/* syscall: "chmod" ret: "int" args: "char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_chown 16
/* syscall: "brk" ret: "int" args: "char *" */
#define LINUX_SYS_brk 17
/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
#define LINUX_SYS_lseek 19
/* syscall: "getpid" ret: "pid_t" args: */
#define LINUX_SYS_getpid 20
/* syscall: "setuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setuid 23
/* syscall: "getuid" ret: "uid_t" args: */
#define LINUX_SYS_getuid 24
/* syscall: "access" ret: "int" args: "char *" "int" */
#define LINUX_SYS_access 33
/* syscall: "sync" ret: "int" args: */
#define LINUX_SYS_sync 36
/* syscall: "kill" ret: "int" args: "int" "int" */
#define LINUX_SYS_kill 37
/* syscall: "setpgid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setpgid 39
/* syscall: "dup" ret: "int" args: "u_int" */
#define LINUX_SYS_dup 41
/* syscall: "pipe" ret: "int" args: */
#define LINUX_SYS_pipe 42
/* syscall: "open" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_open 45
/* syscall: "getgid" ret: "gid_t" args: */
#define LINUX_SYS_getgid 47
/* syscall: "acct" ret: "int" args: "char *" */
#define LINUX_SYS_acct 51
/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
#define LINUX_SYS_sigpending 52
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
#define LINUX_SYS_ioctl 54
/* syscall: "symlink" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_symlink 57
/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
#define LINUX_SYS_readlink 58
/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
#define LINUX_SYS_execve 59
/* syscall: "umask" ret: "int" args: "int" */
#define LINUX_SYS_umask 60
/* syscall: "chroot" ret: "int" args: "char *" */
#define LINUX_SYS_chroot 61
/* syscall: "getpgrp" ret: "int" args: */
#define LINUX_SYS_getpgrp 63
/* syscall: "getpagesize" ret: "int" args: */
#define LINUX_SYS_getpagesize 64
/* syscall: "stat" ret: "int" args: "char *" "struct linux_stat *" */
#define LINUX_SYS_stat 67
/* syscall: "lstat" ret: "int" args: "char *" "struct linux_stat *" */
#define LINUX_SYS_lstat 68
/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "off_t" */
#define LINUX_SYS_mmap 71
/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
#define LINUX_SYS_munmap 73
/* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_mprotect 74
/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_getgroups 79
/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_setgroups 80
/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
#define LINUX_SYS_gethostname 87
/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
#define LINUX_SYS_sethostname 88
/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
#define LINUX_SYS_dup2 90
/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
#define LINUX_SYS_fstat 91
/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
#define LINUX_SYS_fcntl 92
/* syscall: "fsync" ret: "int" args: "int" */
#define LINUX_SYS_fsync 95
/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_setpriority 96
/* syscall: "socket" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_socket 97
/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define LINUX_SYS_connect 98
/* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_accept 99
/* syscall: "getpriority" ret: "int" args: "int" "int" */
#define LINUX_SYS_getpriority 100
/* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
#define LINUX_SYS_send 101
/* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
#define LINUX_SYS_recv 102
/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */
#define LINUX_SYS_sigreturn 103
/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define LINUX_SYS_bind 104
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
#define LINUX_SYS_setsockopt 105
/* syscall: "listen" ret: "int" args: "int" "int" */
#define LINUX_SYS_listen 106
/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_sigsuspend 111
/* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
#define LINUX_SYS_recvmsg 113
/* syscall: "sendmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
#define LINUX_SYS_sendmsg 114
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
#define LINUX_SYS_getsockopt 118
/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
#define LINUX_SYS_readv 120
/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
#define LINUX_SYS_writev 121
/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_fchown 123
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define LINUX_SYS_fchmod 124
/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct sockaddr *" "int *" */
#define LINUX_SYS_recvfrom 125
/* syscall: "setreuid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setreuid 126
/* syscall: "setregid" ret: "int" args: "int" "int" */
#define LINUX_SYS_setregid 127
/* syscall: "rename" ret: "int" args: "char *" "char *" */
#define LINUX_SYS_rename 128
/* syscall: "truncate" ret: "int" args: "char *" "long" */
#define LINUX_SYS_truncate 129
/* syscall: "ftruncate" ret: "int" args: "int" "long" */
#define LINUX_SYS_ftruncate 130
/* syscall: "flock" ret: "int" args: "int" "int" */
#define LINUX_SYS_flock 131
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_setgid 132
/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct sockaddr *" "int" */
#define LINUX_SYS_sendto 133
/* syscall: "shutdown" ret: "int" args: "int" "int" */
#define LINUX_SYS_shutdown 134
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
#define LINUX_SYS_socketpair 135
/* syscall: "mkdir" ret: "int" args: "char *" "int" */
#define LINUX_SYS_mkdir 136
/* syscall: "rmdir" ret: "int" args: "char *" */
#define LINUX_SYS_rmdir 137
/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_getpeername 141
/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
#define LINUX_SYS_getrlimit 144
/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
#define LINUX_SYS_setrlimit 145
/* syscall: "setsid" ret: "int" args: */
#define LINUX_SYS_setsid 147
/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
#define LINUX_SYS_getsockname 150
/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
#define LINUX_SYS_sigaction 156
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
#define LINUX_SYS_msgctl 200
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
#define LINUX_SYS_msgget 201
/* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "int" */
#define LINUX_SYS_msgrcv 202
/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
#define LINUX_SYS_msgsnd 203
/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
#define LINUX_SYS_semctl 204
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
#define LINUX_SYS_semget 205
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "unsigned u_int" */
#define LINUX_SYS_semop 206
/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
#define LINUX_SYS_olduname 207
/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_lchown 208
/* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */
#define LINUX_SYS_shmat 209
/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
#define LINUX_SYS_shmctl 210
/* syscall: "shmdt" ret: "int" args: "void *" */
#define LINUX_SYS_shmdt 211
/* syscall: "shmget" ret: "int" args: "key_t" "int" "int" */
#define LINUX_SYS_shmget 212
/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
#define LINUX_SYS_msync 217
/* syscall: "getpgid" ret: "int" args: "int" */
#define LINUX_SYS_getpgid 233
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
#define LINUX_SYS_getsid 234
/* syscall: "fdatasync" ret: "int" args: "int" */
#define LINUX_SYS_fdatasync 261
/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
#define LINUX_SYS_getdents 305
/* syscall: "reboot" ret: "int" args: "int" */
#define LINUX_SYS_reboot 311
/* syscall: "uselib" ret: "int" args: "char *" */
#define LINUX_SYS_uselib 313
/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
#define LINUX_SYS_mlock 314
/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
#define LINUX_SYS_munlock 315
/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
#define LINUX_SYS___sysctl 319
/* syscall: "swapon" ret: "int" args: "char *" */
#define LINUX_SYS_swapon 322
/* syscall: "times" ret: "int" args: "struct times *" */
#define LINUX_SYS_times 323
/* syscall: "personality" ret: "int" args: "int" */
#define LINUX_SYS_personality 324
/* syscall: "statfs" ret: "int" args: "char *" "struct linux_statfs *" */
#define LINUX_SYS_statfs 328
/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
#define LINUX_SYS_fstatfs 329
/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
#define LINUX_SYS_uname 339
/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
#define LINUX_SYS_nanosleep 340
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 341
/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
#define LINUX_SYS_rt_sigreturn 351
/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
#define LINUX_SYS_rt_sigaction 352
/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigprocmask 353
/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigpending 354
/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "siginfo_t *" */
#define LINUX_SYS_rt_queueinfo 356
/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigsuspend 357
/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
#define LINUX_SYS_select 358
/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_gettimeofday 359
/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_settimeofday 360
/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
#define LINUX_SYS_getitimer 361
/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
#define LINUX_SYS_setitimer 362
/* syscall: "utimes" ret: "int" args: "char *" "struct timecal *" */
#define LINUX_SYS_utimes 363
/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
#define LINUX_SYS_getrusage 364
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
#define LINUX_SYS_wait4 365
#define LINUX_SYS_MAXSYSCALL 367

View File

@ -0,0 +1,481 @@
/* $NetBSD: linux_syscallargs.h,v 1.1 1998/09/30 21:34:33 erh Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
struct linux_sys_creat_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_unlink_args {
syscallarg(char *) path;
};
struct linux_sys_chdir_args {
syscallarg(char *) path;
};
struct linux_sys_mknod_args {
syscallarg(char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
};
struct linux_sys_chmod_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_chown_args {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_brk_args {
syscallarg(char *) nsize;
};
struct linux_sys_access_args {
syscallarg(char *) path;
syscallarg(int) flags;
};
struct linux_sys_kill_args {
syscallarg(int) pid;
syscallarg(int) signum;
};
struct linux_sys_open_args {
syscallarg(char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
};
struct linux_sys_sigpending_args {
syscallarg(linux_old_sigset_t *) set;
};
struct linux_sys_ioctl_args {
syscallarg(int) fd;
syscallarg(u_long) com;
syscallarg(caddr_t) data;
};
struct linux_sys_symlink_args {
syscallarg(char *) path;
syscallarg(char *) to;
};
struct linux_sys_readlink_args {
syscallarg(char *) name;
syscallarg(char *) buf;
syscallarg(int) count;
};
struct linux_sys_execve_args {
syscallarg(char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
};
struct linux_sys_stat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_lstat_args {
syscallarg(char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_mmap_args {
syscallarg(unsigned long) addr;
syscallarg(size_t) len;
syscallarg(int) prot;
syscallarg(int) flags;
syscallarg(int) fd;
syscallarg(off_t) offset;
};
struct linux_sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_fcntl_args {
syscallarg(int) fd;
syscallarg(int) cmd;
syscallarg(void *) arg;
};
struct linux_sys_socket_args {
syscallarg(int) domain;
syscallarg(int) type;
syscallarg(int) protocol;
};
struct linux_sys_sigreturn_args {
syscallarg(struct linux_sigframe *) sfp;
};
struct linux_sys_setsockopt_args {
syscallarg(int) s;
syscallarg(int) level;
syscallarg(int) optname;
syscallarg(void *) optval;
syscallarg(int) optlen;
};
struct linux_sys_sigsuspend_args {
syscallarg(caddr_t) restart;
syscallarg(int) oldmask;
syscallarg(int) mask;
};
struct linux_sys_getsockopt_args {
syscallarg(int) s;
syscallarg(int) level;
syscallarg(int) optname;
syscallarg(void *) optval;
syscallarg(int *) optlen;
};
struct linux_sys_fchown_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_recvfrom_args {
syscallarg(int) s;
syscallarg(void *) buf;
syscallarg(int) len;
syscallarg(int) flags;
syscallarg(struct sockaddr *) from;
syscallarg(int *) fromlen;
};
struct linux_sys_setreuid_args {
syscallarg(int) ruid;
syscallarg(int) euid;
};
struct linux_sys_setregid_args {
syscallarg(int) rgid;
syscallarg(int) egid;
};
struct linux_sys_rename_args {
syscallarg(char *) from;
syscallarg(char *) to;
};
struct linux_sys_truncate_args {
syscallarg(char *) path;
syscallarg(long) length;
};
struct linux_sys_sendto_args {
syscallarg(int) s;
syscallarg(void *) msg;
syscallarg(int) len;
syscallarg(int) flags;
syscallarg(struct sockaddr *) to;
syscallarg(int) tolen;
};
struct linux_sys_socketpair_args {
syscallarg(int) domain;
syscallarg(int) type;
syscallarg(int) protocol;
syscallarg(int *) rsv;
};
struct linux_sys_mkdir_args {
syscallarg(char *) path;
syscallarg(int) mode;
};
struct linux_sys_rmdir_args {
syscallarg(char *) path;
};
struct linux_sys_sigaction_args {
syscallarg(int) signum;
syscallarg(const struct linux_old_sigaction *) nsa;
syscallarg(struct linux_old_sigaction *) osa;
};
struct linux_sys_olduname_args {
syscallarg(struct linux_old_utsname *) up;
};
struct linux_sys_lchown_args {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
struct linux_sys_msync_args {
syscallarg(caddr_t) addr;
syscallarg(int) len;
syscallarg(int) fl;
};
struct linux_sys_getpgid_args {
syscallarg(int) pid;
};
struct linux_sys_fdatasync_args {
syscallarg(int) fd;
};
struct linux_sys_getdents_args {
syscallarg(int) fd;
syscallarg(struct linux_dirent *) dent;
syscallarg(unsigned int) count;
};
struct linux_sys_uselib_args {
syscallarg(char *) path;
};
struct linux_sys___sysctl_args {
syscallarg(struct linux___sysctl *) lsp;
};
struct linux_sys_times_args {
syscallarg(struct times *) tms;
};
struct linux_sys_personality_args {
syscallarg(int) per;
};
struct linux_sys_statfs_args {
syscallarg(char *) path;
syscallarg(struct linux_statfs *) sp;
};
struct linux_sys_fstatfs_args {
syscallarg(int) fd;
syscallarg(struct linux_statfs *) sp;
};
struct linux_sys_uname_args {
syscallarg(struct linux_utsname *) up;
};
struct linux_sys_mremap_args {
syscallarg(void *) old_address;
syscallarg(size_t) old_size;
syscallarg(size_t) new_size;
syscallarg(u_long) flags;
};
struct linux_sys_rt_sigreturn_args {
syscallarg(struct linux_rt_sigframe *) sfp;
};
struct linux_sys_rt_sigaction_args {
syscallarg(int) signum;
syscallarg(const struct linux_sigaction *) nsa;
syscallarg(struct linux_sigaction *) osa;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_sigprocmask_args {
syscallarg(int) how;
syscallarg(const linux_sigset_t *) set;
syscallarg(linux_sigset_t *) oset;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_sigpending_args {
syscallarg(linux_sigset_t *) set;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_rt_queueinfo_args {
syscallarg(int) pid;
syscallarg(int) signum;
syscallarg(siginfo_t *) uinfo;
};
struct linux_sys_rt_sigsuspend_args {
syscallarg(linux_sigset_t *) unewset;
syscallarg(size_t) sigsetsize;
};
struct linux_sys_select_args {
syscallarg(int) nfds;
syscallarg(fd_set *) readfds;
syscallarg(fd_set *) writefds;
syscallarg(fd_set *) exceptfds;
syscallarg(struct timeval *) timeout;
};
struct linux_sys_wait4_args {
syscallarg(int) pid;
syscallarg(int *) status;
syscallarg(int) options;
syscallarg(struct rusage *) rusage;
};
/*
* System call prototypes.
*/
int sys_nosys __P((struct proc *, void *, register_t *));
int sys_exit __P((struct proc *, void *, register_t *));
int sys_fork __P((struct proc *, void *, register_t *));
int sys_read __P((struct proc *, void *, register_t *));
int sys_write __P((struct proc *, void *, register_t *));
int sys_close __P((struct proc *, void *, register_t *));
int linux_sys_creat __P((struct proc *, void *, register_t *));
int sys_link __P((struct proc *, void *, register_t *));
int linux_sys_unlink __P((struct proc *, void *, register_t *));
int linux_sys_chdir __P((struct proc *, void *, register_t *));
int sys_fchdir __P((struct proc *, void *, register_t *));
int linux_sys_mknod __P((struct proc *, void *, register_t *));
int linux_sys_chmod __P((struct proc *, void *, register_t *));
int linux_sys_chown __P((struct proc *, void *, register_t *));
int linux_sys_brk __P((struct proc *, void *, register_t *));
int compat_43_sys_lseek __P((struct proc *, void *, register_t *));
int sys_getpid __P((struct proc *, void *, register_t *));
int sys_setuid __P((struct proc *, void *, register_t *));
int sys_getuid __P((struct proc *, void *, register_t *));
int linux_sys_access __P((struct proc *, void *, register_t *));
int sys_sync __P((struct proc *, void *, register_t *));
int linux_sys_kill __P((struct proc *, void *, register_t *));
int sys_setpgid __P((struct proc *, void *, register_t *));
int sys_dup __P((struct proc *, void *, register_t *));
int linux_sys_pipe __P((struct proc *, void *, register_t *));
int linux_sys_open __P((struct proc *, void *, register_t *));
int sys_getgid __P((struct proc *, void *, register_t *));
int sys_acct __P((struct proc *, void *, register_t *));
int linux_sys_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_ioctl __P((struct proc *, void *, register_t *));
int linux_sys_symlink __P((struct proc *, void *, register_t *));
int linux_sys_readlink __P((struct proc *, void *, register_t *));
int linux_sys_execve __P((struct proc *, void *, register_t *));
int sys_umask __P((struct proc *, void *, register_t *));
int sys_chroot __P((struct proc *, void *, register_t *));
int sys_getpgrp __P((struct proc *, void *, register_t *));
int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *));
int linux_sys_stat __P((struct proc *, void *, register_t *));
int linux_sys_lstat __P((struct proc *, void *, register_t *));
int linux_sys_mmap __P((struct proc *, void *, register_t *));
int sys_munmap __P((struct proc *, void *, register_t *));
int sys_mprotect __P((struct proc *, void *, register_t *));
int sys_getgroups __P((struct proc *, void *, register_t *));
int sys_setgroups __P((struct proc *, void *, register_t *));
int compat_43_sys_gethostname __P((struct proc *, void *, register_t *));
int compat_43_sys_sethostname __P((struct proc *, void *, register_t *));
int sys_dup2 __P((struct proc *, void *, register_t *));
int linux_sys_fstat __P((struct proc *, void *, register_t *));
int linux_sys_fcntl __P((struct proc *, void *, register_t *));
int sys_fsync __P((struct proc *, void *, register_t *));
int sys_setpriority __P((struct proc *, void *, register_t *));
int linux_sys_socket __P((struct proc *, void *, register_t *));
int sys_connect __P((struct proc *, void *, register_t *));
int compat_43_sys_accept __P((struct proc *, void *, register_t *));
int sys_getpriority __P((struct proc *, void *, register_t *));
int compat_43_sys_send __P((struct proc *, void *, register_t *));
int compat_43_sys_recv __P((struct proc *, void *, register_t *));
int linux_sys_sigreturn __P((struct proc *, void *, register_t *));
int sys_bind __P((struct proc *, void *, register_t *));
int linux_sys_setsockopt __P((struct proc *, void *, register_t *));
int sys_listen __P((struct proc *, void *, register_t *));
int linux_sys_sigsuspend __P((struct proc *, void *, register_t *));
int sys_recvmsg __P((struct proc *, void *, register_t *));
int sys_sendmsg __P((struct proc *, void *, register_t *));
int linux_sys_getsockopt __P((struct proc *, void *, register_t *));
int sys_readv __P((struct proc *, void *, register_t *));
int sys_writev __P((struct proc *, void *, register_t *));
int linux_sys_fchown __P((struct proc *, void *, register_t *));
int sys_fchmod __P((struct proc *, void *, register_t *));
int linux_sys_recvfrom __P((struct proc *, void *, register_t *));
int linux_sys_setreuid __P((struct proc *, void *, register_t *));
int linux_sys_setregid __P((struct proc *, void *, register_t *));
int linux_sys_rename __P((struct proc *, void *, register_t *));
int linux_sys_truncate __P((struct proc *, void *, register_t *));
int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *));
int sys_flock __P((struct proc *, void *, register_t *));
int sys_setgid __P((struct proc *, void *, register_t *));
int linux_sys_sendto __P((struct proc *, void *, register_t *));
int sys_shutdown __P((struct proc *, void *, register_t *));
int linux_sys_socketpair __P((struct proc *, void *, register_t *));
int linux_sys_mkdir __P((struct proc *, void *, register_t *));
int linux_sys_rmdir __P((struct proc *, void *, register_t *));
int compat_43_sys_getpeername __P((struct proc *, void *, register_t *));
int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *));
int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *));
int sys_setsid __P((struct proc *, void *, register_t *));
int compat_43_sys_getsockname __P((struct proc *, void *, register_t *));
int linux_sys_sigaction __P((struct proc *, void *, register_t *));
#ifdef SYSVMSG
int linux_sys_msgctl __P((struct proc *, void *, register_t *));
int sys_msgget __P((struct proc *, void *, register_t *));
int sys_msgrcv __P((struct proc *, void *, register_t *));
int sys_msgsnd __P((struct proc *, void *, register_t *));
#else
#endif
#ifdef SYSVSEM
int linux_sys_semctl __P((struct proc *, void *, register_t *));
int sys_semget __P((struct proc *, void *, register_t *));
int sys_semop __P((struct proc *, void *, register_t *));
#else
#endif
int linux_sys_olduname __P((struct proc *, void *, register_t *));
int linux_sys_lchown __P((struct proc *, void *, register_t *));
#ifdef SYSVSHM
int linux_sys_shmat __P((struct proc *, void *, register_t *));
int linux_sys_shmctl __P((struct proc *, void *, register_t *));
int sys_shmdt __P((struct proc *, void *, register_t *));
int sys_shmget __P((struct proc *, void *, register_t *));
#else
#endif
int linux_sys_msync __P((struct proc *, void *, register_t *));
int linux_sys_getpgid __P((struct proc *, void *, register_t *));
int sys_getsid __P((struct proc *, void *, register_t *));
int linux_sys_fdatasync __P((struct proc *, void *, register_t *));
int linux_sys_getdents __P((struct proc *, void *, register_t *));
int sys_reboot __P((struct proc *, void *, register_t *));
#ifdef EXEC_AOUT
int linux_sys_uselib __P((struct proc *, void *, register_t *));
#else
#endif
int sys_mlock __P((struct proc *, void *, register_t *));
int sys_munlock __P((struct proc *, void *, register_t *));
int linux_sys___sysctl __P((struct proc *, void *, register_t *));
int compat_12_sys_swapon __P((struct proc *, void *, register_t *));
int linux_sys_times __P((struct proc *, void *, register_t *));
int linux_sys_personality __P((struct proc *, void *, register_t *));
int linux_sys_statfs __P((struct proc *, void *, register_t *));
int linux_sys_fstatfs __P((struct proc *, void *, register_t *));
int linux_sys_uname __P((struct proc *, void *, register_t *));
int sys_nanosleep __P((struct proc *, void *, register_t *));
int linux_sys_mremap __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigreturn __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_rt_queueinfo __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
int linux_sys_select __P((struct proc *, void *, register_t *));
int sys_gettimeofday __P((struct proc *, void *, register_t *));
int sys_settimeofday __P((struct proc *, void *, register_t *));
int sys_getitimer __P((struct proc *, void *, register_t *));
int sys_setitimer __P((struct proc *, void *, register_t *));
int sys_utimes __P((struct proc *, void *, register_t *));
int sys_getrusage __P((struct proc *, void *, register_t *));
int linux_sys_wait4 __P((struct proc *, void *, register_t *));

View File

@ -0,0 +1,418 @@
/* $NetBSD: linux_syscalls.c,v 1.1 1998/09/30 21:34:33 erh Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/linux/linux_types.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_siginfo.h>
#include <compat/linux/alpha/linux_syscallargs.h>
#include <compat/linux/linux_ipc.h>
#include <compat/linux/linux_msg.h>
#include <compat/linux/linux_sem.h>
#include <compat/linux/linux_shm.h>
#endif /* _KERNEL && ! _LKM */
char *linux_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"fork", /* 2 = fork */
"read", /* 3 = read */
"write", /* 4 = write */
"#5 (unimplemented)", /* 5 = unimplemented */
"close", /* 6 = close */
"#7 (unimplemented osf_wait4)", /* 7 = unimplemented osf_wait4 */
"creat", /* 8 = creat */
"link", /* 9 = link */
"unlink", /* 10 = unlink */
"#11 (unimplemented)", /* 11 = unimplemented */
"chdir", /* 12 = chdir */
"fchdir", /* 13 = fchdir */
"mknod", /* 14 = mknod */
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
"brk", /* 17 = brk */
"#18 (unimplemented)", /* 18 = unimplemented */
"lseek", /* 19 = lseek */
"getpid", /* 20 = getpid */
"#21 (unimplemented osf_mount)", /* 21 = unimplemented osf_mount */
"#22 (unimplemented osf_umount)", /* 22 = unimplemented osf_umount */
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
"#25 (unimplemented)", /* 25 = unimplemented */
"#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */
"#27 (unimplemented)", /* 27 = unimplemented */
"#28 (unimplemented)", /* 28 = unimplemented */
"#29 (unimplemented)", /* 29 = unimplemented */
"#30 (unimplemented)", /* 30 = unimplemented */
"#31 (unimplemented)", /* 31 = unimplemented */
"#32 (unimplemented)", /* 32 = unimplemented */
"access", /* 33 = access */
"#34 (unimplemented)", /* 34 = unimplemented */
"#35 (unimplemented)", /* 35 = unimplemented */
"sync", /* 36 = sync */
"kill", /* 37 = kill */
"#38 (unimplemented)", /* 38 = unimplemented */
"setpgid", /* 39 = setpgid */
"#40 (unimplemented)", /* 40 = unimplemented */
"dup", /* 41 = dup */
"pipe", /* 42 = pipe */
"#43 (unimplemented osf_set_program_attributes)", /* 43 = unimplemented osf_set_program_attributes */
"#44 (unimplemented)", /* 44 = unimplemented */
"open", /* 45 = open */
"#46 (unimplemented)", /* 46 = unimplemented */
"getgid", /* 47 = getgid */
"#48 (unimplemented osf_sigprocmask)", /* 48 = unimplemented osf_sigprocmask */
"#49 (unimplemented)", /* 49 = unimplemented */
"#50 (unimplemented)", /* 50 = unimplemented */
"acct", /* 51 = acct */
"sigpending", /* 52 = sigpending */
"#53 (unimplemented)", /* 53 = unimplemented */
"ioctl", /* 54 = ioctl */
"#55 (unimplemented)", /* 55 = unimplemented */
"#56 (unimplemented)", /* 56 = unimplemented */
"symlink", /* 57 = symlink */
"readlink", /* 58 = readlink */
"execve", /* 59 = execve */
"umask", /* 60 = umask */
"chroot", /* 61 = chroot */
"#62 (unimplemented)", /* 62 = unimplemented */
"getpgrp", /* 63 = getpgrp */
"getpagesize", /* 64 = getpagesize */
"#65 (unimplemented)", /* 65 = unimplemented */
"#66 (unimplemented osf_vfork)", /* 66 = unimplemented osf_vfork */
"stat", /* 67 = stat */
"lstat", /* 68 = lstat */
"#69 (unimplemented)", /* 69 = unimplemented */
"#70 (unimplemented)", /* 70 = unimplemented */
"mmap", /* 71 = mmap */
"#72 (unimplemented)", /* 72 = unimplemented */
"munmap", /* 73 = munmap */
"mprotect", /* 74 = mprotect */
"#75 (unimplemented madvise)", /* 75 = unimplemented madvise */
"#76 (unimplemented vhangup)", /* 76 = unimplemented vhangup */
"#77 (unimplemented)", /* 77 = unimplemented */
"#78 (unimplemented)", /* 78 = unimplemented */
"getgroups", /* 79 = getgroups */
"setgroups", /* 80 = setgroups */
"#81 (unimplemented)", /* 81 = unimplemented */
"#82 (unimplemented setpgrp)", /* 82 = unimplemented setpgrp */
"#83 (unimplemented osf_setitimer)", /* 83 = unimplemented osf_setitimer */
"#84 (unimplemented)", /* 84 = unimplemented */
"#85 (unimplemented)", /* 85 = unimplemented */
"#86 (unimplemented osf_getitimer)", /* 86 = unimplemented osf_getitimer */
"gethostname", /* 87 = gethostname */
"sethostname", /* 88 = sethostname */
"#89 (unimplemented getdtablesize)", /* 89 = unimplemented getdtablesize */
"dup2", /* 90 = dup2 */
"fstat", /* 91 = fstat */
"fcntl", /* 92 = fcntl */
"#93 (unimplemented osf_select)", /* 93 = unimplemented osf_select */
"#94 (unimplemented poll)", /* 94 = unimplemented poll */
"fsync", /* 95 = fsync */
"setpriority", /* 96 = setpriority */
"socket", /* 97 = socket */
"connect", /* 98 = connect */
"accept", /* 99 = accept */
"getpriority", /* 100 = getpriority */
"send", /* 101 = send */
"recv", /* 102 = recv */
"sigreturn", /* 103 = sigreturn */
"bind", /* 104 = bind */
"setsockopt", /* 105 = setsockopt */
"listen", /* 106 = listen */
"#107 (unimplemented)", /* 107 = unimplemented */
"#108 (unimplemented)", /* 108 = unimplemented */
"#109 (unimplemented)", /* 109 = unimplemented */
"#110 (unimplemented)", /* 110 = unimplemented */
"sigsuspend", /* 111 = sigsuspend */
"#112 (unimplemented)", /* 112 = unimplemented */
"recvmsg", /* 113 = recvmsg */
"sendmsg", /* 114 = sendmsg */
"#115 (unimplemented)", /* 115 = unimplemented */
"#116 (unimplemented osf_gettimeofday)", /* 116 = unimplemented osf_gettimeofday */
"#117 (unimplemented osf_getrusage)", /* 117 = unimplemented osf_getrusage */
"getsockopt", /* 118 = getsockopt */
"#119 (unimplemented)", /* 119 = unimplemented */
"readv", /* 120 = readv */
"writev", /* 121 = writev */
"#122 (unimplemented osf_settimeofday)", /* 122 = unimplemented osf_settimeofday */
"fchown", /* 123 = fchown */
"fchmod", /* 124 = fchmod */
"recvfrom", /* 125 = recvfrom */
"setreuid", /* 126 = setreuid */
"setregid", /* 127 = setregid */
"rename", /* 128 = rename */
"truncate", /* 129 = truncate */
"ftruncate", /* 130 = ftruncate */
"flock", /* 131 = flock */
"setgid", /* 132 = setgid */
"sendto", /* 133 = sendto */
"shutdown", /* 134 = shutdown */
"socketpair", /* 135 = socketpair */
"mkdir", /* 136 = mkdir */
"rmdir", /* 137 = rmdir */
"#138 (unimplemented osf_utimes)", /* 138 = unimplemented osf_utimes */
"#139 (unimplemented)", /* 139 = unimplemented */
"#140 (unimplemented)", /* 140 = unimplemented */
"getpeername", /* 141 = getpeername */
"#142 (unimplemented)", /* 142 = unimplemented */
"#143 (unimplemented)", /* 143 = unimplemented */
"getrlimit", /* 144 = getrlimit */
"setrlimit", /* 145 = setrlimit */
"#146 (unimplemented)", /* 146 = unimplemented */
"setsid", /* 147 = setsid */
"#148 (unimplemented quotactl)", /* 148 = unimplemented quotactl */
"#149 (unimplemented)", /* 149 = unimplemented */
"getsockname", /* 150 = getsockname */
"#151 (unimplemented)", /* 151 = unimplemented */
"#152 (unimplemented)", /* 152 = unimplemented */
"#153 (unimplemented)", /* 153 = unimplemented */
"#154 (unimplemented)", /* 154 = unimplemented */
"#155 (unimplemented)", /* 155 = unimplemented */
"sigaction", /* 156 = sigaction */
"#157 (unimplemented)", /* 157 = unimplemented */
"#158 (unimplemented)", /* 158 = unimplemented */
"#159 (unimplemented osf_getdirentries)", /* 159 = unimplemented osf_getdirentries */
"#160 (unimplemented osf_statfs)", /* 160 = unimplemented osf_statfs */
"#161 (unimplemented osf_fstatfs)", /* 161 = unimplemented osf_fstatfs */
"#162 (unimplemented)", /* 162 = unimplemented */
"#163 (unimplemented)", /* 163 = unimplemented */
"#164 (unimplemented)", /* 164 = unimplemented */
"#165 (unimplemented osf_getdomainname)", /* 165 = unimplemented osf_getdomainname */
"#166 (unimplemented setdomainname)", /* 166 = unimplemented setdomainname */
"#167 (unimplemented)", /* 167 = unimplemented */
"#168 (unimplemented)", /* 168 = unimplemented */
"#169 (unimplemented)", /* 169 = unimplemented */
"#170 (unimplemented)", /* 170 = unimplemented */
"#171 (unimplemented)", /* 171 = unimplemented */
"#172 (unimplemented)", /* 172 = unimplemented */
"#173 (unimplemented)", /* 173 = unimplemented */
"#174 (unimplemented)", /* 174 = unimplemented */
"#175 (unimplemented)", /* 175 = unimplemented */
"#176 (unimplemented)", /* 176 = unimplemented */
"#177 (unimplemented)", /* 177 = unimplemented */
"#178 (unimplemented)", /* 178 = unimplemented */
"#179 (unimplemented)", /* 179 = unimplemented */
"#180 (unimplemented)", /* 180 = unimplemented */
"#181 (unimplemented)", /* 181 = unimplemented */
"#182 (unimplemented)", /* 182 = unimplemented */
"#183 (unimplemented)", /* 183 = unimplemented */
"#184 (unimplemented)", /* 184 = unimplemented */
"#185 (unimplemented)", /* 185 = unimplemented */
"#186 (unimplemented)", /* 186 = unimplemented */
"#187 (unimplemented)", /* 187 = unimplemented */
"#188 (unimplemented)", /* 188 = unimplemented */
"#189 (unimplemented)", /* 189 = unimplemented */
"#190 (unimplemented)", /* 190 = unimplemented */
"#191 (unimplemented)", /* 191 = unimplemented */
"#192 (unimplemented)", /* 192 = unimplemented */
"#193 (unimplemented)", /* 193 = unimplemented */
"#194 (unimplemented)", /* 194 = unimplemented */
"#195 (unimplemented)", /* 195 = unimplemented */
"#196 (unimplemented)", /* 196 = unimplemented */
"#197 (unimplemented)", /* 197 = unimplemented */
"#198 (unimplemented)", /* 198 = unimplemented */
"#199 (unimplemented osf_swapon)", /* 199 = unimplemented osf_swapon */
#ifdef SYSVMSG
"msgctl", /* 200 = msgctl */
"msgget", /* 201 = msgget */
"msgrcv", /* 202 = msgrcv */
"msgsnd", /* 203 = msgsnd */
#else
"#200 (unimplemented msgctl)", /* 200 = unimplemented msgctl */
"#201 (unimplemented msgget)", /* 201 = unimplemented msgget */
"#202 (unimplemented msgrcv)", /* 202 = unimplemented msgrcv */
"#203 (unimplemented msgsnd)", /* 203 = unimplemented msgsnd */
#endif
#ifdef SYSVSEM
"semctl", /* 204 = semctl */
"semget", /* 205 = semget */
"semop", /* 206 = semop */
#else
"#204 (unimplemented semctl)", /* 204 = unimplemented semctl */
"#205 (unimplemented semget)", /* 205 = unimplemented semget */
"#206 (unimplemented semop)", /* 206 = unimplemented semop */
#endif
"olduname", /* 207 = olduname */
"lchown", /* 208 = lchown */
#ifdef SYSVSHM
"shmat", /* 209 = shmat */
"shmctl", /* 210 = shmctl */
"shmdt", /* 211 = shmdt */
"shmget", /* 212 = shmget */
#else
"#209 (unimplemented shmat)", /* 209 = unimplemented shmat */
"#210 (unimplemented shmctl)", /* 210 = unimplemented shmctl */
"#211 (unimplemented shmdt)", /* 211 = unimplemented shmdt */
"#212 (unimplemented shmget)", /* 212 = unimplemented shmget */
#endif
"#213 (unimplemented)", /* 213 = unimplemented */
"#214 (unimplemented)", /* 214 = unimplemented */
"#215 (unimplemented)", /* 215 = unimplemented */
"#216 (unimplemented)", /* 216 = unimplemented */
"msync", /* 217 = msync */
"#218 (unimplemented osf_signal)", /* 218 = unimplemented osf_signal */
"#219 (unimplemented)", /* 219 = unimplemented */
"#220 (unimplemented)", /* 220 = unimplemented */
"#221 (unimplemented)", /* 221 = unimplemented */
"#222 (unimplemented)", /* 222 = unimplemented */
"#223 (unimplemented)", /* 223 = unimplemented */
"#224 (unimplemented)", /* 224 = unimplemented */
"#225 (unimplemented)", /* 225 = unimplemented */
"#226 (unimplemented)", /* 226 = unimplemented */
"#227 (unimplemented)", /* 227 = unimplemented */
"#228 (unimplemented)", /* 228 = unimplemented */
"#229 (unimplemented)", /* 229 = unimplemented */
"#230 (unimplemented)", /* 230 = unimplemented */
"#231 (unimplemented)", /* 231 = unimplemented */
"#232 (unimplemented)", /* 232 = unimplemented */
"getpgid", /* 233 = getpgid */
"getsid", /* 234 = getsid */
"#235 (unimplemented)", /* 235 = unimplemented */
"#236 (unimplemented)", /* 236 = unimplemented */
"#237 (unimplemented)", /* 237 = unimplemented */
"#238 (unimplemented)", /* 238 = unimplemented */
"#239 (unimplemented)", /* 239 = unimplemented */
"#240 (unimplemented)", /* 240 = unimplemented */
"#241 (unimplemented osf_sysinfo)", /* 241 = unimplemented osf_sysinfo */
"#242 (unimplemented)", /* 242 = unimplemented */
"#243 (unimplemented)", /* 243 = unimplemented */
"#244 (unimplemented osf_proplist_syscall)", /* 244 = unimplemented osf_proplist_syscall */
"#245 (unimplemented)", /* 245 = unimplemented */
"#246 (unimplemented)", /* 246 = unimplemented */
"#247 (unimplemented)", /* 247 = unimplemented */
"#248 (unimplemented)", /* 248 = unimplemented */
"#249 (unimplemented)", /* 249 = unimplemented */
"#250 (unimplemented)", /* 250 = unimplemented */
"#251 (unimplemented osf_usleep_thread)", /* 251 = unimplemented osf_usleep_thread */
"#252 (unimplemented)", /* 252 = unimplemented */
"#253 (unimplemented)", /* 253 = unimplemented */
"#254 (unimplemented sysfs)", /* 254 = unimplemented sysfs */
"#255 (unimplemented)", /* 255 = unimplemented */
"#256 (unimplemented osf_getsysinfo)", /* 256 = unimplemented osf_getsysinfo */
"#257 (unimplemented osf_setsysinfo)", /* 257 = unimplemented osf_setsysinfo */
"#258 (unimplemented)", /* 258 = unimplemented */
"#259 (unimplemented)", /* 259 = unimplemented */
"#260 (unimplemented)", /* 260 = unimplemented */
"fdatasync", /* 261 = fdatasync */
"#262 (unimplemented)", /* 262 = unimplemented */
"#263 (unimplemented)", /* 263 = unimplemented */
"#264 (unimplemented)", /* 264 = unimplemented */
"#265 (unimplemented)", /* 265 = unimplemented */
"#266 (unimplemented)", /* 266 = unimplemented */
"#267 (unimplemented)", /* 267 = unimplemented */
"#268 (unimplemented)", /* 268 = unimplemented */
"#269 (unimplemented)", /* 269 = unimplemented */
"#270 (unimplemented)", /* 270 = unimplemented */
"#271 (unimplemented)", /* 271 = unimplemented */
"#272 (unimplemented)", /* 272 = unimplemented */
"#273 (unimplemented)", /* 273 = unimplemented */
"#274 (unimplemented)", /* 274 = unimplemented */
"#275 (unimplemented)", /* 275 = unimplemented */
"#276 (unimplemented)", /* 276 = unimplemented */
"#277 (unimplemented)", /* 277 = unimplemented */
"#278 (unimplemented)", /* 278 = unimplemented */
"#279 (unimplemented)", /* 279 = unimplemented */
"#280 (unimplemented)", /* 280 = unimplemented */
"#281 (unimplemented)", /* 281 = unimplemented */
"#282 (unimplemented)", /* 282 = unimplemented */
"#283 (unimplemented)", /* 283 = unimplemented */
"#284 (unimplemented)", /* 284 = unimplemented */
"#285 (unimplemented)", /* 285 = unimplemented */
"#286 (unimplemented)", /* 286 = unimplemented */
"#287 (unimplemented)", /* 287 = unimplemented */
"#288 (unimplemented)", /* 288 = unimplemented */
"#289 (unimplemented)", /* 289 = unimplemented */
"#290 (unimplemented)", /* 290 = unimplemented */
"#291 (unimplemented)", /* 291 = unimplemented */
"#292 (unimplemented)", /* 292 = unimplemented */
"#293 (unimplemented)", /* 293 = unimplemented */
"#294 (unimplemented)", /* 294 = unimplemented */
"#295 (unimplemented)", /* 295 = unimplemented */
"#296 (unimplemented)", /* 296 = unimplemented */
"#297 (unimplemented)", /* 297 = unimplemented */
"#298 (unimplemented)", /* 298 = unimplemented */
"#299 (unimplemented)", /* 299 = unimplemented */
"#300 (unimplemented bdflush)", /* 300 = unimplemented bdflush */
"#301 (unimplemented sethae)", /* 301 = unimplemented sethae */
"#302 (unimplemented mount)", /* 302 = unimplemented mount */
"#303 (unimplemented old_adjtimex)", /* 303 = unimplemented old_adjtimex */
"#304 (unimplemented swapoff)", /* 304 = unimplemented swapoff */
"getdents", /* 305 = getdents */
"#306 (unimplemented create_module)", /* 306 = unimplemented create_module */
"#307 (unimplemented init_module)", /* 307 = unimplemented init_module */
"#308 (unimplemented delete_module)", /* 308 = unimplemented delete_module */
"#309 (unimplemented get_kernel_syms)", /* 309 = unimplemented get_kernel_syms */
"#310 (unimplemented syslog)", /* 310 = unimplemented syslog */
"reboot", /* 311 = reboot */
"#312 (unimplemented clone)", /* 312 = unimplemented clone */
#ifdef EXEC_AOUT
"uselib", /* 313 = uselib */
#else
"#313 (unimplemented sys_uselib)", /* 313 = unimplemented sys_uselib */
#endif
"mlock", /* 314 = mlock */
"munlock", /* 315 = munlock */
"#316 (unimplemented mlockall)", /* 316 = unimplemented mlockall */
"#317 (unimplemented munlockall)", /* 317 = unimplemented munlockall */
"#318 (unimplemented sysinfo)", /* 318 = unimplemented sysinfo */
"__sysctl", /* 319 = __sysctl */
"#320 (unimplemented idle)", /* 320 = unimplemented idle */
"#321 (unimplemented umount)", /* 321 = unimplemented umount */
"swapon", /* 322 = swapon */
"times", /* 323 = times */
"personality", /* 324 = personality */
"#325 (unimplemented setfsuid)", /* 325 = unimplemented setfsuid */
"#326 (unimplemented setfsgid)", /* 326 = unimplemented setfsgid */
"#327 (unimplemented ustat)", /* 327 = unimplemented ustat */
"statfs", /* 328 = statfs */
"fstatfs", /* 329 = fstatfs */
"#330 (unimplemented sched_setparam)", /* 330 = unimplemented sched_setparam */
"#331 (unimplemented sched_getparam)", /* 331 = unimplemented sched_getparam */
"#332 (unimplemented sched_setscheduler)", /* 332 = unimplemented sched_setscheduler */
"#333 (unimplemented sched_getscheduler)", /* 333 = unimplemented sched_getscheduler */
"#334 (unimplemented sched_yield)", /* 334 = unimplemented sched_yield */
"#335 (unimplemented sched_get_priority_max)", /* 335 = unimplemented sched_get_priority_max */
"#336 (unimplemented sched_get_priority_min)", /* 336 = unimplemented sched_get_priority_min */
"#337 (unimplemented sched_rr_get_interval)", /* 337 = unimplemented sched_rr_get_interval */
"#338 (unimplemented afs_syscall)", /* 338 = unimplemented afs_syscall */
"uname", /* 339 = uname */
"nanosleep", /* 340 = nanosleep */
"mremap", /* 341 = mremap */
"#342 (unimplemented nfsservctl)", /* 342 = unimplemented nfsservctl */
"#343 (unimplemented setresgid)", /* 343 = unimplemented setresgid */
"#344 (unimplemented getresgid)", /* 344 = unimplemented getresgid */
"#345 (unimplemented pciconfig_read)", /* 345 = unimplemented pciconfig_read */
"#346 (unimplemented pciconfig_write)", /* 346 = unimplemented pciconfig_write */
"#347 (unimplemented query_module)", /* 347 = unimplemented query_module */
"#348 (unimplemented prctl)", /* 348 = unimplemented prctl */
"#349 (unimplemented pread)", /* 349 = unimplemented pread */
"#350 (unimplemented pwrite)", /* 350 = unimplemented pwrite */
"rt_sigreturn", /* 351 = rt_sigreturn */
"rt_sigaction", /* 352 = rt_sigaction */
"rt_sigprocmask", /* 353 = rt_sigprocmask */
"rt_sigpending", /* 354 = rt_sigpending */
"#355 (unimplemented rt_sigtimedwait)", /* 355 = unimplemented rt_sigtimedwait */
"rt_queueinfo", /* 356 = rt_queueinfo */
"rt_sigsuspend", /* 357 = rt_sigsuspend */
"select", /* 358 = select */
"gettimeofday", /* 359 = gettimeofday */
"settimeofday", /* 360 = settimeofday */
"getitimer", /* 361 = getitimer */
"setitimer", /* 362 = setitimer */
"utimes", /* 363 = utimes */
"getrusage", /* 364 = getrusage */
"wait4", /* 365 = wait4 */
"#366 (unimplemented adjtimex)", /* 366 = unimplemented adjtimex */
};

View File

@ -0,0 +1,798 @@
/* $NetBSD: linux_sysent.c,v 1.1 1998/09/30 21:34:34 erh Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/09/30 18:01:54 erh Exp
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/linux/linux_types.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_siginfo.h>
#include <compat/linux/alpha/linux_syscallargs.h>
#include <compat/linux/linux_ipc.h>
#include <compat/linux/linux_msg.h>
#include <compat/linux/linux_sem.h>
#include <compat/linux/linux_shm.h>
#define s(type) sizeof(type)
struct sysent linux_sysent[] = {
{ 0, 0,
sys_nosys }, /* 0 = syscall */
{ 1, s(struct sys_exit_args),
sys_exit }, /* 1 = exit */
{ 0, 0,
sys_fork }, /* 2 = fork */
{ 3, s(struct sys_read_args),
sys_read }, /* 3 = read */
{ 3, s(struct sys_write_args),
sys_write }, /* 4 = write */
{ 0, 0,
sys_nosys }, /* 5 = unimplemented */
{ 1, s(struct sys_close_args),
sys_close }, /* 6 = close */
{ 0, 0,
sys_nosys }, /* 7 = unimplemented osf_wait4 */
{ 2, s(struct linux_sys_creat_args),
linux_sys_creat }, /* 8 = creat */
{ 2, s(struct sys_link_args),
sys_link }, /* 9 = link */
{ 1, s(struct linux_sys_unlink_args),
linux_sys_unlink }, /* 10 = unlink */
{ 0, 0,
sys_nosys }, /* 11 = unimplemented */
{ 1, s(struct linux_sys_chdir_args),
linux_sys_chdir }, /* 12 = chdir */
{ 1, s(struct sys_fchdir_args),
sys_fchdir }, /* 13 = fchdir */
{ 3, s(struct linux_sys_mknod_args),
linux_sys_mknod }, /* 14 = mknod */
{ 2, s(struct linux_sys_chmod_args),
linux_sys_chmod }, /* 15 = chmod */
{ 3, s(struct linux_sys_chown_args),
linux_sys_chown }, /* 16 = chown */
{ 1, s(struct linux_sys_brk_args),
linux_sys_brk }, /* 17 = brk */
{ 0, 0,
sys_nosys }, /* 18 = unimplemented */
{ 3, s(struct compat_43_sys_lseek_args),
compat_43_sys_lseek }, /* 19 = lseek */
{ 0, 0,
sys_getpid }, /* 20 = getpid */
{ 0, 0,
sys_nosys }, /* 21 = unimplemented osf_mount */
{ 0, 0,
sys_nosys }, /* 22 = unimplemented osf_umount */
{ 1, s(struct sys_setuid_args),
sys_setuid }, /* 23 = setuid */
{ 0, 0,
sys_getuid }, /* 24 = getuid */
{ 0, 0,
sys_nosys }, /* 25 = unimplemented */
{ 0, 0,
sys_nosys }, /* 26 = unimplemented ptrace */
{ 0, 0,
sys_nosys }, /* 27 = unimplemented */
{ 0, 0,
sys_nosys }, /* 28 = unimplemented */
{ 0, 0,
sys_nosys }, /* 29 = unimplemented */
{ 0, 0,
sys_nosys }, /* 30 = unimplemented */
{ 0, 0,
sys_nosys }, /* 31 = unimplemented */
{ 0, 0,
sys_nosys }, /* 32 = unimplemented */
{ 2, s(struct linux_sys_access_args),
linux_sys_access }, /* 33 = access */
{ 0, 0,
sys_nosys }, /* 34 = unimplemented */
{ 0, 0,
sys_nosys }, /* 35 = unimplemented */
{ 0, 0,
sys_sync }, /* 36 = sync */
{ 2, s(struct linux_sys_kill_args),
linux_sys_kill }, /* 37 = kill */
{ 0, 0,
sys_nosys }, /* 38 = unimplemented */
{ 2, s(struct sys_setpgid_args),
sys_setpgid }, /* 39 = setpgid */
{ 0, 0,
sys_nosys }, /* 40 = unimplemented */
{ 1, s(struct sys_dup_args),
sys_dup }, /* 41 = dup */
{ 0, 0,
linux_sys_pipe }, /* 42 = pipe */
{ 0, 0,
sys_nosys }, /* 43 = unimplemented osf_set_program_attributes */
{ 0, 0,
sys_nosys }, /* 44 = unimplemented */
{ 3, s(struct linux_sys_open_args),
linux_sys_open }, /* 45 = open */
{ 0, 0,
sys_nosys }, /* 46 = unimplemented */
{ 0, 0,
sys_getgid }, /* 47 = getgid */
{ 0, 0,
sys_nosys }, /* 48 = unimplemented osf_sigprocmask */
{ 0, 0,
sys_nosys }, /* 49 = unimplemented */
{ 0, 0,
sys_nosys }, /* 50 = unimplemented */
{ 1, s(struct sys_acct_args),
sys_acct }, /* 51 = acct */
{ 1, s(struct linux_sys_sigpending_args),
linux_sys_sigpending }, /* 52 = sigpending */
{ 0, 0,
sys_nosys }, /* 53 = unimplemented */
{ 3, s(struct linux_sys_ioctl_args),
linux_sys_ioctl }, /* 54 = ioctl */
{ 0, 0,
sys_nosys }, /* 55 = unimplemented */
{ 0, 0,
sys_nosys }, /* 56 = unimplemented */
{ 2, s(struct linux_sys_symlink_args),
linux_sys_symlink }, /* 57 = symlink */
{ 3, s(struct linux_sys_readlink_args),
linux_sys_readlink }, /* 58 = readlink */
{ 3, s(struct linux_sys_execve_args),
linux_sys_execve }, /* 59 = execve */
{ 1, s(struct sys_umask_args),
sys_umask }, /* 60 = umask */
{ 1, s(struct sys_chroot_args),
sys_chroot }, /* 61 = chroot */
{ 0, 0,
sys_nosys }, /* 62 = unimplemented */
{ 0, 0,
sys_getpgrp }, /* 63 = getpgrp */
{ 0, 0,
compat_43_sys_getpagesize }, /* 64 = getpagesize */
{ 0, 0,
sys_nosys }, /* 65 = unimplemented */
{ 0, 0,
sys_nosys }, /* 66 = unimplemented osf_vfork */
{ 2, s(struct linux_sys_stat_args),
linux_sys_stat }, /* 67 = stat */
{ 2, s(struct linux_sys_lstat_args),
linux_sys_lstat }, /* 68 = lstat */
{ 0, 0,
sys_nosys }, /* 69 = unimplemented */
{ 0, 0,
sys_nosys }, /* 70 = unimplemented */
{ 6, s(struct linux_sys_mmap_args),
linux_sys_mmap }, /* 71 = mmap */
{ 0, 0,
sys_nosys }, /* 72 = unimplemented */
{ 2, s(struct sys_munmap_args),
sys_munmap }, /* 73 = munmap */
{ 3, s(struct sys_mprotect_args),
sys_mprotect }, /* 74 = mprotect */
{ 0, 0,
sys_nosys }, /* 75 = unimplemented madvise */
{ 0, 0,
sys_nosys }, /* 76 = unimplemented vhangup */
{ 0, 0,
sys_nosys }, /* 77 = unimplemented */
{ 0, 0,
sys_nosys }, /* 78 = unimplemented */
{ 2, s(struct sys_getgroups_args),
sys_getgroups }, /* 79 = getgroups */
{ 2, s(struct sys_setgroups_args),
sys_setgroups }, /* 80 = setgroups */
{ 0, 0,
sys_nosys }, /* 81 = unimplemented */
{ 0, 0,
sys_nosys }, /* 82 = unimplemented setpgrp */
{ 0, 0,
sys_nosys }, /* 83 = unimplemented osf_setitimer */
{ 0, 0,
sys_nosys }, /* 84 = unimplemented */
{ 0, 0,
sys_nosys }, /* 85 = unimplemented */
{ 0, 0,
sys_nosys }, /* 86 = unimplemented osf_getitimer */
{ 2, s(struct compat_43_sys_gethostname_args),
compat_43_sys_gethostname }, /* 87 = gethostname */
{ 2, s(struct compat_43_sys_sethostname_args),
compat_43_sys_sethostname }, /* 88 = sethostname */
{ 0, 0,
sys_nosys }, /* 89 = unimplemented getdtablesize */
{ 2, s(struct sys_dup2_args),
sys_dup2 }, /* 90 = dup2 */
{ 2, s(struct linux_sys_fstat_args),
linux_sys_fstat }, /* 91 = fstat */
{ 3, s(struct linux_sys_fcntl_args),
linux_sys_fcntl }, /* 92 = fcntl */
{ 0, 0,
sys_nosys }, /* 93 = unimplemented osf_select */
{ 0, 0,
sys_nosys }, /* 94 = unimplemented poll */
{ 1, s(struct sys_fsync_args),
sys_fsync }, /* 95 = fsync */
{ 3, s(struct sys_setpriority_args),
sys_setpriority }, /* 96 = setpriority */
{ 3, s(struct linux_sys_socket_args),
linux_sys_socket }, /* 97 = socket */
{ 3, s(struct sys_connect_args),
sys_connect }, /* 98 = connect */
{ 3, s(struct compat_43_sys_accept_args),
compat_43_sys_accept }, /* 99 = accept */
{ 2, s(struct sys_getpriority_args),
sys_getpriority }, /* 100 = getpriority */
{ 4, s(struct compat_43_sys_send_args),
compat_43_sys_send }, /* 101 = send */
{ 4, s(struct compat_43_sys_recv_args),
compat_43_sys_recv }, /* 102 = recv */
{ 1, s(struct linux_sys_sigreturn_args),
linux_sys_sigreturn }, /* 103 = sigreturn */
{ 3, s(struct sys_bind_args),
sys_bind }, /* 104 = bind */
{ 5, s(struct linux_sys_setsockopt_args),
linux_sys_setsockopt }, /* 105 = setsockopt */
{ 2, s(struct sys_listen_args),
sys_listen }, /* 106 = listen */
{ 0, 0,
sys_nosys }, /* 107 = unimplemented */
{ 0, 0,
sys_nosys }, /* 108 = unimplemented */
{ 0, 0,
sys_nosys }, /* 109 = unimplemented */
{ 0, 0,
sys_nosys }, /* 110 = unimplemented */
{ 3, s(struct linux_sys_sigsuspend_args),
linux_sys_sigsuspend }, /* 111 = sigsuspend */
{ 0, 0,
sys_nosys }, /* 112 = unimplemented */
{ 3, s(struct sys_recvmsg_args),
sys_recvmsg }, /* 113 = recvmsg */
{ 3, s(struct sys_sendmsg_args),
sys_sendmsg }, /* 114 = sendmsg */
{ 0, 0,
sys_nosys }, /* 115 = unimplemented */
{ 0, 0,
sys_nosys }, /* 116 = unimplemented osf_gettimeofday */
{ 0, 0,
sys_nosys }, /* 117 = unimplemented osf_getrusage */
{ 5, s(struct linux_sys_getsockopt_args),
linux_sys_getsockopt }, /* 118 = getsockopt */
{ 0, 0,
sys_nosys }, /* 119 = unimplemented */
{ 3, s(struct sys_readv_args),
sys_readv }, /* 120 = readv */
{ 3, s(struct sys_writev_args),
sys_writev }, /* 121 = writev */
{ 0, 0,
sys_nosys }, /* 122 = unimplemented osf_settimeofday */
{ 3, s(struct linux_sys_fchown_args),
linux_sys_fchown }, /* 123 = fchown */
{ 2, s(struct sys_fchmod_args),
sys_fchmod }, /* 124 = fchmod */
{ 6, s(struct linux_sys_recvfrom_args),
linux_sys_recvfrom }, /* 125 = recvfrom */
{ 2, s(struct linux_sys_setreuid_args),
linux_sys_setreuid }, /* 126 = setreuid */
{ 2, s(struct linux_sys_setregid_args),
linux_sys_setregid }, /* 127 = setregid */
{ 2, s(struct linux_sys_rename_args),
linux_sys_rename }, /* 128 = rename */
{ 2, s(struct linux_sys_truncate_args),
linux_sys_truncate }, /* 129 = truncate */
{ 2, s(struct compat_43_sys_ftruncate_args),
compat_43_sys_ftruncate }, /* 130 = ftruncate */
{ 2, s(struct sys_flock_args),
sys_flock }, /* 131 = flock */
{ 1, s(struct sys_setgid_args),
sys_setgid }, /* 132 = setgid */
{ 6, s(struct linux_sys_sendto_args),
linux_sys_sendto }, /* 133 = sendto */
{ 2, s(struct sys_shutdown_args),
sys_shutdown }, /* 134 = shutdown */
{ 4, s(struct linux_sys_socketpair_args),
linux_sys_socketpair }, /* 135 = socketpair */
{ 2, s(struct linux_sys_mkdir_args),
linux_sys_mkdir }, /* 136 = mkdir */
{ 1, s(struct linux_sys_rmdir_args),
linux_sys_rmdir }, /* 137 = rmdir */
{ 0, 0,
sys_nosys }, /* 138 = unimplemented osf_utimes */
{ 0, 0,
sys_nosys }, /* 139 = unimplemented */
{ 0, 0,
sys_nosys }, /* 140 = unimplemented */
{ 3, s(struct compat_43_sys_getpeername_args),
compat_43_sys_getpeername }, /* 141 = getpeername */
{ 0, 0,
sys_nosys }, /* 142 = unimplemented */
{ 0, 0,
sys_nosys }, /* 143 = unimplemented */
{ 2, s(struct compat_43_sys_getrlimit_args),
compat_43_sys_getrlimit }, /* 144 = getrlimit */
{ 2, s(struct compat_43_sys_setrlimit_args),
compat_43_sys_setrlimit }, /* 145 = setrlimit */
{ 0, 0,
sys_nosys }, /* 146 = unimplemented */
{ 0, 0,
sys_setsid }, /* 147 = setsid */
{ 0, 0,
sys_nosys }, /* 148 = unimplemented quotactl */
{ 0, 0,
sys_nosys }, /* 149 = unimplemented */
{ 3, s(struct compat_43_sys_getsockname_args),
compat_43_sys_getsockname }, /* 150 = getsockname */
{ 0, 0,
sys_nosys }, /* 151 = unimplemented */
{ 0, 0,
sys_nosys }, /* 152 = unimplemented */
{ 0, 0,
sys_nosys }, /* 153 = unimplemented */
{ 0, 0,
sys_nosys }, /* 154 = unimplemented */
{ 0, 0,
sys_nosys }, /* 155 = unimplemented */
{ 3, s(struct linux_sys_sigaction_args),
linux_sys_sigaction }, /* 156 = sigaction */
{ 0, 0,
sys_nosys }, /* 157 = unimplemented */
{ 0, 0,
sys_nosys }, /* 158 = unimplemented */
{ 0, 0,
sys_nosys }, /* 159 = unimplemented osf_getdirentries */
{ 0, 0,
sys_nosys }, /* 160 = unimplemented osf_statfs */
{ 0, 0,
sys_nosys }, /* 161 = unimplemented osf_fstatfs */
{ 0, 0,
sys_nosys }, /* 162 = unimplemented */
{ 0, 0,
sys_nosys }, /* 163 = unimplemented */
{ 0, 0,
sys_nosys }, /* 164 = unimplemented */
{ 0, 0,
sys_nosys }, /* 165 = unimplemented osf_getdomainname */
{ 0, 0,
sys_nosys }, /* 166 = unimplemented setdomainname */
{ 0, 0,
sys_nosys }, /* 167 = unimplemented */
{ 0, 0,
sys_nosys }, /* 168 = unimplemented */
{ 0, 0,
sys_nosys }, /* 169 = unimplemented */
{ 0, 0,
sys_nosys }, /* 170 = unimplemented */
{ 0, 0,
sys_nosys }, /* 171 = unimplemented */
{ 0, 0,
sys_nosys }, /* 172 = unimplemented */
{ 0, 0,
sys_nosys }, /* 173 = unimplemented */
{ 0, 0,
sys_nosys }, /* 174 = unimplemented */
{ 0, 0,
sys_nosys }, /* 175 = unimplemented */
{ 0, 0,
sys_nosys }, /* 176 = unimplemented */
{ 0, 0,
sys_nosys }, /* 177 = unimplemented */
{ 0, 0,
sys_nosys }, /* 178 = unimplemented */
{ 0, 0,
sys_nosys }, /* 179 = unimplemented */
{ 0, 0,
sys_nosys }, /* 180 = unimplemented */
{ 0, 0,
sys_nosys }, /* 181 = unimplemented */
{ 0, 0,
sys_nosys }, /* 182 = unimplemented */
{ 0, 0,
sys_nosys }, /* 183 = unimplemented */
{ 0, 0,
sys_nosys }, /* 184 = unimplemented */
{ 0, 0,
sys_nosys }, /* 185 = unimplemented */
{ 0, 0,
sys_nosys }, /* 186 = unimplemented */
{ 0, 0,
sys_nosys }, /* 187 = unimplemented */
{ 0, 0,
sys_nosys }, /* 188 = unimplemented */
{ 0, 0,
sys_nosys }, /* 189 = unimplemented */
{ 0, 0,
sys_nosys }, /* 190 = unimplemented */
{ 0, 0,
sys_nosys }, /* 191 = unimplemented */
{ 0, 0,
sys_nosys }, /* 192 = unimplemented */
{ 0, 0,
sys_nosys }, /* 193 = unimplemented */
{ 0, 0,
sys_nosys }, /* 194 = unimplemented */
{ 0, 0,
sys_nosys }, /* 195 = unimplemented */
{ 0, 0,
sys_nosys }, /* 196 = unimplemented */
{ 0, 0,
sys_nosys }, /* 197 = unimplemented */
{ 0, 0,
sys_nosys }, /* 198 = unimplemented */
{ 0, 0,
sys_nosys }, /* 199 = unimplemented osf_swapon */
#ifdef SYSVMSG
{ 3, s(struct linux_sys_msgctl_args),
linux_sys_msgctl }, /* 200 = msgctl */
{ 2, s(struct sys_msgget_args),
sys_msgget }, /* 201 = msgget */
{ 4, s(struct sys_msgrcv_args),
sys_msgrcv }, /* 202 = msgrcv */
{ 4, s(struct sys_msgsnd_args),
sys_msgsnd }, /* 203 = msgsnd */
#else
{ 0, 0,
sys_nosys }, /* 200 = unimplemented msgctl */
{ 0, 0,
sys_nosys }, /* 201 = unimplemented msgget */
{ 0, 0,
sys_nosys }, /* 202 = unimplemented msgrcv */
{ 0, 0,
sys_nosys }, /* 203 = unimplemented msgsnd */
#endif
#ifdef SYSVSEM
{ 4, s(struct linux_sys_semctl_args),
linux_sys_semctl }, /* 204 = semctl */
{ 3, s(struct sys_semget_args),
sys_semget }, /* 205 = semget */
{ 3, s(struct sys_semop_args),
sys_semop }, /* 206 = semop */
#else
{ 0, 0,
sys_nosys }, /* 204 = unimplemented semctl */
{ 0, 0,
sys_nosys }, /* 205 = unimplemented semget */
{ 0, 0,
sys_nosys }, /* 206 = unimplemented semop */
#endif
{ 1, s(struct linux_sys_olduname_args),
linux_sys_olduname }, /* 207 = olduname */
{ 3, s(struct linux_sys_lchown_args),
linux_sys_lchown }, /* 208 = lchown */
#ifdef SYSVSHM
{ 4, s(struct linux_sys_shmat_args),
linux_sys_shmat }, /* 209 = shmat */
{ 3, s(struct linux_sys_shmctl_args),
linux_sys_shmctl }, /* 210 = shmctl */
{ 1, s(struct sys_shmdt_args),
sys_shmdt }, /* 211 = shmdt */
{ 3, s(struct sys_shmget_args),
sys_shmget }, /* 212 = shmget */
#else
{ 0, 0,
sys_nosys }, /* 209 = unimplemented shmat */
{ 0, 0,
sys_nosys }, /* 210 = unimplemented shmctl */
{ 0, 0,
sys_nosys }, /* 211 = unimplemented shmdt */
{ 0, 0,
sys_nosys }, /* 212 = unimplemented shmget */
#endif
{ 0, 0,
sys_nosys }, /* 213 = unimplemented */
{ 0, 0,
sys_nosys }, /* 214 = unimplemented */
{ 0, 0,
sys_nosys }, /* 215 = unimplemented */
{ 0, 0,
sys_nosys }, /* 216 = unimplemented */
{ 3, s(struct linux_sys_msync_args),
linux_sys_msync }, /* 217 = msync */
{ 0, 0,
sys_nosys }, /* 218 = unimplemented osf_signal */
{ 0, 0,
sys_nosys }, /* 219 = unimplemented */
{ 0, 0,
sys_nosys }, /* 220 = unimplemented */
{ 0, 0,
sys_nosys }, /* 221 = unimplemented */
{ 0, 0,
sys_nosys }, /* 222 = unimplemented */
{ 0, 0,
sys_nosys }, /* 223 = unimplemented */
{ 0, 0,
sys_nosys }, /* 224 = unimplemented */
{ 0, 0,
sys_nosys }, /* 225 = unimplemented */
{ 0, 0,
sys_nosys }, /* 226 = unimplemented */
{ 0, 0,
sys_nosys }, /* 227 = unimplemented */
{ 0, 0,
sys_nosys }, /* 228 = unimplemented */
{ 0, 0,
sys_nosys }, /* 229 = unimplemented */
{ 0, 0,
sys_nosys }, /* 230 = unimplemented */
{ 0, 0,
sys_nosys }, /* 231 = unimplemented */
{ 0, 0,
sys_nosys }, /* 232 = unimplemented */
{ 1, s(struct linux_sys_getpgid_args),
linux_sys_getpgid }, /* 233 = getpgid */
{ 1, s(struct sys_getsid_args),
sys_getsid }, /* 234 = getsid */
{ 0, 0,
sys_nosys }, /* 235 = unimplemented */
{ 0, 0,
sys_nosys }, /* 236 = unimplemented */
{ 0, 0,
sys_nosys }, /* 237 = unimplemented */
{ 0, 0,
sys_nosys }, /* 238 = unimplemented */
{ 0, 0,
sys_nosys }, /* 239 = unimplemented */
{ 0, 0,
sys_nosys }, /* 240 = unimplemented */
{ 0, 0,
sys_nosys }, /* 241 = unimplemented osf_sysinfo */
{ 0, 0,
sys_nosys }, /* 242 = unimplemented */
{ 0, 0,
sys_nosys }, /* 243 = unimplemented */
{ 0, 0,
sys_nosys }, /* 244 = unimplemented osf_proplist_syscall */
{ 0, 0,
sys_nosys }, /* 245 = unimplemented */
{ 0, 0,
sys_nosys }, /* 246 = unimplemented */
{ 0, 0,
sys_nosys }, /* 247 = unimplemented */
{ 0, 0,
sys_nosys }, /* 248 = unimplemented */
{ 0, 0,
sys_nosys }, /* 249 = unimplemented */
{ 0, 0,
sys_nosys }, /* 250 = unimplemented */
{ 0, 0,
sys_nosys }, /* 251 = unimplemented osf_usleep_thread */
{ 0, 0,
sys_nosys }, /* 252 = unimplemented */
{ 0, 0,
sys_nosys }, /* 253 = unimplemented */
{ 0, 0,
sys_nosys }, /* 254 = unimplemented sysfs */
{ 0, 0,
sys_nosys }, /* 255 = unimplemented */
{ 0, 0,
sys_nosys }, /* 256 = unimplemented osf_getsysinfo */
{ 0, 0,
sys_nosys }, /* 257 = unimplemented osf_setsysinfo */
{ 0, 0,
sys_nosys }, /* 258 = unimplemented */
{ 0, 0,
sys_nosys }, /* 259 = unimplemented */
{ 0, 0,
sys_nosys }, /* 260 = unimplemented */
{ 1, s(struct linux_sys_fdatasync_args),
linux_sys_fdatasync }, /* 261 = fdatasync */
{ 0, 0,
sys_nosys }, /* 262 = unimplemented */
{ 0, 0,
sys_nosys }, /* 263 = unimplemented */
{ 0, 0,
sys_nosys }, /* 264 = unimplemented */
{ 0, 0,
sys_nosys }, /* 265 = unimplemented */
{ 0, 0,
sys_nosys }, /* 266 = unimplemented */
{ 0, 0,
sys_nosys }, /* 267 = unimplemented */
{ 0, 0,
sys_nosys }, /* 268 = unimplemented */
{ 0, 0,
sys_nosys }, /* 269 = unimplemented */
{ 0, 0,
sys_nosys }, /* 270 = unimplemented */
{ 0, 0,
sys_nosys }, /* 271 = unimplemented */
{ 0, 0,
sys_nosys }, /* 272 = unimplemented */
{ 0, 0,
sys_nosys }, /* 273 = unimplemented */
{ 0, 0,
sys_nosys }, /* 274 = unimplemented */
{ 0, 0,
sys_nosys }, /* 275 = unimplemented */
{ 0, 0,
sys_nosys }, /* 276 = unimplemented */
{ 0, 0,
sys_nosys }, /* 277 = unimplemented */
{ 0, 0,
sys_nosys }, /* 278 = unimplemented */
{ 0, 0,
sys_nosys }, /* 279 = unimplemented */
{ 0, 0,
sys_nosys }, /* 280 = unimplemented */
{ 0, 0,
sys_nosys }, /* 281 = unimplemented */
{ 0, 0,
sys_nosys }, /* 282 = unimplemented */
{ 0, 0,
sys_nosys }, /* 283 = unimplemented */
{ 0, 0,
sys_nosys }, /* 284 = unimplemented */
{ 0, 0,
sys_nosys }, /* 285 = unimplemented */
{ 0, 0,
sys_nosys }, /* 286 = unimplemented */
{ 0, 0,
sys_nosys }, /* 287 = unimplemented */
{ 0, 0,
sys_nosys }, /* 288 = unimplemented */
{ 0, 0,
sys_nosys }, /* 289 = unimplemented */
{ 0, 0,
sys_nosys }, /* 290 = unimplemented */
{ 0, 0,
sys_nosys }, /* 291 = unimplemented */
{ 0, 0,
sys_nosys }, /* 292 = unimplemented */
{ 0, 0,
sys_nosys }, /* 293 = unimplemented */
{ 0, 0,
sys_nosys }, /* 294 = unimplemented */
{ 0, 0,
sys_nosys }, /* 295 = unimplemented */
{ 0, 0,
sys_nosys }, /* 296 = unimplemented */
{ 0, 0,
sys_nosys }, /* 297 = unimplemented */
{ 0, 0,
sys_nosys }, /* 298 = unimplemented */
{ 0, 0,
sys_nosys }, /* 299 = unimplemented */
{ 0, 0,
sys_nosys }, /* 300 = unimplemented bdflush */
{ 0, 0,
sys_nosys }, /* 301 = unimplemented sethae */
{ 0, 0,
sys_nosys }, /* 302 = unimplemented mount */
{ 0, 0,
sys_nosys }, /* 303 = unimplemented old_adjtimex */
{ 0, 0,
sys_nosys }, /* 304 = unimplemented swapoff */
{ 3, s(struct linux_sys_getdents_args),
linux_sys_getdents }, /* 305 = getdents */
{ 0, 0,
sys_nosys }, /* 306 = unimplemented create_module */
{ 0, 0,
sys_nosys }, /* 307 = unimplemented init_module */
{ 0, 0,
sys_nosys }, /* 308 = unimplemented delete_module */
{ 0, 0,
sys_nosys }, /* 309 = unimplemented get_kernel_syms */
{ 0, 0,
sys_nosys }, /* 310 = unimplemented syslog */
{ 1, s(struct sys_reboot_args),
sys_reboot }, /* 311 = reboot */
{ 0, 0,
sys_nosys }, /* 312 = unimplemented clone */
#ifdef EXEC_AOUT
{ 1, s(struct linux_sys_uselib_args),
linux_sys_uselib }, /* 313 = uselib */
#else
{ 0, 0,
sys_nosys }, /* 313 = unimplemented sys_uselib */
#endif
{ 2, s(struct sys_mlock_args),
sys_mlock }, /* 314 = mlock */
{ 2, s(struct sys_munlock_args),
sys_munlock }, /* 315 = munlock */
{ 0, 0,
sys_nosys }, /* 316 = unimplemented mlockall */
{ 0, 0,
sys_nosys }, /* 317 = unimplemented munlockall */
{ 0, 0,
sys_nosys }, /* 318 = unimplemented sysinfo */
{ 1, s(struct linux_sys___sysctl_args),
linux_sys___sysctl }, /* 319 = __sysctl */
{ 0, 0,
sys_nosys }, /* 320 = unimplemented idle */
{ 0, 0,
sys_nosys }, /* 321 = unimplemented umount */
{ 1, s(struct compat_12_sys_swapon_args),
compat_12_sys_swapon }, /* 322 = swapon */
{ 1, s(struct linux_sys_times_args),
linux_sys_times }, /* 323 = times */
{ 1, s(struct linux_sys_personality_args),
linux_sys_personality }, /* 324 = personality */
{ 0, 0,
sys_nosys }, /* 325 = unimplemented setfsuid */
{ 0, 0,
sys_nosys }, /* 326 = unimplemented setfsgid */
{ 0, 0,
sys_nosys }, /* 327 = unimplemented ustat */
{ 2, s(struct linux_sys_statfs_args),
linux_sys_statfs }, /* 328 = statfs */
{ 2, s(struct linux_sys_fstatfs_args),
linux_sys_fstatfs }, /* 329 = fstatfs */
{ 0, 0,
sys_nosys }, /* 330 = unimplemented sched_setparam */
{ 0, 0,
sys_nosys }, /* 331 = unimplemented sched_getparam */
{ 0, 0,
sys_nosys }, /* 332 = unimplemented sched_setscheduler */
{ 0, 0,
sys_nosys }, /* 333 = unimplemented sched_getscheduler */
{ 0, 0,
sys_nosys }, /* 334 = unimplemented sched_yield */
{ 0, 0,
sys_nosys }, /* 335 = unimplemented sched_get_priority_max */
{ 0, 0,
sys_nosys }, /* 336 = unimplemented sched_get_priority_min */
{ 0, 0,
sys_nosys }, /* 337 = unimplemented sched_rr_get_interval */
{ 0, 0,
sys_nosys }, /* 338 = unimplemented afs_syscall */
{ 1, s(struct linux_sys_uname_args),
linux_sys_uname }, /* 339 = uname */
{ 2, s(struct sys_nanosleep_args),
sys_nanosleep }, /* 340 = nanosleep */
{ 4, s(struct linux_sys_mremap_args),
linux_sys_mremap }, /* 341 = mremap */
{ 0, 0,
sys_nosys }, /* 342 = unimplemented nfsservctl */
{ 0, 0,
sys_nosys }, /* 343 = unimplemented setresgid */
{ 0, 0,
sys_nosys }, /* 344 = unimplemented getresgid */
{ 0, 0,
sys_nosys }, /* 345 = unimplemented pciconfig_read */
{ 0, 0,
sys_nosys }, /* 346 = unimplemented pciconfig_write */
{ 0, 0,
sys_nosys }, /* 347 = unimplemented query_module */
{ 0, 0,
sys_nosys }, /* 348 = unimplemented prctl */
{ 0, 0,
sys_nosys }, /* 349 = unimplemented pread */
{ 0, 0,
sys_nosys }, /* 350 = unimplemented pwrite */
{ 1, s(struct linux_sys_rt_sigreturn_args),
linux_sys_rt_sigreturn }, /* 351 = rt_sigreturn */
{ 4, s(struct linux_sys_rt_sigaction_args),
linux_sys_rt_sigaction }, /* 352 = rt_sigaction */
{ 4, s(struct linux_sys_rt_sigprocmask_args),
linux_sys_rt_sigprocmask }, /* 353 = rt_sigprocmask */
{ 2, s(struct linux_sys_rt_sigpending_args),
linux_sys_rt_sigpending }, /* 354 = rt_sigpending */
{ 0, 0,
sys_nosys }, /* 355 = unimplemented rt_sigtimedwait */
{ 3, s(struct linux_sys_rt_queueinfo_args),
linux_sys_rt_queueinfo }, /* 356 = rt_queueinfo */
{ 2, s(struct linux_sys_rt_sigsuspend_args),
linux_sys_rt_sigsuspend }, /* 357 = rt_sigsuspend */
{ 5, s(struct linux_sys_select_args),
linux_sys_select }, /* 358 = select */
{ 2, s(struct sys_gettimeofday_args),
sys_gettimeofday }, /* 359 = gettimeofday */
{ 2, s(struct sys_settimeofday_args),
sys_settimeofday }, /* 360 = settimeofday */
{ 2, s(struct sys_getitimer_args),
sys_getitimer }, /* 361 = getitimer */
{ 3, s(struct sys_setitimer_args),
sys_setitimer }, /* 362 = setitimer */
{ 2, s(struct sys_utimes_args),
sys_utimes }, /* 363 = utimes */
{ 2, s(struct sys_getrusage_args),
sys_getrusage }, /* 364 = getrusage */
{ 4, s(struct linux_sys_wait4_args),
linux_sys_wait4 }, /* 365 = wait4 */
{ 0, 0,
sys_nosys }, /* 366 = unimplemented adjtimex */
};