diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 182 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 62 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 114 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 120 |
4 files changed, 363 insertions, 115 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 93cb5dc20dd..76777b6c91b 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscall.h,v 1.23 2000/06/07 14:23:07 niklas Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.24 2000/07/07 02:14:05 jasoni Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.24 2000/06/07 14:11:38 niklas Exp + * created from OpenBSD: syscalls.master,v 1.25 2000/07/07 02:13:40 jasoni Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -61,7 +61,9 @@ /* syscall: "break" ret: "int" args: "char *" */ #define LINUX_SYS_break 17 - /* 18 is obsolete ostat */ +/* syscall: "ostat" ret: "int" args: */ +#define LINUX_SYS_ostat 18 + /* syscall: "lseek" ret: "long" args: "int" "long" "int" */ #define LINUX_SYS_lseek 19 @@ -83,22 +85,36 @@ /* syscall: "stime" ret: "int" args: "linux_time_t *" */ #define LINUX_SYS_stime 25 +/* syscall: "ptrace" ret: "int" args: */ +#define LINUX_SYS_ptrace 26 + /* syscall: "alarm" ret: "int" args: "unsigned int" */ #define LINUX_SYS_alarm 27 - /* 28 is obsolete ofstat */ +/* syscall: "ofstat" ret: "int" args: */ +#define LINUX_SYS_ofstat 28 + /* 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: "stty" ret: "int" args: */ +#define LINUX_SYS_stty 31 + +/* syscall: "gtty" ret: "int" args: */ +#define LINUX_SYS_gtty 32 + /* syscall: "access" ret: "int" args: "char *" "int" */ #define LINUX_SYS_access 33 /* syscall: "nice" ret: "int" args: "int" */ #define LINUX_SYS_nice 34 +/* syscall: "ftime" ret: "int" args: */ +#define LINUX_SYS_ftime 35 + /* syscall: "sync" ret: "int" args: */ #define LINUX_SYS_sync 36 @@ -123,6 +139,9 @@ /* syscall: "times" ret: "int" args: "struct times *" */ #define LINUX_SYS_times 43 +/* syscall: "prof" ret: "int" args: */ +#define LINUX_SYS_prof 44 + /* syscall: "brk" ret: "int" args: "char *" */ #define LINUX_SYS_brk 45 @@ -144,15 +163,27 @@ /* syscall: "acct" ret: "int" args: "char *" */ #define LINUX_SYS_acct 51 +/* syscall: "phys" ret: "int" args: */ +#define LINUX_SYS_phys 52 + +/* syscall: "lock" ret: "int" args: */ +#define LINUX_SYS_lock 53 + /* 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: "mpx" ret: "int" args: */ +#define LINUX_SYS_mpx 56 + /* syscall: "setpgid" ret: "int" args: "int" "int" */ #define LINUX_SYS_setpgid 57 +/* syscall: "ulimit" ret: "int" args: */ +#define LINUX_SYS_ulimit 58 + /* syscall: "oldolduname" ret: "int" args: "struct linux_oldold_utsname *" */ #define LINUX_SYS_oldolduname 59 @@ -162,6 +193,9 @@ /* syscall: "chroot" ret: "int" args: "char *" */ #define LINUX_SYS_chroot 61 +/* syscall: "ustat" ret: "int" args: */ +#define LINUX_SYS_ustat 62 + /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ #define LINUX_SYS_dup2 63 @@ -279,9 +313,15 @@ /* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */ #define LINUX_SYS_ioperm 101 +/* syscall: "ioperm" ret: "int" args: */ +#define LINUX_SYS_ioperm 101 + /* syscall: "socketcall" ret: "int" args: "int" "void *" */ #define LINUX_SYS_socketcall 102 +/* syscall: "klog" ret: "int" args: */ +#define LINUX_SYS_klog 103 + /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ #define LINUX_SYS_setitimer 104 @@ -303,9 +343,27 @@ /* syscall: "iopl" ret: "int" args: "int" */ #define LINUX_SYS_iopl 110 +/* syscall: "iopl" ret: "int" args: */ +#define LINUX_SYS_iopl 110 + +/* syscall: "vhangup" ret: "int" args: */ +#define LINUX_SYS_vhangup 111 + +/* syscall: "idle" ret: "int" args: */ +#define LINUX_SYS_idle 112 + +/* syscall: "vm86old" ret: "int" args: */ +#define LINUX_SYS_vm86old 113 + /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */ #define LINUX_SYS_wait4 114 +/* syscall: "swapoff" ret: "int" args: */ +#define LINUX_SYS_swapoff 115 + +/* syscall: "sysinfo" ret: "int" args: */ +#define LINUX_SYS_sysinfo 116 + /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */ #define LINUX_SYS_ipc 117 @@ -315,6 +373,9 @@ /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */ #define LINUX_SYS_sigreturn 119 +/* syscall: "clone" ret: "int" args: */ +#define LINUX_SYS_clone 120 + /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ #define LINUX_SYS_setdomainname 121 @@ -324,21 +385,51 @@ /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */ #define LINUX_SYS_modify_ldt 123 +/* syscall: "modify_ldt" ret: "int" args: */ +#define LINUX_SYS_modify_ldt 123 + +/* syscall: "adjtimex" ret: "int" args: */ +#define LINUX_SYS_adjtimex 124 + /* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */ #define LINUX_SYS_mprotect 125 /* syscall: "sigprocmask" ret: "int" args: "int" "linux_old_sigset_t *" "linux_old_sigset_t *" */ #define LINUX_SYS_sigprocmask 126 +/* syscall: "create_module" ret: "int" args: */ +#define LINUX_SYS_create_module 127 + +/* syscall: "init_module" ret: "int" args: */ +#define LINUX_SYS_init_module 128 + +/* syscall: "delete_module" ret: "int" args: */ +#define LINUX_SYS_delete_module 129 + +/* syscall: "get_kernel_syms" ret: "int" args: */ +#define LINUX_SYS_get_kernel_syms 130 + +/* syscall: "quotactl" ret: "int" args: */ +#define LINUX_SYS_quotactl 131 + /* syscall: "getpgid" ret: "int" args: "int" */ #define LINUX_SYS_getpgid 132 /* syscall: "fchdir" ret: "int" args: "int" */ #define LINUX_SYS_fchdir 133 +/* syscall: "bdflush" ret: "int" args: */ +#define LINUX_SYS_bdflush 134 + +/* syscall: "sysfs" ret: "int" args: */ +#define LINUX_SYS_sysfs 135 + /* syscall: "personality" ret: "int" args: "int" */ #define LINUX_SYS_personality 136 +/* syscall: "afs_syscall" ret: "int" args: */ +#define LINUX_SYS_afs_syscall 137 + /* syscall: "setfsuid" ret: "int" args: "uid_t" */ #define LINUX_SYS_setfsuid 138 @@ -381,6 +472,36 @@ /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */ #define LINUX_SYS_munlock 151 +/* syscall: "mlockall" ret: "int" args: */ +#define LINUX_SYS_mlockall 152 + +/* syscall: "munlockall" ret: "int" args: */ +#define LINUX_SYS_munlockall 153 + +/* syscall: "sched_setparam" ret: "int" args: */ +#define LINUX_SYS_sched_setparam 154 + +/* syscall: "sched_getparam" ret: "int" args: */ +#define LINUX_SYS_sched_getparam 155 + +/* syscall: "sched_setscheduler" ret: "int" args: */ +#define LINUX_SYS_sched_setscheduler 156 + +/* syscall: "sched_getscheduler" ret: "int" args: */ +#define LINUX_SYS_sched_getscheduler 157 + +/* syscall: "sched_yield" ret: "int" args: */ +#define LINUX_SYS_sched_yield 158 + +/* syscall: "sched_get_priority_max" ret: "int" args: */ +#define LINUX_SYS_sched_get_priority_max 159 + +/* syscall: "sched_get_priority_min" ret: "int" args: */ +#define LINUX_SYS_sched_get_priority_min 160 + +/* syscall: "sched_rr_get_interval" ret: "int" args: */ +#define LINUX_SYS_sched_rr_get_interval 161 + /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ #define LINUX_SYS_nanosleep 162 @@ -393,15 +514,27 @@ /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */ #define LINUX_SYS_getresuid 165 +/* syscall: "vm86" ret: "int" args: */ +#define LINUX_SYS_vm86 166 + +/* syscall: "query_module" ret: "int" args: */ +#define LINUX_SYS_query_module 167 + /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ #define LINUX_SYS_poll 168 +/* syscall: "nfsservctl" ret: "int" args: */ +#define LINUX_SYS_nfsservctl 169 + /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ #define LINUX_SYS_setresgid 170 /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */ #define LINUX_SYS_getresgid 171 +/* syscall: "prctl" ret: "int" args: */ +#define LINUX_SYS_prctl 172 + /* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */ #define LINUX_SYS_rt_sigreturn 173 @@ -414,6 +547,12 @@ /* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */ #define LINUX_SYS_rt_sigpending 176 +/* syscall: "rt_sigtimedwait" ret: "int" args: */ +#define LINUX_SYS_rt_sigtimedwait 177 + +/* syscall: "rt_queueinfo" ret: "int" args: */ +#define LINUX_SYS_rt_queueinfo 178 + /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */ #define LINUX_SYS_rt_sigsuspend 179 @@ -429,13 +568,46 @@ /* syscall: "getcwd" ret: "int" args: "char *" "size_t" */ #define LINUX_SYS_getcwd 183 +/* syscall: "capget" ret: "int" args: */ +#define LINUX_SYS_capget 184 + +/* syscall: "capset" ret: "int" args: */ +#define LINUX_SYS_capset 185 + /* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */ #define LINUX_SYS_sigaltstack 186 +/* syscall: "sendfile" ret: "int" args: */ +#define LINUX_SYS_sendfile 187 + +/* syscall: "getpmsg" ret: "int" args: */ +#define LINUX_SYS_getpmsg 188 + +/* syscall: "putpmsg" ret: "int" args: */ +#define LINUX_SYS_putpmsg 189 + /* syscall: "vfork" ret: "int" args: */ #define LINUX_SYS_vfork 190 /* syscall: "ugetrlimit" ret: "int" args: "u_int" "struct linux_rlimit *" */ #define LINUX_SYS_ugetrlimit 191 -#define LINUX_SYS_MAXSYSCALL 192 +/* syscall: "mmap2" ret: "int" args: */ +#define LINUX_SYS_mmap2 192 + +/* syscall: "truncate64" ret: "int" args: */ +#define LINUX_SYS_truncate64 193 + +/* syscall: "ftruncate64" ret: "int" args: */ +#define LINUX_SYS_ftruncate64 194 + +/* syscall: "stat64" ret: "int" args: */ +#define LINUX_SYS_stat64 195 + +/* syscall: "lstat64" ret: "int" args: */ +#define LINUX_SYS_lstat64 196 + +/* syscall: "fstat64" ret: "int" args: */ +#define LINUX_SYS_fstat64 197 + +#define LINUX_SYS_MAXSYSCALL 198 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index a8d02ab8800..eb4d038e001 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.24 2000/06/07 14:23:07 niklas Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.25 2000/07/07 02:14:05 jasoni Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.24 2000/06/07 14:11:38 niklas Exp + * created from OpenBSD: syscalls.master,v 1.25 2000/07/07 02:13:40 jasoni Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -472,6 +472,7 @@ int linux_sys_mknod __P((struct proc *, void *, register_t *)); int linux_sys_chmod __P((struct proc *, void *, register_t *)); int linux_sys_lchown __P((struct proc *, void *, register_t *)); int linux_sys_break __P((struct proc *, void *, register_t *)); +int linux_sys_ostat __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 linux_sys_mount __P((struct proc *, void *, register_t *)); @@ -479,11 +480,16 @@ int linux_sys_umount __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_stime __P((struct proc *, void *, register_t *)); +int linux_sys_ptrace __P((struct proc *, void *, register_t *)); int linux_sys_alarm __P((struct proc *, void *, register_t *)); +int linux_sys_ofstat __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_stty __P((struct proc *, void *, register_t *)); +int linux_sys_gtty __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 linux_sys_ftime __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 *)); @@ -492,6 +498,7 @@ 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_prof __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 *)); @@ -499,12 +506,17 @@ 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_phys __P((struct proc *, void *, register_t *)); +int linux_sys_lock __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 linux_sys_mpx __P((struct proc *, void *, register_t *)); int sys_setpgid __P((struct proc *, void *, register_t *)); +int linux_sys_ulimit __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 linux_sys_ustat __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 *)); @@ -546,8 +558,10 @@ int linux_sys_fstatfs __P((struct proc *, void *, register_t *)); #ifdef __i386__ int linux_sys_ioperm __P((struct proc *, void *, register_t *)); #else +int linux_sys_ioperm __P((struct proc *, void *, register_t *)); #endif int linux_sys_socketcall __P((struct proc *, void *, register_t *)); +int linux_sys_klog __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 *)); @@ -557,22 +571,39 @@ int linux_sys_olduname __P((struct proc *, void *, register_t *)); #ifdef __i386__ int linux_sys_iopl __P((struct proc *, void *, register_t *)); #else +int linux_sys_iopl __P((struct proc *, void *, register_t *)); #endif +int linux_sys_vhangup __P((struct proc *, void *, register_t *)); +int linux_sys_idle __P((struct proc *, void *, register_t *)); +int linux_sys_vm86old __P((struct proc *, void *, register_t *)); int linux_sys_wait4 __P((struct proc *, void *, register_t *)); +int linux_sys_swapoff __P((struct proc *, void *, register_t *)); +int linux_sys_sysinfo __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 linux_sys_clone __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 +int linux_sys_modify_ldt __P((struct proc *, void *, register_t *)); #endif +int linux_sys_adjtimex __P((struct proc *, void *, register_t *)); int sys_mprotect __P((struct proc *, void *, register_t *)); int linux_sys_sigprocmask __P((struct proc *, void *, register_t *)); +int linux_sys_create_module __P((struct proc *, void *, register_t *)); +int linux_sys_init_module __P((struct proc *, void *, register_t *)); +int linux_sys_delete_module __P((struct proc *, void *, register_t *)); +int linux_sys_get_kernel_syms __P((struct proc *, void *, register_t *)); +int linux_sys_quotactl __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_bdflush __P((struct proc *, void *, register_t *)); +int linux_sys_sysfs __P((struct proc *, void *, register_t *)); int linux_sys_personality __P((struct proc *, void *, register_t *)); +int linux_sys_afs_syscall __P((struct proc *, void *, register_t *)); int linux_sys_setfsuid __P((struct proc *, void *, register_t *)); int linux_sys_getfsuid __P((struct proc *, void *, register_t *)); int linux_sys_llseek __P((struct proc *, void *, register_t *)); @@ -587,22 +618,49 @@ 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 linux_sys_mlockall __P((struct proc *, void *, register_t *)); +int linux_sys_munlockall __P((struct proc *, void *, register_t *)); +int linux_sys_sched_setparam __P((struct proc *, void *, register_t *)); +int linux_sys_sched_getparam __P((struct proc *, void *, register_t *)); +int linux_sys_sched_setscheduler __P((struct proc *, void *, register_t *)); +int linux_sys_sched_getscheduler __P((struct proc *, void *, register_t *)); +int linux_sys_sched_yield __P((struct proc *, void *, register_t *)); +int linux_sys_sched_get_priority_max __P((struct proc *, void *, register_t *)); +int linux_sys_sched_get_priority_min __P((struct proc *, void *, register_t *)); +int linux_sys_sched_rr_get_interval __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_setresuid __P((struct proc *, void *, register_t *)); int linux_sys_getresuid __P((struct proc *, void *, register_t *)); +int linux_sys_vm86 __P((struct proc *, void *, register_t *)); +int linux_sys_query_module __P((struct proc *, void *, register_t *)); int sys_poll __P((struct proc *, void *, register_t *)); +int linux_sys_nfsservctl __P((struct proc *, void *, register_t *)); int linux_sys_setresgid __P((struct proc *, void *, register_t *)); int linux_sys_getresgid __P((struct proc *, void *, register_t *)); +int linux_sys_prctl __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_sigtimedwait __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_pread __P((struct proc *, void *, register_t *)); int linux_sys_pwrite __P((struct proc *, void *, register_t *)); int linux_sys_chown __P((struct proc *, void *, register_t *)); int linux_sys_getcwd __P((struct proc *, void *, register_t *)); +int linux_sys_capget __P((struct proc *, void *, register_t *)); +int linux_sys_capset __P((struct proc *, void *, register_t *)); int linux_sys_sigaltstack __P((struct proc *, void *, register_t *)); +int linux_sys_sendfile __P((struct proc *, void *, register_t *)); +int linux_sys_getpmsg __P((struct proc *, void *, register_t *)); +int linux_sys_putpmsg __P((struct proc *, void *, register_t *)); int sys_vfork __P((struct proc *, void *, register_t *)); int linux_sys_ugetrlimit __P((struct proc *, void *, register_t *)); +int linux_sys_mmap2 __P((struct proc *, void *, register_t *)); +int linux_sys_truncate64 __P((struct proc *, void *, register_t *)); +int linux_sys_ftruncate64 __P((struct proc *, void *, register_t *)); +int linux_sys_stat64 __P((struct proc *, void *, register_t *)); +int linux_sys_lstat64 __P((struct proc *, void *, register_t *)); +int linux_sys_fstat64 __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 5cb80e62627..8b27a3a0179 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscalls.c,v 1.23 2000/06/07 14:23:07 niklas Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.24 2000/07/07 02:14:05 jasoni Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.24 2000/06/07 14:11:38 niklas Exp + * created from OpenBSD: syscalls.master,v 1.25 2000/07/07 02:13:40 jasoni Exp */ char *linux_syscallnames[] = { @@ -26,7 +26,7 @@ char *linux_syscallnames[] = { "chmod", /* 15 = chmod */ "lchown", /* 16 = lchown */ "break", /* 17 = break */ - "#18 (obsolete ostat)", /* 18 = obsolete ostat */ + "ostat", /* 18 = ostat */ "lseek", /* 19 = lseek */ "getpid", /* 20 = getpid */ "mount", /* 21 = mount */ @@ -34,16 +34,16 @@ char *linux_syscallnames[] = { "setuid", /* 23 = setuid */ "getuid", /* 24 = getuid */ "stime", /* 25 = stime */ - "#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */ + "ptrace", /* 26 = ptrace */ "alarm", /* 27 = alarm */ - "#28 (obsolete ofstat)", /* 28 = obsolete ofstat */ + "ofstat", /* 28 = ofstat */ "pause", /* 29 = pause */ "utime", /* 30 = utime */ - "#31 (unimplemented stty)", /* 31 = unimplemented stty */ - "#32 (unimplemented gtty)", /* 32 = unimplemented gtty */ + "stty", /* 31 = stty */ + "gtty", /* 32 = gtty */ "access", /* 33 = access */ "nice", /* 34 = nice */ - "#35 (unimplemented ftime)", /* 35 = unimplemented ftime */ + "ftime", /* 35 = ftime */ "sync", /* 36 = sync */ "kill", /* 37 = kill */ "rename", /* 38 = rename */ @@ -52,7 +52,7 @@ char *linux_syscallnames[] = { "dup", /* 41 = dup */ "pipe", /* 42 = pipe */ "times", /* 43 = times */ - "#44 (unimplemented prof)", /* 44 = unimplemented prof */ + "prof", /* 44 = prof */ "brk", /* 45 = brk */ "setgid", /* 46 = setgid */ "getgid", /* 47 = getgid */ @@ -60,17 +60,17 @@ char *linux_syscallnames[] = { "geteuid", /* 49 = geteuid */ "getegid", /* 50 = getegid */ "acct", /* 51 = acct */ - "#52 (unimplemented phys)", /* 52 = unimplemented phys */ - "#53 (unimplemented lock)", /* 53 = unimplemented lock */ + "phys", /* 52 = phys */ + "lock", /* 53 = lock */ "ioctl", /* 54 = ioctl */ "fcntl", /* 55 = fcntl */ - "#56 (unimplemented mpx)", /* 56 = unimplemented mpx */ + "mpx", /* 56 = mpx */ "setpgid", /* 57 = setpgid */ - "#58 (unimplemented ulimit)", /* 58 = unimplemented ulimit */ + "ulimit", /* 58 = ulimit */ "oldolduname", /* 59 = oldolduname */ "umask", /* 60 = umask */ "chroot", /* 61 = chroot */ - "#62 (unimplemented ustat)", /* 62 = unimplemented ustat */ + "ustat", /* 62 = ustat */ "dup2", /* 63 = dup2 */ "getppid", /* 64 = getppid */ "getpgrp", /* 65 = getpgrp */ @@ -112,10 +112,10 @@ char *linux_syscallnames[] = { #ifdef __i386__ "ioperm", /* 101 = ioperm */ #else - "#101 (unimplemented ioperm)", /* 101 = unimplemented ioperm */ + "ioperm", /* 101 = ioperm */ #endif "socketcall", /* 102 = socketcall */ - "#103 (unimplemented klog)", /* 103 = unimplemented klog */ + "klog", /* 103 = klog */ "setitimer", /* 104 = setitimer */ "getitimer", /* 105 = getitimer */ "stat", /* 106 = stat */ @@ -125,39 +125,39 @@ char *linux_syscallnames[] = { #ifdef __i386__ "iopl", /* 110 = iopl */ #else - "#110 (unimplemented iopl)", /* 110 = unimplemented iopl */ + "iopl", /* 110 = iopl */ #endif - "#111 (unimplemented vhangup)", /* 111 = unimplemented vhangup */ - "#112 (unimplemented idle)", /* 112 = unimplemented idle */ - "#113 (unimplemented vm86)", /* 113 = unimplemented vm86 */ + "vhangup", /* 111 = vhangup */ + "idle", /* 112 = idle */ + "vm86old", /* 113 = vm86old */ "wait4", /* 114 = wait4 */ - "#115 (unimplemented swapoff)", /* 115 = unimplemented swapoff */ - "#116 (unimplemented sysinfo)", /* 116 = unimplemented sysinfo */ + "swapoff", /* 115 = swapoff */ + "sysinfo", /* 116 = sysinfo */ "ipc", /* 117 = ipc */ "fsync", /* 118 = fsync */ "sigreturn", /* 119 = sigreturn */ - "#120 (unimplemented clone)", /* 120 = unimplemented clone */ + "clone", /* 120 = clone */ "setdomainname", /* 121 = setdomainname */ "uname", /* 122 = uname */ #ifdef __i386__ "modify_ldt", /* 123 = modify_ldt */ #else - "#123 (unimplemented modify_ldt)", /* 123 = unimplemented modify_ldt */ + "modify_ldt", /* 123 = modify_ldt */ #endif - "#124 (unimplemented adjtimex)", /* 124 = unimplemented adjtimex */ + "adjtimex", /* 124 = 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 */ + "create_module", /* 127 = create_module */ + "init_module", /* 128 = init_module */ + "delete_module", /* 129 = delete_module */ + "get_kernel_syms", /* 130 = get_kernel_syms */ + "quotactl", /* 131 = quotactl */ "getpgid", /* 132 = getpgid */ "fchdir", /* 133 = fchdir */ - "#134 (unimplemented bdflush)", /* 134 = unimplemented bdflush */ - "#135 (unimplemented sysfs)", /* 135 = unimplemented sysfs */ + "bdflush", /* 134 = bdflush */ + "sysfs", /* 135 = sysfs */ "personality", /* 136 = personality */ - "#137 (unimplemented afs_syscall)", /* 137 = unimplemented afs_syscall */ + "afs_syscall", /* 137 = afs_syscall */ "setfsuid", /* 138 = setfsuid */ "getfsuid", /* 139 = getfsuid */ "llseek", /* 140 = llseek */ @@ -172,44 +172,50 @@ char *linux_syscallnames[] = { "__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 */ + "mlockall", /* 152 = mlockall */ + "munlockall", /* 153 = munlockall */ + "sched_setparam", /* 154 = sched_setparam */ + "sched_getparam", /* 155 = sched_getparam */ + "sched_setscheduler", /* 156 = sched_setscheduler */ + "sched_getscheduler", /* 157 = sched_getscheduler */ + "sched_yield", /* 158 = sched_yield */ + "sched_get_priority_max", /* 159 = sched_get_priority_max */ + "sched_get_priority_min", /* 160 = sched_get_priority_min */ + "sched_rr_get_interval", /* 161 = sched_rr_get_interval */ "nanosleep", /* 162 = nanosleep */ "mremap", /* 163 = mremap */ "setresuid", /* 164 = setresuid */ "getresuid", /* 165 = getresuid */ - "#166 (unimplemented vm86)", /* 166 = unimplemented vm86 */ - "#167 (unimplemented query_module)", /* 167 = unimplemented query_module */ + "vm86", /* 166 = vm86 */ + "query_module", /* 167 = query_module */ "poll", /* 168 = poll */ - "#169 (unimplemented nfsservctl)", /* 169 = unimplemented nfsservctl */ + "nfsservctl", /* 169 = nfsservctl */ "setresgid", /* 170 = setresgid */ "getresgid", /* 171 = getresgid */ - "#172 (unimplemented prctl)", /* 172 = unimplemented prctl */ + "prctl", /* 172 = prctl */ "rt_sigreturn", /* 173 = rt_sigreturn */ "rt_sigaction", /* 174 = rt_sigaction */ "rt_sigprocmask", /* 175 = rt_sigprocmask */ "rt_sigpending", /* 176 = rt_sigpending */ - "#177 (unimplemented rt_sigtimedwait)", /* 177 = unimplemented rt_sigtimedwait */ - "#178 (unimplemented rt_queueinfo)", /* 178 = unimplemented rt_queueinfo */ + "rt_sigtimedwait", /* 177 = rt_sigtimedwait */ + "rt_queueinfo", /* 178 = rt_queueinfo */ "rt_sigsuspend", /* 179 = rt_sigsuspend */ "pread", /* 180 = pread */ "pwrite", /* 181 = pwrite */ "chown", /* 182 = chown */ "getcwd", /* 183 = getcwd */ - "#184 (unimplemented capget)", /* 184 = unimplemented capget */ - "#185 (unimplemented capset)", /* 185 = unimplemented capset */ + "capget", /* 184 = capget */ + "capset", /* 185 = capset */ "sigaltstack", /* 186 = sigaltstack */ - "#187 (unimplemented sendfile)", /* 187 = unimplemented sendfile */ - "#188 (unimplemented getpmsg)", /* 188 = unimplemented getpmsg */ - "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ + "sendfile", /* 187 = sendfile */ + "getpmsg", /* 188 = getpmsg */ + "putpmsg", /* 189 = putpmsg */ "vfork", /* 190 = vfork */ "ugetrlimit", /* 191 = ugetrlimit */ + "mmap2", /* 192 = mmap2 */ + "truncate64", /* 193 = truncate64 */ + "ftruncate64", /* 194 = ftruncate64 */ + "stat64", /* 195 = stat64 */ + "lstat64", /* 196 = lstat64 */ + "fstat64", /* 197 = fstat64 */ }; diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index e0dd0a318df..ce1c36c6c63 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_sysent.c,v 1.24 2000/06/07 14:23:08 niklas Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.25 2000/07/07 02:14:05 jasoni Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.24 2000/06/07 14:11:38 niklas Exp + * created from OpenBSD: syscalls.master,v 1.25 2000/07/07 02:13:40 jasoni Exp */ #include <sys/param.h> @@ -57,7 +57,7 @@ struct sysent linux_sysent[] = { { 1, s(struct linux_sys_break_args), linux_sys_break }, /* 17 = break */ { 0, 0, - sys_nosys }, /* 18 = obsolete ostat */ + linux_sys_ostat }, /* 18 = ostat */ { 3, s(struct compat_43_sys_lseek_args), compat_43_sys_lseek }, /* 19 = lseek */ { 0, 0, @@ -73,25 +73,25 @@ struct sysent linux_sysent[] = { { 1, s(struct linux_sys_stime_args), linux_sys_stime }, /* 25 = stime */ { 0, 0, - sys_nosys }, /* 26 = unimplemented ptrace */ + linux_sys_ptrace }, /* 26 = ptrace */ { 1, s(struct linux_sys_alarm_args), linux_sys_alarm }, /* 27 = alarm */ { 0, 0, - sys_nosys }, /* 28 = obsolete ofstat */ + linux_sys_ofstat }, /* 28 = 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 */ + linux_sys_stty }, /* 31 = stty */ { 0, 0, - sys_nosys }, /* 32 = unimplemented gtty */ + linux_sys_gtty }, /* 32 = 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 */ + linux_sys_ftime }, /* 35 = ftime */ { 0, 0, sys_sync }, /* 36 = sync */ { 2, s(struct linux_sys_kill_args), @@ -109,7 +109,7 @@ struct sysent linux_sysent[] = { { 1, s(struct linux_sys_times_args), linux_sys_times }, /* 43 = times */ { 0, 0, - sys_nosys }, /* 44 = unimplemented prof */ + linux_sys_prof }, /* 44 = prof */ { 1, s(struct linux_sys_brk_args), linux_sys_brk }, /* 45 = brk */ { 1, s(struct sys_setgid_args), @@ -125,19 +125,19 @@ struct sysent linux_sysent[] = { { 1, s(struct sys_acct_args), sys_acct }, /* 51 = acct */ { 0, 0, - sys_nosys }, /* 52 = unimplemented phys */ + linux_sys_phys }, /* 52 = phys */ { 0, 0, - sys_nosys }, /* 53 = unimplemented lock */ + linux_sys_lock }, /* 53 = 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 */ + linux_sys_mpx }, /* 56 = mpx */ { 2, s(struct sys_setpgid_args), sys_setpgid }, /* 57 = setpgid */ { 0, 0, - sys_nosys }, /* 58 = unimplemented ulimit */ + linux_sys_ulimit }, /* 58 = ulimit */ { 1, s(struct linux_sys_oldolduname_args), linux_sys_oldolduname }, /* 59 = oldolduname */ { 1, s(struct sys_umask_args), @@ -145,7 +145,7 @@ struct sysent linux_sysent[] = { { 1, s(struct sys_chroot_args), sys_chroot }, /* 61 = chroot */ { 0, 0, - sys_nosys }, /* 62 = unimplemented ustat */ + linux_sys_ustat }, /* 62 = ustat */ { 2, s(struct sys_dup2_args), sys_dup2 }, /* 63 = dup2 */ { 0, 0, @@ -227,12 +227,12 @@ struct sysent linux_sysent[] = { linux_sys_ioperm }, /* 101 = ioperm */ #else { 0, 0, - sys_nosys }, /* 101 = unimplemented ioperm */ + linux_sys_ioperm }, /* 101 = ioperm */ #endif { 2, s(struct linux_sys_socketcall_args), linux_sys_socketcall }, /* 102 = socketcall */ { 0, 0, - sys_nosys }, /* 103 = unimplemented klog */ + linux_sys_klog }, /* 103 = klog */ { 3, s(struct sys_setitimer_args), sys_setitimer }, /* 104 = setitimer */ { 2, s(struct sys_getitimer_args), @@ -250,20 +250,20 @@ struct sysent linux_sysent[] = { linux_sys_iopl }, /* 110 = iopl */ #else { 0, 0, - sys_nosys }, /* 110 = unimplemented iopl */ + linux_sys_iopl }, /* 110 = iopl */ #endif { 0, 0, - sys_nosys }, /* 111 = unimplemented vhangup */ + linux_sys_vhangup }, /* 111 = vhangup */ { 0, 0, - sys_nosys }, /* 112 = unimplemented idle */ + linux_sys_idle }, /* 112 = idle */ { 0, 0, - sys_nosys }, /* 113 = unimplemented vm86 */ + linux_sys_vm86old }, /* 113 = vm86old */ { 4, s(struct linux_sys_wait4_args), linux_sys_wait4 }, /* 114 = wait4 */ { 0, 0, - sys_nosys }, /* 115 = unimplemented swapoff */ + linux_sys_swapoff }, /* 115 = swapoff */ { 0, 0, - sys_nosys }, /* 116 = unimplemented sysinfo */ + linux_sys_sysinfo }, /* 116 = sysinfo */ { 5, s(struct linux_sys_ipc_args), linux_sys_ipc }, /* 117 = ipc */ { 1, s(struct sys_fsync_args), @@ -271,7 +271,7 @@ struct sysent linux_sysent[] = { { 1, s(struct linux_sys_sigreturn_args), linux_sys_sigreturn }, /* 119 = sigreturn */ { 0, 0, - sys_nosys }, /* 120 = unimplemented clone */ + linux_sys_clone }, /* 120 = clone */ { 2, s(struct compat_09_sys_setdomainname_args), compat_09_sys_setdomainname }, /* 121 = setdomainname */ { 1, s(struct linux_sys_uname_args), @@ -281,36 +281,36 @@ struct sysent linux_sysent[] = { linux_sys_modify_ldt }, /* 123 = modify_ldt */ #else { 0, 0, - sys_nosys }, /* 123 = unimplemented modify_ldt */ + linux_sys_modify_ldt }, /* 123 = modify_ldt */ #endif { 0, 0, - sys_nosys }, /* 124 = unimplemented adjtimex */ + linux_sys_adjtimex }, /* 124 = 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 */ + linux_sys_create_module }, /* 127 = create_module */ { 0, 0, - sys_nosys }, /* 128 = unimplemented init_module */ + linux_sys_init_module }, /* 128 = init_module */ { 0, 0, - sys_nosys }, /* 129 = unimplemented delete_module */ + linux_sys_delete_module }, /* 129 = delete_module */ { 0, 0, - sys_nosys }, /* 130 = unimplemented get_kernel_syms */ + linux_sys_get_kernel_syms }, /* 130 = get_kernel_syms */ { 0, 0, - sys_nosys }, /* 131 = unimplemented quotactl */ + linux_sys_quotactl }, /* 131 = 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 */ + linux_sys_bdflush }, /* 134 = bdflush */ { 0, 0, - sys_nosys }, /* 135 = unimplemented sysfs */ + linux_sys_sysfs }, /* 135 = sysfs */ { 1, s(struct linux_sys_personality_args), linux_sys_personality }, /* 136 = personality */ { 0, 0, - sys_nosys }, /* 137 = unimplemented afs_syscall */ + linux_sys_afs_syscall }, /* 137 = afs_syscall */ { 1, s(struct linux_sys_setfsuid_args), linux_sys_setfsuid }, /* 138 = setfsuid */ { 0, 0, @@ -340,25 +340,25 @@ struct sysent linux_sysent[] = { { 2, s(struct sys_munlock_args), sys_munlock }, /* 151 = munlock */ { 0, 0, - sys_nosys }, /* 152 = unimplemented mlockall */ + linux_sys_mlockall }, /* 152 = mlockall */ { 0, 0, - sys_nosys }, /* 153 = unimplemented munlockall */ + linux_sys_munlockall }, /* 153 = munlockall */ { 0, 0, - sys_nosys }, /* 154 = unimplemented sched_setparam */ + linux_sys_sched_setparam }, /* 154 = sched_setparam */ { 0, 0, - sys_nosys }, /* 155 = unimplemented sched_getparam */ + linux_sys_sched_getparam }, /* 155 = sched_getparam */ { 0, 0, - sys_nosys }, /* 156 = unimplemented sched_setscheduler */ + linux_sys_sched_setscheduler }, /* 156 = sched_setscheduler */ { 0, 0, - sys_nosys }, /* 157 = unimplemented sched_getscheduler */ + linux_sys_sched_getscheduler }, /* 157 = sched_getscheduler */ { 0, 0, - sys_nosys }, /* 158 = unimplemented sched_yield */ + linux_sys_sched_yield }, /* 158 = sched_yield */ { 0, 0, - sys_nosys }, /* 159 = unimplemented sched_get_priority_max */ + linux_sys_sched_get_priority_max }, /* 159 = sched_get_priority_max */ { 0, 0, - sys_nosys }, /* 160 = unimplemented sched_get_priority_min */ + linux_sys_sched_get_priority_min }, /* 160 = sched_get_priority_min */ { 0, 0, - sys_nosys }, /* 161 = unimplemented sched_rr_get_interval */ + linux_sys_sched_rr_get_interval }, /* 161 = sched_rr_get_interval */ { 2, s(struct sys_nanosleep_args), sys_nanosleep }, /* 162 = nanosleep */ { 4, s(struct linux_sys_mremap_args), @@ -368,19 +368,19 @@ struct sysent linux_sysent[] = { { 3, s(struct linux_sys_getresuid_args), linux_sys_getresuid }, /* 165 = getresuid */ { 0, 0, - sys_nosys }, /* 166 = unimplemented vm86 */ + linux_sys_vm86 }, /* 166 = vm86 */ { 0, 0, - sys_nosys }, /* 167 = unimplemented query_module */ + linux_sys_query_module }, /* 167 = query_module */ { 3, s(struct sys_poll_args), sys_poll }, /* 168 = poll */ { 0, 0, - sys_nosys }, /* 169 = unimplemented nfsservctl */ + linux_sys_nfsservctl }, /* 169 = nfsservctl */ { 3, s(struct linux_sys_setresgid_args), linux_sys_setresgid }, /* 170 = setresgid */ { 3, s(struct linux_sys_getresgid_args), linux_sys_getresgid }, /* 171 = getresgid */ { 0, 0, - sys_nosys }, /* 172 = unimplemented prctl */ + linux_sys_prctl }, /* 172 = prctl */ { 1, s(struct linux_sys_rt_sigreturn_args), linux_sys_rt_sigreturn }, /* 173 = rt_sigreturn */ { 4, s(struct linux_sys_rt_sigaction_args), @@ -390,9 +390,9 @@ struct sysent linux_sysent[] = { { 2, s(struct linux_sys_rt_sigpending_args), linux_sys_rt_sigpending }, /* 176 = rt_sigpending */ { 0, 0, - sys_nosys }, /* 177 = unimplemented rt_sigtimedwait */ + linux_sys_rt_sigtimedwait }, /* 177 = rt_sigtimedwait */ { 0, 0, - sys_nosys }, /* 178 = unimplemented rt_queueinfo */ + linux_sys_rt_queueinfo }, /* 178 = rt_queueinfo */ { 2, s(struct linux_sys_rt_sigsuspend_args), linux_sys_rt_sigsuspend }, /* 179 = rt_sigsuspend */ { 4, s(struct linux_sys_pread_args), @@ -404,20 +404,32 @@ struct sysent linux_sysent[] = { { 2, s(struct linux_sys_getcwd_args), linux_sys_getcwd }, /* 183 = getcwd */ { 0, 0, - sys_nosys }, /* 184 = unimplemented capget */ + linux_sys_capget }, /* 184 = capget */ { 0, 0, - sys_nosys }, /* 185 = unimplemented capset */ + linux_sys_capset }, /* 185 = capset */ { 2, s(struct linux_sys_sigaltstack_args), linux_sys_sigaltstack }, /* 186 = sigaltstack */ { 0, 0, - sys_nosys }, /* 187 = unimplemented sendfile */ + linux_sys_sendfile }, /* 187 = sendfile */ { 0, 0, - sys_nosys }, /* 188 = unimplemented getpmsg */ + linux_sys_getpmsg }, /* 188 = getpmsg */ { 0, 0, - sys_nosys }, /* 189 = unimplemented putpmsg */ + linux_sys_putpmsg }, /* 189 = putpmsg */ { 0, 0, sys_vfork }, /* 190 = vfork */ { 2, s(struct linux_sys_ugetrlimit_args), linux_sys_ugetrlimit }, /* 191 = ugetrlimit */ + { 0, 0, + linux_sys_mmap2 }, /* 192 = mmap2 */ + { 0, 0, + linux_sys_truncate64 }, /* 193 = truncate64 */ + { 0, 0, + linux_sys_ftruncate64 }, /* 194 = ftruncate64 */ + { 0, 0, + linux_sys_stat64 }, /* 195 = stat64 */ + { 0, 0, + linux_sys_lstat64 }, /* 196 = lstat64 */ + { 0, 0, + linux_sys_fstat64 }, /* 197 = fstat64 */ }; |