diff options
| author | erh <erh@NetBSD.org> | 1998-10-01 04:07:34 +0000 |
|---|---|---|
| committer | erh <erh@NetBSD.org> | 1998-10-01 04:07:34 +0000 |
| commit | 19e9e9c2ef4972a756396c4abced489bb84bd034 (patch) | |
| tree | 3cc2e1a74487ee1ae9f97f9b7636e131f6f15d59 /sys/compat/linux | |
| parent | d70c9cdbc9816c6fb4312ce9ef5673b07bd42240 (diff) | |
These syscall table files have been regenerated in compat/linux/i386.
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_syscall.h | 375 | ||||
| -rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 471 | ||||
| -rw-r--r-- | sys/compat/linux/linux_syscalls.c | 199 | ||||
| -rw-r--r-- | sys/compat/linux/linux_sysent.c | 367 |
4 files changed, 0 insertions, 1412 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h deleted file mode 100644 index 77361e2ebcb..00000000000 --- a/sys/compat/linux/linux_syscall.h +++ /dev/null @@ -1,375 +0,0 @@ -/* $NetBSD: linux_syscall.h,v 1.32 1998/09/11 23:14:57 mycroft Exp $ */ - -/* - * System call numbers. - * - * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft 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: "open" ret: "int" args: "char *" "int" "int" */ -#define LINUX_SYS_open 5 - -/* syscall: "close" ret: "int" args: "int" */ -#define LINUX_SYS_close 6 - -/* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */ -#define LINUX_SYS_waitpid 7 - -/* 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: "execve" ret: "int" args: "char *" "char **" "char **" */ -#define LINUX_SYS_execve 11 - -/* syscall: "chdir" ret: "int" args: "char *" */ -#define LINUX_SYS_chdir 12 - -/* syscall: "time" ret: "int" args: "linux_time_t *" */ -#define LINUX_SYS_time 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: "break" ret: "int" args: "char *" */ -#define LINUX_SYS_break 17 - - /* 18 is obsolete ostat */ -/* 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: "alarm" ret: "int" args: "unsigned int" */ -#define LINUX_SYS_alarm 27 - - /* 28 is obsolete ofstat */ -/* syscall: "pause" ret: "int" args: */ -#define LINUX_SYS_pause 29 - -/* syscall: "utime" ret: "int" args: "char *" "struct linux_utimbuf *" */ -#define LINUX_SYS_utime 30 - -/* syscall: "access" ret: "int" args: "char *" "int" */ -#define LINUX_SYS_access 33 - -/* syscall: "nice" ret: "int" args: "int" */ -#define LINUX_SYS_nice 34 - -/* syscall: "sync" ret: "int" args: */ -#define LINUX_SYS_sync 36 - -/* syscall: "kill" ret: "int" args: "int" "int" */ -#define LINUX_SYS_kill 37 - -/* syscall: "rename" ret: "int" args: "char *" "char *" */ -#define LINUX_SYS_rename 38 - -/* syscall: "mkdir" ret: "int" args: "char *" "int" */ -#define LINUX_SYS_mkdir 39 - -/* syscall: "rmdir" ret: "int" args: "char *" */ -#define LINUX_SYS_rmdir 40 - -/* syscall: "dup" ret: "int" args: "u_int" */ -#define LINUX_SYS_dup 41 - -/* syscall: "pipe" ret: "int" args: "int *" */ -#define LINUX_SYS_pipe 42 - -/* syscall: "times" ret: "int" args: "struct times *" */ -#define LINUX_SYS_times 43 - -/* syscall: "brk" ret: "int" args: "char *" */ -#define LINUX_SYS_brk 45 - -/* syscall: "setgid" ret: "int" args: "gid_t" */ -#define LINUX_SYS_setgid 46 - -/* syscall: "getgid" ret: "gid_t" args: */ -#define LINUX_SYS_getgid 47 - -/* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */ -#define LINUX_SYS_signal 48 - -/* syscall: "geteuid" ret: "uid_t" args: */ -#define LINUX_SYS_geteuid 49 - -/* syscall: "getegid" ret: "gid_t" args: */ -#define LINUX_SYS_getegid 50 - -/* syscall: "acct" ret: "int" args: "char *" */ -#define LINUX_SYS_acct 51 - -/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */ -#define LINUX_SYS_ioctl 54 - -/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ -#define LINUX_SYS_fcntl 55 - -/* syscall: "setpgid" ret: "int" args: "int" "int" */ -#define LINUX_SYS_setpgid 57 - -/* syscall: "oldolduname" ret: "int" args: "struct linux_oldold_utsname *" */ -#define LINUX_SYS_oldolduname 59 - -/* syscall: "umask" ret: "int" args: "int" */ -#define LINUX_SYS_umask 60 - -/* syscall: "chroot" ret: "int" args: "char *" */ -#define LINUX_SYS_chroot 61 - -/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ -#define LINUX_SYS_dup2 63 - -/* syscall: "getppid" ret: "pid_t" args: */ -#define LINUX_SYS_getppid 64 - -/* syscall: "getpgrp" ret: "int" args: */ -#define LINUX_SYS_getpgrp 65 - -/* syscall: "setsid" ret: "int" args: */ -#define LINUX_SYS_setsid 66 - -/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" */ -#define LINUX_SYS_sigaction 67 - -/* syscall: "siggetmask" ret: "int" args: */ -#define LINUX_SYS_siggetmask 68 - -/* syscall: "sigsetmask" ret: "int" args: "linux_sigset_t" */ -#define LINUX_SYS_sigsetmask 69 - -/* syscall: "setreuid" ret: "int" args: "int" "int" */ -#define LINUX_SYS_setreuid 70 - -/* syscall: "setregid" ret: "int" args: "int" "int" */ -#define LINUX_SYS_setregid 71 - -/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */ -#define LINUX_SYS_sigsuspend 72 - -/* syscall: "sigpending" ret: "int" args: "linux_sigset_t *" */ -#define LINUX_SYS_sigpending 73 - -/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */ -#define LINUX_SYS_sethostname 74 - -/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */ -#define LINUX_SYS_setrlimit 75 - -/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */ -#define LINUX_SYS_getrlimit 76 - -/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ -#define LINUX_SYS_getrusage 77 - -/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ -#define LINUX_SYS_gettimeofday 78 - -/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ -#define LINUX_SYS_settimeofday 79 - -/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ -#define LINUX_SYS_getgroups 80 - -/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ -#define LINUX_SYS_setgroups 81 - -/* syscall: "oldselect" ret: "int" args: "struct linux_select *" */ -#define LINUX_SYS_oldselect 82 - -/* syscall: "symlink" ret: "int" args: "char *" "char *" */ -#define LINUX_SYS_symlink 83 - -/* syscall: "oolstat" ret: "int" args: "char *" "struct stat43 *" */ -#define LINUX_SYS_oolstat 84 - -/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ -#define LINUX_SYS_readlink 85 - -/* syscall: "uselib" ret: "int" args: "char *" */ -#define LINUX_SYS_uselib 86 - -/* syscall: "swapon" ret: "int" args: "char *" */ -#define LINUX_SYS_swapon 87 - -/* syscall: "reboot" ret: "int" args: "int" */ -#define LINUX_SYS_reboot 88 - -/* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */ -#define LINUX_SYS_readdir 89 - -/* syscall: "mmap" ret: "int" args: "struct linux_mmap *" */ -#define LINUX_SYS_mmap 90 - -/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */ -#define LINUX_SYS_munmap 91 - -/* syscall: "truncate" ret: "int" args: "char *" "long" */ -#define LINUX_SYS_truncate 92 - -/* syscall: "ftruncate" ret: "int" args: "int" "long" */ -#define LINUX_SYS_ftruncate 93 - -/* syscall: "fchmod" ret: "int" args: "int" "int" */ -#define LINUX_SYS_fchmod 94 - -/* syscall: "fchown" ret: "int" args: "int" "int" "int" */ -#define LINUX_SYS_fchown 95 - -/* syscall: "getpriority" ret: "int" args: "int" "int" */ -#define LINUX_SYS_getpriority 96 - -/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ -#define LINUX_SYS_setpriority 97 - -/* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */ -#define LINUX_SYS_profil 98 - -/* syscall: "statfs" ret: "int" args: "char *" "struct linux_statfs *" */ -#define LINUX_SYS_statfs 99 - -/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */ -#define LINUX_SYS_fstatfs 100 - -/* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */ -#define LINUX_SYS_ioperm 101 - -/* syscall: "socketcall" ret: "int" args: "int" "void *" */ -#define LINUX_SYS_socketcall 102 - -/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ -#define LINUX_SYS_setitimer 104 - -/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */ -#define LINUX_SYS_getitimer 105 - -/* syscall: "stat" ret: "int" args: "char *" "struct linux_stat *" */ -#define LINUX_SYS_stat 106 - -/* syscall: "lstat" ret: "int" args: "char *" "struct linux_stat *" */ -#define LINUX_SYS_lstat 107 - -/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */ -#define LINUX_SYS_fstat 108 - -/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */ -#define LINUX_SYS_olduname 109 - -/* syscall: "iopl" ret: "int" args: "int" */ -#define LINUX_SYS_iopl 110 - -/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */ -#define LINUX_SYS_wait4 114 - -/* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */ -#define LINUX_SYS_ipc 117 - -/* syscall: "fsync" ret: "int" args: "int" */ -#define LINUX_SYS_fsync 118 - -/* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */ -#define LINUX_SYS_sigreturn 119 - -/* syscall: "setdomainname" ret: "int" args: "char *" "int" */ -#define LINUX_SYS_setdomainname 121 - -/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */ -#define LINUX_SYS_uname 122 - -/* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */ -#define LINUX_SYS_modify_ldt 123 - -/* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */ -#define LINUX_SYS_mprotect 125 - -/* syscall: "sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" */ -#define LINUX_SYS_sigprocmask 126 - -/* syscall: "getpgid" ret: "int" args: "int" */ -#define LINUX_SYS_getpgid 132 - -/* syscall: "fchdir" ret: "int" args: "int" */ -#define LINUX_SYS_fchdir 133 - -/* syscall: "personality" ret: "int" args: "int" */ -#define LINUX_SYS_personality 136 - -/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */ -#define LINUX_SYS_llseek 140 - -/* syscall: "getdents" ret: "int" args: "int" "void *" "unsigned" */ -#define LINUX_SYS_getdents 141 - -/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ -#define LINUX_SYS_select 142 - -/* syscall: "flock" ret: "int" args: "int" "int" */ -#define LINUX_SYS_flock 143 - -/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */ -#define LINUX_SYS_msync 144 - -/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ -#define LINUX_SYS_readv 145 - -/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ -#define LINUX_SYS_writev 146 - -/* syscall: "getsid" ret: "pid_t" args: "pid_t" */ -#define LINUX_SYS_getsid 147 - -/* syscall: "fdatasync" ret: "int" args: "int" */ -#define LINUX_SYS_fdatasync 148 - -/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */ -#define LINUX_SYS___sysctl 149 - -/* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */ -#define LINUX_SYS_mlock 150 - -/* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */ -#define LINUX_SYS_munlock 151 - -/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ -#define LINUX_SYS_nanosleep 162 - -/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */ -#define LINUX_SYS_mremap 163 - -#define LINUX_SYS_MAXSYSCALL 164 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h deleted file mode 100644 index 385e5474bd4..00000000000 --- a/sys/compat/linux/linux_syscallargs.h +++ /dev/null @@ -1,471 +0,0 @@ -/* $NetBSD: linux_syscallargs.h,v 1.31 1998/09/11 23:14:57 mycroft Exp $ */ - -/* - * System call argument lists. - * - * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft Exp - */ - -#define syscallarg(x) union { x datum; register_t pad; } - -struct linux_sys_open_args { - syscallarg(char *) path; - syscallarg(int) flags; - syscallarg(int) mode; -}; - -struct linux_sys_waitpid_args { - syscallarg(int) pid; - syscallarg(int *) status; - syscallarg(int) options; -}; - -struct linux_sys_creat_args { - syscallarg(char *) path; - syscallarg(int) mode; -}; - -struct linux_sys_unlink_args { - syscallarg(char *) path; -}; - -struct linux_sys_execve_args { - syscallarg(char *) path; - syscallarg(char **) argp; - syscallarg(char **) envp; -}; - -struct linux_sys_chdir_args { - syscallarg(char *) path; -}; - -struct linux_sys_time_args { - syscallarg(linux_time_t *) t; -}; - -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_break_args { - syscallarg(char *) nsize; -}; - -struct linux_sys_alarm_args { - syscallarg(unsigned int) secs; -}; - -struct linux_sys_utime_args { - syscallarg(char *) path; - syscallarg(struct linux_utimbuf *) times; -}; - -struct linux_sys_access_args { - syscallarg(char *) path; - syscallarg(int) flags; -}; - -struct linux_sys_nice_args { - syscallarg(int) incr; -}; - -struct linux_sys_kill_args { - syscallarg(int) pid; - syscallarg(int) signum; -}; - -struct linux_sys_rename_args { - syscallarg(char *) from; - syscallarg(char *) to; -}; - -struct linux_sys_mkdir_args { - syscallarg(char *) path; - syscallarg(int) mode; -}; - -struct linux_sys_rmdir_args { - syscallarg(char *) path; -}; - -struct linux_sys_pipe_args { - syscallarg(int *) pfds; -}; - -struct linux_sys_times_args { - syscallarg(struct times *) tms; -}; - -struct linux_sys_brk_args { - syscallarg(char *) nsize; -}; - -struct linux_sys_signal_args { - syscallarg(int) sig; - syscallarg(linux_handler_t) handler; -}; - -struct linux_sys_ioctl_args { - syscallarg(int) fd; - syscallarg(u_long) com; - syscallarg(caddr_t) data; -}; - -struct linux_sys_fcntl_args { - syscallarg(int) fd; - syscallarg(int) cmd; - syscallarg(void *) arg; -}; - -struct linux_sys_oldolduname_args { - syscallarg(struct linux_oldold_utsname *) up; -}; - -struct linux_sys_sigaction_args { - syscallarg(int) signum; - syscallarg(const struct linux_sigaction *) nsa; - syscallarg(struct linux_sigaction *) osa; -}; - -struct linux_sys_sigsetmask_args { - syscallarg(linux_sigset_t) mask; -}; - -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_sigsuspend_args { - syscallarg(caddr_t) restart; - syscallarg(int) oldmask; - syscallarg(int) mask; -}; - -struct linux_sys_sigpending_args { - syscallarg(linux_sigset_t *) set; -}; - -struct linux_sys_oldselect_args { - syscallarg(struct linux_select *) lsp; -}; - -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_uselib_args { - syscallarg(char *) path; -}; - -struct linux_sys_readdir_args { - syscallarg(int) fd; - syscallarg(caddr_t) dent; - syscallarg(unsigned int) count; -}; - -struct linux_sys_mmap_args { - syscallarg(struct linux_mmap *) lmp; -}; - -struct linux_sys_truncate_args { - syscallarg(char *) path; - syscallarg(long) length; -}; - -struct linux_sys_fchown_args { - syscallarg(int) fd; - syscallarg(int) uid; - syscallarg(int) gid; -}; - -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_ioperm_args { - syscallarg(unsigned int) lo; - syscallarg(unsigned int) hi; - syscallarg(int) val; -}; - -struct linux_sys_socketcall_args { - syscallarg(int) what; - syscallarg(void *) args; -}; - -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_fstat_args { - syscallarg(int) fd; - syscallarg(struct linux_stat *) sp; -}; - -struct linux_sys_olduname_args { - syscallarg(struct linux_old_utsname *) up; -}; - -struct linux_sys_iopl_args { - syscallarg(int) level; -}; - -struct linux_sys_wait4_args { - syscallarg(int) pid; - syscallarg(int *) status; - syscallarg(int) options; - syscallarg(struct rusage *) rusage; -}; - -struct linux_sys_ipc_args { - syscallarg(int) what; - syscallarg(int) a1; - syscallarg(int) a2; - syscallarg(int) a3; - syscallarg(caddr_t) ptr; -}; - -struct linux_sys_sigreturn_args { - syscallarg(struct linux_sigcontext *) scp; -}; - -struct linux_sys_uname_args { - syscallarg(struct linux_utsname *) up; -}; - -struct linux_sys_modify_ldt_args { - syscallarg(int) func; - syscallarg(void *) ptr; - syscallarg(size_t) bytecount; -}; - -struct linux_sys_sigprocmask_args { - syscallarg(int) how; - syscallarg(const linux_sigset_t *) set; - syscallarg(linux_sigset_t *) oset; -}; - -struct linux_sys_getpgid_args { - syscallarg(int) pid; -}; - -struct linux_sys_personality_args { - syscallarg(int) per; -}; - -struct linux_sys_llseek_args { - syscallarg(int) fd; - syscallarg(u_int32_t) ohigh; - syscallarg(u_int32_t) olow; - syscallarg(caddr_t) res; - syscallarg(int) whence; -}; - -struct linux_sys_getdents_args { - syscallarg(int) fd; - syscallarg(void *) dirent; - syscallarg(unsigned) count; -}; - -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_msync_args { - syscallarg(caddr_t) addr; - syscallarg(int) len; - syscallarg(int) fl; -}; - -struct linux_sys_fdatasync_args { - syscallarg(int) fd; -}; - -struct linux_sys___sysctl_args { - syscallarg(struct linux___sysctl *) lsp; -}; - -struct linux_sys_mremap_args { - syscallarg(void *) old_address; - syscallarg(size_t) old_size; - syscallarg(size_t) new_size; - syscallarg(u_long) flags; -}; - -/* - * 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 linux_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int linux_sys_waitpid __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_execve __P((struct proc *, void *, register_t *)); -int linux_sys_chdir __P((struct proc *, void *, register_t *)); -int linux_sys_time __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_break __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_alarm __P((struct proc *, void *, register_t *)); -int linux_sys_pause __P((struct proc *, void *, register_t *)); -int linux_sys_utime __P((struct proc *, void *, register_t *)); -int linux_sys_access __P((struct proc *, void *, register_t *)); -int linux_sys_nice __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 linux_sys_rename __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 sys_dup __P((struct proc *, void *, register_t *)); -int linux_sys_pipe __P((struct proc *, void *, register_t *)); -int linux_sys_times __P((struct proc *, void *, register_t *)); -int linux_sys_brk __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int linux_sys_signal __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int linux_sys_ioctl __P((struct proc *, void *, register_t *)); -int linux_sys_fcntl __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int linux_sys_oldolduname __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_dup2 __P((struct proc *, void *, register_t *)); -int sys_getppid __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int linux_sys_sigaction __P((struct proc *, void *, register_t *)); -int linux_sys_siggetmask __P((struct proc *, void *, register_t *)); -int linux_sys_sigsetmask __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_sigsuspend __P((struct proc *, void *, register_t *)); -int linux_sys_sigpending __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *)); -int sys_getrusage __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_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int linux_sys_oldselect __P((struct proc *, void *, register_t *)); -int linux_sys_symlink __P((struct proc *, void *, register_t *)); -int compat_43_sys_lstat __P((struct proc *, void *, register_t *)); -int linux_sys_readlink __P((struct proc *, void *, register_t *)); -int linux_sys_uselib __P((struct proc *, void *, register_t *)); -int compat_12_sys_swapon __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int linux_sys_readdir __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 linux_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int linux_sys_fchown __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_profil __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 *)); -#ifdef __i386__ -int linux_sys_ioperm __P((struct proc *, void *, register_t *)); -#else -#endif -int linux_sys_socketcall __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int sys_getitimer __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_fstat __P((struct proc *, void *, register_t *)); -int linux_sys_olduname __P((struct proc *, void *, register_t *)); -#ifdef __i386__ -int linux_sys_iopl __P((struct proc *, void *, register_t *)); -#else -#endif -int linux_sys_wait4 __P((struct proc *, void *, register_t *)); -int linux_sys_ipc __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int linux_sys_sigreturn __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int linux_sys_uname __P((struct proc *, void *, register_t *)); -#ifdef __i386__ -int linux_sys_modify_ldt __P((struct proc *, void *, register_t *)); -#else -#endif -int sys_mprotect __P((struct proc *, void *, register_t *)); -int linux_sys_sigprocmask __P((struct proc *, void *, register_t *)); -int linux_sys_getpgid __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int linux_sys_personality __P((struct proc *, void *, register_t *)); -int linux_sys_llseek __P((struct proc *, void *, register_t *)); -int linux_sys_getdents __P((struct proc *, void *, register_t *)); -int linux_sys_select __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int linux_sys_msync __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 sys_getsid __P((struct proc *, void *, register_t *)); -int linux_sys_fdatasync __P((struct proc *, void *, register_t *)); -int linux_sys___sysctl __P((struct proc *, void *, register_t *)); -int sys_mlock __P((struct proc *, void *, register_t *)); -int sys_munlock __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 *)); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c deleted file mode 100644 index a3dfea70dba..00000000000 --- a/sys/compat/linux/linux_syscalls.c +++ /dev/null @@ -1,199 +0,0 @@ -/* $NetBSD: linux_syscalls.c,v 1.30 1998/09/11 23:14:58 mycroft Exp $ */ - -/* - * System call names. - * - * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft 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_syscallargs.h> -#include <machine/linux_machdep.h> -#endif /* _KERNEL && ! _LKM */ - -char *linux_syscallnames[] = { - "syscall", /* 0 = syscall */ - "exit", /* 1 = exit */ - "fork", /* 2 = fork */ - "read", /* 3 = read */ - "write", /* 4 = write */ - "open", /* 5 = open */ - "close", /* 6 = close */ - "waitpid", /* 7 = waitpid */ - "creat", /* 8 = creat */ - "link", /* 9 = link */ - "unlink", /* 10 = unlink */ - "execve", /* 11 = execve */ - "chdir", /* 12 = chdir */ - "time", /* 13 = time */ - "mknod", /* 14 = mknod */ - "chmod", /* 15 = chmod */ - "chown", /* 16 = chown */ - "break", /* 17 = break */ - "#18 (obsolete ostat)", /* 18 = obsolete ostat */ - "lseek", /* 19 = lseek */ - "getpid", /* 20 = getpid */ - "#21 (unimplemented mount)", /* 21 = unimplemented mount */ - "#22 (unimplemented umount)", /* 22 = unimplemented umount */ - "setuid", /* 23 = setuid */ - "getuid", /* 24 = getuid */ - "#25 (unimplemented stime)", /* 25 = unimplemented stime */ - "#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */ - "alarm", /* 27 = alarm */ - "#28 (obsolete ofstat)", /* 28 = obsolete ofstat */ - "pause", /* 29 = pause */ - "utime", /* 30 = utime */ - "#31 (unimplemented stty)", /* 31 = unimplemented stty */ - "#32 (unimplemented gtty)", /* 32 = unimplemented gtty */ - "access", /* 33 = access */ - "nice", /* 34 = nice */ - "#35 (unimplemented ftime)", /* 35 = unimplemented ftime */ - "sync", /* 36 = sync */ - "kill", /* 37 = kill */ - "rename", /* 38 = rename */ - "mkdir", /* 39 = mkdir */ - "rmdir", /* 40 = rmdir */ - "dup", /* 41 = dup */ - "pipe", /* 42 = pipe */ - "times", /* 43 = times */ - "#44 (unimplemented prof)", /* 44 = unimplemented prof */ - "brk", /* 45 = brk */ - "setgid", /* 46 = setgid */ - "getgid", /* 47 = getgid */ - "signal", /* 48 = signal */ - "geteuid", /* 49 = geteuid */ - "getegid", /* 50 = getegid */ - "acct", /* 51 = acct */ - "#52 (unimplemented phys)", /* 52 = unimplemented phys */ - "#53 (unimplemented lock)", /* 53 = unimplemented lock */ - "ioctl", /* 54 = ioctl */ - "fcntl", /* 55 = fcntl */ - "#56 (unimplemented mpx)", /* 56 = unimplemented mpx */ - "setpgid", /* 57 = setpgid */ - "#58 (unimplemented ulimit)", /* 58 = unimplemented ulimit */ - "oldolduname", /* 59 = oldolduname */ - "umask", /* 60 = umask */ - "chroot", /* 61 = chroot */ - "#62 (unimplemented ustat)", /* 62 = unimplemented ustat */ - "dup2", /* 63 = dup2 */ - "getppid", /* 64 = getppid */ - "getpgrp", /* 65 = getpgrp */ - "setsid", /* 66 = setsid */ - "sigaction", /* 67 = sigaction */ - "siggetmask", /* 68 = siggetmask */ - "sigsetmask", /* 69 = sigsetmask */ - "setreuid", /* 70 = setreuid */ - "setregid", /* 71 = setregid */ - "sigsuspend", /* 72 = sigsuspend */ - "sigpending", /* 73 = sigpending */ - "sethostname", /* 74 = sethostname */ - "setrlimit", /* 75 = setrlimit */ - "getrlimit", /* 76 = getrlimit */ - "getrusage", /* 77 = getrusage */ - "gettimeofday", /* 78 = gettimeofday */ - "settimeofday", /* 79 = settimeofday */ - "getgroups", /* 80 = getgroups */ - "setgroups", /* 81 = setgroups */ - "oldselect", /* 82 = oldselect */ - "symlink", /* 83 = symlink */ - "oolstat", /* 84 = oolstat */ - "readlink", /* 85 = readlink */ - "uselib", /* 86 = uselib */ - "swapon", /* 87 = swapon */ - "reboot", /* 88 = reboot */ - "readdir", /* 89 = readdir */ - "mmap", /* 90 = mmap */ - "munmap", /* 91 = munmap */ - "truncate", /* 92 = truncate */ - "ftruncate", /* 93 = ftruncate */ - "fchmod", /* 94 = fchmod */ - "fchown", /* 95 = fchown */ - "getpriority", /* 96 = getpriority */ - "setpriority", /* 97 = setpriority */ - "profil", /* 98 = profil */ - "statfs", /* 99 = statfs */ - "fstatfs", /* 100 = fstatfs */ -#ifdef __i386__ - "ioperm", /* 101 = ioperm */ -#else - "#101 (unimplemented ioperm)", /* 101 = unimplemented ioperm */ -#endif - "socketcall", /* 102 = socketcall */ - "#103 (unimplemented klog)", /* 103 = unimplemented klog */ - "setitimer", /* 104 = setitimer */ - "getitimer", /* 105 = getitimer */ - "stat", /* 106 = stat */ - "lstat", /* 107 = lstat */ - "fstat", /* 108 = fstat */ - "olduname", /* 109 = olduname */ -#ifdef __i386__ - "iopl", /* 110 = iopl */ -#else - "#110 (unimplemented iopl)", /* 110 = unimplemented iopl */ -#endif - "#111 (unimplemented vhangup)", /* 111 = unimplemented vhangup */ - "#112 (unimplemented idle)", /* 112 = unimplemented idle */ - "#113 (unimplemented vm86)", /* 113 = unimplemented vm86 */ - "wait4", /* 114 = wait4 */ - "#115 (unimplemented swapoff)", /* 115 = unimplemented swapoff */ - "#116 (unimplemented sysinfo)", /* 116 = unimplemented sysinfo */ - "ipc", /* 117 = ipc */ - "fsync", /* 118 = fsync */ - "sigreturn", /* 119 = sigreturn */ - "#120 (unimplemented clone)", /* 120 = unimplemented clone */ - "setdomainname", /* 121 = setdomainname */ - "uname", /* 122 = uname */ -#ifdef __i386__ - "modify_ldt", /* 123 = modify_ldt */ -#else - "#123 (unimplemented modify_ldt)", /* 123 = unimplemented modify_ldt */ -#endif - "#124 (unimplemented adjtimex)", /* 124 = unimplemented adjtimex */ - "mprotect", /* 125 = mprotect */ - "sigprocmask", /* 126 = sigprocmask */ - "#127 (unimplemented create_module)", /* 127 = unimplemented create_module */ - "#128 (unimplemented init_module)", /* 128 = unimplemented init_module */ - "#129 (unimplemented delete_module)", /* 129 = unimplemented delete_module */ - "#130 (unimplemented get_kernel_syms)", /* 130 = unimplemented get_kernel_syms */ - "#131 (unimplemented quotactl)", /* 131 = unimplemented quotactl */ - "getpgid", /* 132 = getpgid */ - "fchdir", /* 133 = fchdir */ - "#134 (unimplemented bdflush)", /* 134 = unimplemented bdflush */ - "#135 (unimplemented sysfs)", /* 135 = unimplemented sysfs */ - "personality", /* 136 = personality */ - "#137 (unimplemented afs_syscall)", /* 137 = unimplemented afs_syscall */ - "#138 (unimplemented setfsuid)", /* 138 = unimplemented setfsuid */ - "#139 (unimplemented getfsuid)", /* 139 = unimplemented getfsuid */ - "llseek", /* 140 = llseek */ - "getdents", /* 141 = getdents */ - "select", /* 142 = select */ - "flock", /* 143 = flock */ - "msync", /* 144 = msync */ - "readv", /* 145 = readv */ - "writev", /* 146 = writev */ - "getsid", /* 147 = getsid */ - "fdatasync", /* 148 = fdatasync */ - "__sysctl", /* 149 = __sysctl */ - "mlock", /* 150 = mlock */ - "munlock", /* 151 = munlock */ - "#152 (unimplemented mlockall)", /* 152 = unimplemented mlockall */ - "#153 (unimplemented munlockall)", /* 153 = unimplemented munlockall */ - "#154 (unimplemented sched_setparam)", /* 154 = unimplemented sched_setparam */ - "#155 (unimplemented sched_getparam)", /* 155 = unimplemented sched_getparam */ - "#156 (unimplemented sched_setscheduler)", /* 156 = unimplemented sched_setscheduler */ - "#157 (unimplemented sched_getscheduler)", /* 157 = unimplemented sched_getscheduler */ - "#158 (unimplemented sched_yield)", /* 158 = unimplemented sched_yield */ - "#159 (unimplemented sched_get_priority_max)", /* 159 = unimplemented sched_get_priority_max */ - "#160 (unimplemented sched_get_priority_min)", /* 160 = unimplemented sched_get_priority_min */ - "#161 (unimplemented sched_rr_get_interval)", /* 161 = unimplemented sched_rr_get_interval */ - "nanosleep", /* 162 = nanosleep */ - "mremap", /* 163 = mremap */ -}; diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c deleted file mode 100644 index 11a9ca497a4..00000000000 --- a/sys/compat/linux/linux_sysent.c +++ /dev/null @@ -1,367 +0,0 @@ -/* $NetBSD: linux_sysent.c,v 1.33 1998/09/11 23:14:58 mycroft Exp $ */ - -/* - * System call switch table. - * - * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.25 1998/09/11 12:50:09 mycroft 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_syscallargs.h> -#include <machine/linux_machdep.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 */ - { 3, s(struct linux_sys_open_args), - linux_sys_open }, /* 5 = open */ - { 1, s(struct sys_close_args), - sys_close }, /* 6 = close */ - { 3, s(struct linux_sys_waitpid_args), - linux_sys_waitpid }, /* 7 = waitpid */ - { 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 */ - { 3, s(struct linux_sys_execve_args), - linux_sys_execve }, /* 11 = execve */ - { 1, s(struct linux_sys_chdir_args), - linux_sys_chdir }, /* 12 = chdir */ - { 1, s(struct linux_sys_time_args), - linux_sys_time }, /* 13 = time */ - { 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_break_args), - linux_sys_break }, /* 17 = break */ - { 0, 0, - sys_nosys }, /* 18 = obsolete ostat */ - { 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 mount */ - { 0, 0, - sys_nosys }, /* 22 = unimplemented umount */ - { 1, s(struct sys_setuid_args), - sys_setuid }, /* 23 = setuid */ - { 0, 0, - sys_getuid }, /* 24 = getuid */ - { 0, 0, - sys_nosys }, /* 25 = unimplemented stime */ - { 0, 0, - sys_nosys }, /* 26 = unimplemented ptrace */ - { 1, s(struct linux_sys_alarm_args), - linux_sys_alarm }, /* 27 = alarm */ - { 0, 0, - sys_nosys }, /* 28 = obsolete ofstat */ - { 0, 0, - linux_sys_pause }, /* 29 = pause */ - { 2, s(struct linux_sys_utime_args), - linux_sys_utime }, /* 30 = utime */ - { 0, 0, - sys_nosys }, /* 31 = unimplemented stty */ - { 0, 0, - sys_nosys }, /* 32 = unimplemented gtty */ - { 2, s(struct linux_sys_access_args), - linux_sys_access }, /* 33 = access */ - { 1, s(struct linux_sys_nice_args), - linux_sys_nice }, /* 34 = nice */ - { 0, 0, - sys_nosys }, /* 35 = unimplemented ftime */ - { 0, 0, - sys_sync }, /* 36 = sync */ - { 2, s(struct linux_sys_kill_args), - linux_sys_kill }, /* 37 = kill */ - { 2, s(struct linux_sys_rename_args), - linux_sys_rename }, /* 38 = rename */ - { 2, s(struct linux_sys_mkdir_args), - linux_sys_mkdir }, /* 39 = mkdir */ - { 1, s(struct linux_sys_rmdir_args), - linux_sys_rmdir }, /* 40 = rmdir */ - { 1, s(struct sys_dup_args), - sys_dup }, /* 41 = dup */ - { 1, s(struct linux_sys_pipe_args), - linux_sys_pipe }, /* 42 = pipe */ - { 1, s(struct linux_sys_times_args), - linux_sys_times }, /* 43 = times */ - { 0, 0, - sys_nosys }, /* 44 = unimplemented prof */ - { 1, s(struct linux_sys_brk_args), - linux_sys_brk }, /* 45 = brk */ - { 1, s(struct sys_setgid_args), - sys_setgid }, /* 46 = setgid */ - { 0, 0, - sys_getgid }, /* 47 = getgid */ - { 2, s(struct linux_sys_signal_args), - linux_sys_signal }, /* 48 = signal */ - { 0, 0, - sys_geteuid }, /* 49 = geteuid */ - { 0, 0, - sys_getegid }, /* 50 = getegid */ - { 1, s(struct sys_acct_args), - sys_acct }, /* 51 = acct */ - { 0, 0, - sys_nosys }, /* 52 = unimplemented phys */ - { 0, 0, - sys_nosys }, /* 53 = unimplemented lock */ - { 3, s(struct linux_sys_ioctl_args), - linux_sys_ioctl }, /* 54 = ioctl */ - { 3, s(struct linux_sys_fcntl_args), - linux_sys_fcntl }, /* 55 = fcntl */ - { 0, 0, - sys_nosys }, /* 56 = unimplemented mpx */ - { 2, s(struct sys_setpgid_args), - sys_setpgid }, /* 57 = setpgid */ - { 0, 0, - sys_nosys }, /* 58 = unimplemented ulimit */ - { 1, s(struct linux_sys_oldolduname_args), - linux_sys_oldolduname }, /* 59 = oldolduname */ - { 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 ustat */ - { 2, s(struct sys_dup2_args), - sys_dup2 }, /* 63 = dup2 */ - { 0, 0, - sys_getppid }, /* 64 = getppid */ - { 0, 0, - sys_getpgrp }, /* 65 = getpgrp */ - { 0, 0, - sys_setsid }, /* 66 = setsid */ - { 3, s(struct linux_sys_sigaction_args), - linux_sys_sigaction }, /* 67 = sigaction */ - { 0, 0, - linux_sys_siggetmask }, /* 68 = siggetmask */ - { 1, s(struct linux_sys_sigsetmask_args), - linux_sys_sigsetmask }, /* 69 = sigsetmask */ - { 2, s(struct linux_sys_setreuid_args), - linux_sys_setreuid }, /* 70 = setreuid */ - { 2, s(struct linux_sys_setregid_args), - linux_sys_setregid }, /* 71 = setregid */ - { 3, s(struct linux_sys_sigsuspend_args), - linux_sys_sigsuspend }, /* 72 = sigsuspend */ - { 1, s(struct linux_sys_sigpending_args), - linux_sys_sigpending }, /* 73 = sigpending */ - { 2, s(struct compat_43_sys_sethostname_args), - compat_43_sys_sethostname }, /* 74 = sethostname */ - { 2, s(struct compat_43_sys_setrlimit_args), - compat_43_sys_setrlimit }, /* 75 = setrlimit */ - { 2, s(struct compat_43_sys_getrlimit_args), - compat_43_sys_getrlimit }, /* 76 = getrlimit */ - { 2, s(struct sys_getrusage_args), - sys_getrusage }, /* 77 = getrusage */ - { 2, s(struct sys_gettimeofday_args), - sys_gettimeofday }, /* 78 = gettimeofday */ - { 2, s(struct sys_settimeofday_args), - sys_settimeofday }, /* 79 = settimeofday */ - { 2, s(struct sys_getgroups_args), - sys_getgroups }, /* 80 = getgroups */ - { 2, s(struct sys_setgroups_args), - sys_setgroups }, /* 81 = setgroups */ - { 1, s(struct linux_sys_oldselect_args), - linux_sys_oldselect }, /* 82 = oldselect */ - { 2, s(struct linux_sys_symlink_args), - linux_sys_symlink }, /* 83 = symlink */ - { 2, s(struct compat_43_sys_lstat_args), - compat_43_sys_lstat }, /* 84 = oolstat */ - { 3, s(struct linux_sys_readlink_args), - linux_sys_readlink }, /* 85 = readlink */ - { 1, s(struct linux_sys_uselib_args), - linux_sys_uselib }, /* 86 = uselib */ - { 1, s(struct compat_12_sys_swapon_args), - compat_12_sys_swapon }, /* 87 = swapon */ - { 1, s(struct sys_reboot_args), - sys_reboot }, /* 88 = reboot */ - { 3, s(struct linux_sys_readdir_args), - linux_sys_readdir }, /* 89 = readdir */ - { 1, s(struct linux_sys_mmap_args), - linux_sys_mmap }, /* 90 = mmap */ - { 2, s(struct sys_munmap_args), - sys_munmap }, /* 91 = munmap */ - { 2, s(struct linux_sys_truncate_args), - linux_sys_truncate }, /* 92 = truncate */ - { 2, s(struct compat_43_sys_ftruncate_args), - compat_43_sys_ftruncate }, /* 93 = ftruncate */ - { 2, s(struct sys_fchmod_args), - sys_fchmod }, /* 94 = fchmod */ - { 3, s(struct linux_sys_fchown_args), - linux_sys_fchown }, /* 95 = fchown */ - { 2, s(struct sys_getpriority_args), - sys_getpriority }, /* 96 = getpriority */ - { 3, s(struct sys_setpriority_args), - sys_setpriority }, /* 97 = setpriority */ - { 4, s(struct sys_profil_args), - sys_profil }, /* 98 = profil */ - { 2, s(struct linux_sys_statfs_args), - linux_sys_statfs }, /* 99 = statfs */ - { 2, s(struct linux_sys_fstatfs_args), - linux_sys_fstatfs }, /* 100 = fstatfs */ -#ifdef __i386__ - { 3, s(struct linux_sys_ioperm_args), - linux_sys_ioperm }, /* 101 = ioperm */ -#else - { 0, 0, - sys_nosys }, /* 101 = unimplemented ioperm */ -#endif - { 2, s(struct linux_sys_socketcall_args), - linux_sys_socketcall }, /* 102 = socketcall */ - { 0, 0, - sys_nosys }, /* 103 = unimplemented klog */ - { 3, s(struct sys_setitimer_args), - sys_setitimer }, /* 104 = setitimer */ - { 2, s(struct sys_getitimer_args), - sys_getitimer }, /* 105 = getitimer */ - { 2, s(struct linux_sys_stat_args), - linux_sys_stat }, /* 106 = stat */ - { 2, s(struct linux_sys_lstat_args), - linux_sys_lstat }, /* 107 = lstat */ - { 2, s(struct linux_sys_fstat_args), - linux_sys_fstat }, /* 108 = fstat */ - { 1, s(struct linux_sys_olduname_args), - linux_sys_olduname }, /* 109 = olduname */ -#ifdef __i386__ - { 1, s(struct linux_sys_iopl_args), - linux_sys_iopl }, /* 110 = iopl */ -#else - { 0, 0, - sys_nosys }, /* 110 = unimplemented iopl */ -#endif - { 0, 0, - sys_nosys }, /* 111 = unimplemented vhangup */ - { 0, 0, - sys_nosys }, /* 112 = unimplemented idle */ - { 0, 0, - sys_nosys }, /* 113 = unimplemented vm86 */ - { 4, s(struct linux_sys_wait4_args), - linux_sys_wait4 }, /* 114 = wait4 */ - { 0, 0, - sys_nosys }, /* 115 = unimplemented swapoff */ - { 0, 0, - sys_nosys }, /* 116 = unimplemented sysinfo */ - { 5, s(struct linux_sys_ipc_args), - linux_sys_ipc }, /* 117 = ipc */ - { 1, s(struct sys_fsync_args), - sys_fsync }, /* 118 = fsync */ - { 1, s(struct linux_sys_sigreturn_args), - linux_sys_sigreturn }, /* 119 = sigreturn */ - { 0, 0, - sys_nosys }, /* 120 = unimplemented clone */ - { 2, s(struct compat_09_sys_setdomainname_args), - compat_09_sys_setdomainname }, /* 121 = setdomainname */ - { 1, s(struct linux_sys_uname_args), - linux_sys_uname }, /* 122 = uname */ -#ifdef __i386__ - { 3, s(struct linux_sys_modify_ldt_args), - linux_sys_modify_ldt }, /* 123 = modify_ldt */ -#else - { 0, 0, - sys_nosys }, /* 123 = unimplemented modify_ldt */ -#endif - { 0, 0, - sys_nosys }, /* 124 = unimplemented adjtimex */ - { 3, s(struct sys_mprotect_args), - sys_mprotect }, /* 125 = mprotect */ - { 3, s(struct linux_sys_sigprocmask_args), - linux_sys_sigprocmask }, /* 126 = sigprocmask */ - { 0, 0, - sys_nosys }, /* 127 = unimplemented create_module */ - { 0, 0, - sys_nosys }, /* 128 = unimplemented init_module */ - { 0, 0, - sys_nosys }, /* 129 = unimplemented delete_module */ - { 0, 0, - sys_nosys }, /* 130 = unimplemented get_kernel_syms */ - { 0, 0, - sys_nosys }, /* 131 = unimplemented quotactl */ - { 1, s(struct linux_sys_getpgid_args), - linux_sys_getpgid }, /* 132 = getpgid */ - { 1, s(struct sys_fchdir_args), - sys_fchdir }, /* 133 = fchdir */ - { 0, 0, - sys_nosys }, /* 134 = unimplemented bdflush */ - { 0, 0, - sys_nosys }, /* 135 = unimplemented sysfs */ - { 1, s(struct linux_sys_personality_args), - linux_sys_personality }, /* 136 = personality */ - { 0, 0, - sys_nosys }, /* 137 = unimplemented afs_syscall */ - { 0, 0, - sys_nosys }, /* 138 = unimplemented setfsuid */ - { 0, 0, - sys_nosys }, /* 139 = unimplemented getfsuid */ - { 5, s(struct linux_sys_llseek_args), - linux_sys_llseek }, /* 140 = llseek */ - { 3, s(struct linux_sys_getdents_args), - linux_sys_getdents }, /* 141 = getdents */ - { 5, s(struct linux_sys_select_args), - linux_sys_select }, /* 142 = select */ - { 2, s(struct sys_flock_args), - sys_flock }, /* 143 = flock */ - { 3, s(struct linux_sys_msync_args), - linux_sys_msync }, /* 144 = msync */ - { 3, s(struct sys_readv_args), - sys_readv }, /* 145 = readv */ - { 3, s(struct sys_writev_args), - sys_writev }, /* 146 = writev */ - { 1, s(struct sys_getsid_args), - sys_getsid }, /* 147 = getsid */ - { 1, s(struct linux_sys_fdatasync_args), - linux_sys_fdatasync }, /* 148 = fdatasync */ - { 1, s(struct linux_sys___sysctl_args), - linux_sys___sysctl }, /* 149 = __sysctl */ - { 2, s(struct sys_mlock_args), - sys_mlock }, /* 150 = mlock */ - { 2, s(struct sys_munlock_args), - sys_munlock }, /* 151 = munlock */ - { 0, 0, - sys_nosys }, /* 152 = unimplemented mlockall */ - { 0, 0, - sys_nosys }, /* 153 = unimplemented munlockall */ - { 0, 0, - sys_nosys }, /* 154 = unimplemented sched_setparam */ - { 0, 0, - sys_nosys }, /* 155 = unimplemented sched_getparam */ - { 0, 0, - sys_nosys }, /* 156 = unimplemented sched_setscheduler */ - { 0, 0, - sys_nosys }, /* 157 = unimplemented sched_getscheduler */ - { 0, 0, - sys_nosys }, /* 158 = unimplemented sched_yield */ - { 0, 0, - sys_nosys }, /* 159 = unimplemented sched_get_priority_max */ - { 0, 0, - sys_nosys }, /* 160 = unimplemented sched_get_priority_min */ - { 0, 0, - sys_nosys }, /* 161 = unimplemented sched_rr_get_interval */ - { 2, s(struct sys_nanosleep_args), - sys_nanosleep }, /* 162 = nanosleep */ - { 4, s(struct linux_sys_mremap_args), - linux_sys_mremap }, /* 163 = mremap */ -}; - |
