From 2e3ee66dc7bffa1490c836309bb61b02cfb1b5f2 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 11 Nov 2007 18:28:18 +0000 Subject: [PATCH] regen --- .../linux32/arch/amd64/linux32_syscall.h | 4 +- .../linux32/arch/amd64/linux32_syscallargs.h | 86 ++- .../linux32/arch/amd64/linux32_syscalls.c | 572 +++++++++--------- .../linux32/arch/amd64/linux32_sysent.c | 254 ++++---- 4 files changed, 499 insertions(+), 417 deletions(-) diff --git a/sys/compat/linux32/arch/amd64/linux32_syscall.h b/sys/compat/linux32/arch/amd64/linux32_syscall.h index 18124af0db19..e8d4ee3cb9ef 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscall.h +++ b/sys/compat/linux32/arch/amd64/linux32_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_syscall.h,v 1.21 2007/11/07 00:25:39 njoly Exp $ */ +/* $NetBSD: linux32_syscall.h,v 1.22 2007/11/11 18:28:18 christos Exp $ */ /* * System call numbers. @@ -10,6 +10,8 @@ #ifndef _LINUX32_SYS_SYSCALL_H_ #define _LINUX32_SYS_SYSCALL_H_ +#define LINUX32_SYS_MAXSYSARGS 8 + /* syscall: "syscall" ret: "int" args: */ #define LINUX32_SYS_syscall 0 diff --git a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h index 4bf53c5b2958..f088e45dba91 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h +++ b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_syscallargs.h,v 1.21 2007/11/07 00:25:39 njoly Exp $ */ +/* $NetBSD: linux32_syscallargs.h,v 1.22 2007/11/11 18:28:18 christos Exp $ */ /* * System call argument lists. @@ -10,10 +10,9 @@ #ifndef _LINUX32_SYS_SYSCALLARGS_H_ #define _LINUX32_SYS_SYSCALLARGS_H_ -#ifdef syscallarg -#undef syscallarg -#endif +#define LINUX32_SYS_MAXSYSARGS 8 +#undef syscallarg #define syscallarg(x) \ union { \ register32_t pad; \ @@ -27,160 +26,197 @@ } be; \ } +#undef check_syscall_args +#define check_syscall_args(call) \ + typedef char call##_check_args[sizeof (struct call##_args) \ + <= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1]; + struct linux32_sys_open_args { syscallarg(const netbsd32_charp) path; syscallarg(int) flags; syscallarg(int) mode; }; +check_syscall_args(linux32_sys_open) struct linux32_sys_waitpid_args { syscallarg(int) pid; syscallarg(netbsd32_intp) status; syscallarg(int) options; }; +check_syscall_args(linux32_sys_waitpid) struct linux32_sys_creat_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; }; +check_syscall_args(linux32_sys_creat) struct linux32_sys_unlink_args { syscallarg(const netbsd32_charp) path; }; +check_syscall_args(linux32_sys_unlink) struct linux32_sys_time_args { syscallarg(linux32_timep_t) t; }; +check_syscall_args(linux32_sys_time) struct linux32_sys_mknod_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; syscallarg(int) dev; }; +check_syscall_args(linux32_sys_mknod) struct linux32_sys_lchown16_args { syscallarg(const netbsd32_charp) path; syscallarg(int) uid; syscallarg(int) gid; }; +check_syscall_args(linux32_sys_lchown16) struct linux32_sys_break_args { syscallarg(netbsd32_charp) nsize; }; +check_syscall_args(linux32_sys_break) struct linux32_sys_stime_args { syscallarg(linux32_timep_t) t; }; +check_syscall_args(linux32_sys_stime) struct linux32_sys_alarm_args { syscallarg(unsigned int) secs; }; +check_syscall_args(linux32_sys_alarm) struct linux32_sys_utime_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_utimbufp_t) times; }; +check_syscall_args(linux32_sys_utime) struct linux32_sys_nice_args { syscallarg(int) incr; }; +check_syscall_args(linux32_sys_nice) struct linux32_sys_kill_args { syscallarg(int) pid; syscallarg(int) signum; }; +check_syscall_args(linux32_sys_kill) struct linux32_sys_rename_args { syscallarg(const netbsd32_charp) from; syscallarg(const netbsd32_charp) to; }; +check_syscall_args(linux32_sys_rename) struct linux32_sys_pipe_args { syscallarg(netbsd32_intp) fd; }; +check_syscall_args(linux32_sys_pipe) struct linux32_sys_times_args { syscallarg(linux32_tmsp_t) tms; }; +check_syscall_args(linux32_sys_times) struct linux32_sys_brk_args { syscallarg(netbsd32_charp) nsize; }; +check_syscall_args(linux32_sys_brk) struct linux32_sys_signal_args { syscallarg(int) signum; syscallarg(linux32_handler_t) handler; }; +check_syscall_args(linux32_sys_signal) struct linux32_sys_ioctl_args { syscallarg(int) fd; syscallarg(netbsd32_u_long) com; syscallarg(netbsd32_charp) data; }; +check_syscall_args(linux32_sys_ioctl) struct linux32_sys_fcntl_args { syscallarg(int) fd; syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; +check_syscall_args(linux32_sys_fcntl) struct linux32_sys_oldolduname_args { syscallarg(linux32_oldold_utsnamep_t) up; }; +check_syscall_args(linux32_sys_oldolduname) struct linux32_sys_setreuid16_args { syscallarg(int) ruid; syscallarg(int) euid; }; +check_syscall_args(linux32_sys_setreuid16) struct linux32_sys_setregid16_args { syscallarg(int) rgid; syscallarg(int) egid; }; +check_syscall_args(linux32_sys_setregid16) struct linux32_sys_setrlimit_args { syscallarg(u_int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; +check_syscall_args(linux32_sys_setrlimit) struct linux32_sys_getrlimit_args { syscallarg(u_int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; +check_syscall_args(linux32_sys_getrlimit) struct linux32_sys_gettimeofday_args { syscallarg(netbsd32_timevalp_t) tp; syscallarg(netbsd32_timezonep_t) tzp; }; +check_syscall_args(linux32_sys_gettimeofday) struct linux32_sys_settimeofday_args { syscallarg(netbsd32_timevalp_t) tp; syscallarg(netbsd32_timezonep_t) tzp; }; +check_syscall_args(linux32_sys_settimeofday) struct linux32_sys_getgroups16_args { syscallarg(int) gidsetsize; syscallarg(linux32_gidp_t) gidset; }; +check_syscall_args(linux32_sys_getgroups16) struct linux32_sys_setgroups16_args { syscallarg(int) gidsetsize; syscallarg(linux32_gidp_t) gidset; }; +check_syscall_args(linux32_sys_setgroups16) struct linux32_sys_oldselect_args { syscallarg(linux32_oldselectp_t) lsp; }; +check_syscall_args(linux32_sys_oldselect) struct linux32_sys_readlink_args { syscallarg(const netbsd32_charp) name; syscallarg(netbsd32_charp) buf; syscallarg(int) count; }; +check_syscall_args(linux32_sys_readlink) struct linux32_sys_swapon_args { syscallarg(netbsd32_charp) name; }; +check_syscall_args(linux32_sys_swapon) struct linux32_sys_reboot_args { syscallarg(int) magic1; @@ -188,42 +224,50 @@ struct linux32_sys_reboot_args { syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; +check_syscall_args(linux32_sys_reboot) struct linux32_sys_old_mmap_args { syscallarg(linux32_oldmmapp) lmp; }; +check_syscall_args(linux32_sys_old_mmap) struct linux32_sys_truncate_args { syscallarg(const netbsd32_charp) path; syscallarg(netbsd32_long) length; }; +check_syscall_args(linux32_sys_truncate) struct linux32_sys_fchown16_args { syscallarg(int) fd; syscallarg(int) uid; syscallarg(int) gid; }; +check_syscall_args(linux32_sys_fchown16) struct linux32_sys_getpriority_args { syscallarg(int) which; syscallarg(int) who; }; +check_syscall_args(linux32_sys_getpriority) struct linux32_sys_setpriority_args { syscallarg(int) which; syscallarg(int) who; syscallarg(int) prio; }; +check_syscall_args(linux32_sys_setpriority) struct linux32_sys_statfs_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_statfsp) sp; }; +check_syscall_args(linux32_sys_statfs) struct linux32_sys_socketcall_args { syscallarg(int) what; syscallarg(netbsd32_voidp) args; }; +check_syscall_args(linux32_sys_socketcall) struct linux32_sys_wait4_args { syscallarg(int) pid; @@ -231,33 +275,40 @@ struct linux32_sys_wait4_args { syscallarg(int) options; syscallarg(netbsd32_rusagep_t) rusage; }; +check_syscall_args(linux32_sys_wait4) struct linux32_sys_swapoff_args { syscallarg(const netbsd32_charp) path; }; +check_syscall_args(linux32_sys_swapoff) struct linux32_sys_sysinfo_args { syscallarg(linux32_sysinfop_t) arg; }; +check_syscall_args(linux32_sys_sysinfo) struct linux32_sys_sigreturn_args { syscallarg(linux32_sigcontextp_t) scp; }; +check_syscall_args(linux32_sys_sigreturn) struct linux32_sys_clone_args { syscallarg(int) flags; syscallarg(netbsd32_voidp) stack; }; +check_syscall_args(linux32_sys_clone) struct linux32_sys_uname_args { syscallarg(linux32_utsnamep) up; }; +check_syscall_args(linux32_sys_uname) struct linux32_sys_mprotect_args { syscallarg(netbsd32_voidp) addr; syscallarg(netbsd32_size_t) len; syscallarg(int) prot; }; +check_syscall_args(linux32_sys_mprotect) struct linux32_sys_llseek_args { syscallarg(int) fd; @@ -266,12 +317,14 @@ struct linux32_sys_llseek_args { syscallarg(netbsd32_caddr_t) res; syscallarg(int) whence; }; +check_syscall_args(linux32_sys_llseek) struct linux32_sys_getdents_args { syscallarg(int) fd; syscallarg(linux32_direntp_t) dent; syscallarg(unsigned int) count; }; +check_syscall_args(linux32_sys_getdents) struct linux32_sys_select_args { syscallarg(int) nfds; @@ -280,29 +333,35 @@ struct linux32_sys_select_args { syscallarg(netbsd32_fd_setp_t) exceptfds; syscallarg(netbsd32_timevalp_t) timeout; }; +check_syscall_args(linux32_sys_select) struct linux32_sys_fdatasync_args { syscallarg(int) fd; }; +check_syscall_args(linux32_sys_fdatasync) struct linux32_sys___sysctl_args { syscallarg(linux32___sysctlp_t) lsp; }; +check_syscall_args(linux32_sys___sysctl) struct linux32_sys_sched_getparam_args { syscallarg(pid_t) pid; syscallarg(linux32_sched_paramp_t) sp; }; +check_syscall_args(linux32_sys_sched_getparam) struct linux32_sys_sched_setscheduler_args { syscallarg(pid_t) pid; syscallarg(int) policy; syscallarg(const linux32_sched_paramp_t) sp; }; +check_syscall_args(linux32_sys_sched_setscheduler) struct linux32_sys_sched_getscheduler_args { syscallarg(pid_t) pid; }; +check_syscall_args(linux32_sys_sched_getscheduler) struct linux32_sys_mremap_args { syscallarg(netbsd32_voidp) old_address; @@ -310,22 +369,26 @@ struct linux32_sys_mremap_args { syscallarg(netbsd32_size_t) new_size; syscallarg(netbsd32_u_long) flags; }; +check_syscall_args(linux32_sys_mremap) struct linux32_sys_setresuid16_args { syscallarg(uid_t) ruid; syscallarg(uid_t) euid; syscallarg(uid_t) suid; }; +check_syscall_args(linux32_sys_setresuid16) struct linux32_sys_setresgid16_args { syscallarg(gid_t) rgid; syscallarg(gid_t) egid; syscallarg(gid_t) sgid; }; +check_syscall_args(linux32_sys_setresgid16) struct linux32_sys_rt_sigreturn_args { syscallarg(linux32_ucontextp_t) ucp; }; +check_syscall_args(linux32_sys_rt_sigreturn) struct linux32_sys_rt_sigaction_args { syscallarg(int) signum; @@ -333,6 +396,7 @@ struct linux32_sys_rt_sigaction_args { syscallarg(linux32_sigactionp_t) osa; syscallarg(netbsd32_size_t) sigsetsize; }; +check_syscall_args(linux32_sys_rt_sigaction) struct linux32_sys_rt_sigprocmask_args { syscallarg(int) how; @@ -340,22 +404,26 @@ struct linux32_sys_rt_sigprocmask_args { syscallarg(linux32_sigsetp_t) oset; syscallarg(netbsd32_size_t) sigsetsize; }; +check_syscall_args(linux32_sys_rt_sigprocmask) struct linux32_sys_rt_sigsuspend_args { syscallarg(linux32_sigsetp_t) unewset; syscallarg(netbsd32_size_t) sigsetsize; }; +check_syscall_args(linux32_sys_rt_sigsuspend) struct linux32_sys_chown16_args { syscallarg(const netbsd32_charp) path; syscallarg(int) uid; syscallarg(int) gid; }; +check_syscall_args(linux32_sys_chown16) struct linux32_sys_ugetrlimit_args { syscallarg(int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; +check_syscall_args(linux32_sys_ugetrlimit) struct linux32_sys_mmap2_args { syscallarg(netbsd32_u_long) addr; @@ -365,53 +433,63 @@ struct linux32_sys_mmap2_args { syscallarg(int) fd; syscallarg(linux32_off_t) offset; }; +check_syscall_args(linux32_sys_mmap2) struct linux32_sys_stat64_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_stat64p) sp; }; +check_syscall_args(linux32_sys_stat64) struct linux32_sys_lstat64_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_stat64p) sp; }; +check_syscall_args(linux32_sys_lstat64) struct linux32_sys_fstat64_args { syscallarg(int) fd; syscallarg(linux32_stat64p) sp; }; +check_syscall_args(linux32_sys_fstat64) struct linux32_sys_setresuid_args { syscallarg(uid_t) ruid; syscallarg(uid_t) euid; syscallarg(uid_t) suid; }; +check_syscall_args(linux32_sys_setresuid) struct linux32_sys_setresgid_args { syscallarg(gid_t) rgid; syscallarg(gid_t) egid; syscallarg(gid_t) sgid; }; +check_syscall_args(linux32_sys_setresgid) struct linux32_sys_setfsuid_args { syscallarg(uid_t) uid; }; +check_syscall_args(linux32_sys_setfsuid) struct linux32_sys_getdents64_args { syscallarg(int) fd; syscallarg(linux32_dirent64p_t) dent; syscallarg(unsigned int) count; }; +check_syscall_args(linux32_sys_getdents64) struct linux32_sys_fcntl64_args { syscallarg(int) fd; syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; +check_syscall_args(linux32_sys_fcntl64) struct linux32_sys_exit_group_args { syscallarg(int) error_code; }; +check_syscall_args(linux32_sys_exit_group) /* * System call prototypes. diff --git a/sys/compat/linux32/arch/amd64/linux32_syscalls.c b/sys/compat/linux32/arch/amd64/linux32_syscalls.c index 76bc3b0669f5..702b5167c1ee 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscalls.c +++ b/sys/compat/linux32/arch/amd64/linux32_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_syscalls.c,v 1.21 2007/11/07 00:25:39 njoly Exp $ */ +/* $NetBSD: linux32_syscalls.c,v 1.22 2007/11/11 18:28:18 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.21 2007/11/07 00:25:39 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.22 2007/11/11 18:28:18 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -36,288 +36,288 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.21 2007/11/07 00:25:39 njoly #endif /* _KERNEL_OPT */ const char *const linux32_syscallnames[] = { - "syscall", /* 0 = syscall */ - "netbsd32_exit", /* 1 = netbsd32_exit */ - "fork", /* 2 = fork */ - "netbsd32_read", /* 3 = netbsd32_read */ - "netbsd32_write", /* 4 = netbsd32_write */ - "open", /* 5 = open */ - "netbsd32_close", /* 6 = netbsd32_close */ - "waitpid", /* 7 = waitpid */ - "creat", /* 8 = creat */ - "netbsd32_link", /* 9 = netbsd32_link */ - "unlink", /* 10 = unlink */ - "netbsd32_execve", /* 11 = netbsd32_execve */ - "netbsd32_chdir", /* 12 = netbsd32_chdir */ - "time", /* 13 = time */ - "mknod", /* 14 = mknod */ - "netbsd32_chmod", /* 15 = netbsd32_chmod */ - "lchown16", /* 16 = lchown16 */ - "break", /* 17 = break */ - "#18 (obsolete ostat)", /* 18 = obsolete ostat */ - "compat_43_netbsd32_olseek", /* 19 = compat_43_netbsd32_olseek */ - "getpid", /* 20 = getpid */ - "#21 (unimplemented mount)", /* 21 = unimplemented mount */ - "#22 (unimplemented umount)", /* 22 = unimplemented umount */ - "linux_setuid16", /* 23 = linux_setuid16 */ - "linux_getuid16", /* 24 = linux_getuid16 */ - "stime", /* 25 = stime */ - "#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */ - "alarm", /* 27 = alarm */ - "#28 (obsolete ofstat)", /* 28 = obsolete ofstat */ - "pause", /* 29 = pause */ - "utime", /* 30 = utime */ - "#31 (obsolete stty)", /* 31 = obsolete stty */ - "#32 (obsolete gtty)", /* 32 = obsolete gtty */ - "netbsd32_access", /* 33 = netbsd32_access */ - "nice", /* 34 = nice */ - "#35 (obsolete ftime)", /* 35 = obsolete ftime */ - "sync", /* 36 = sync */ - "kill", /* 37 = kill */ - "rename", /* 38 = rename */ - "netbsd32_mkdir", /* 39 = netbsd32_mkdir */ - "netbsd32_rmdir", /* 40 = netbsd32_rmdir */ - "netbsd32_dup", /* 41 = netbsd32_dup */ - "pipe", /* 42 = pipe */ - "times", /* 43 = times */ - "#44 (obsolete prof)", /* 44 = obsolete prof */ - "brk", /* 45 = brk */ - "linux_setgid16", /* 46 = linux_setgid16 */ - "linux_getgid16", /* 47 = linux_getgid16 */ - "signal", /* 48 = signal */ - "linux_geteuid16", /* 49 = linux_geteuid16 */ - "linux_getegid16", /* 50 = linux_getegid16 */ - "netbsd32_acct", /* 51 = netbsd32_acct */ - "#52 (obsolete phys)", /* 52 = obsolete phys */ - "#53 (obsolete lock)", /* 53 = obsolete lock */ - "ioctl", /* 54 = ioctl */ - "fcntl", /* 55 = fcntl */ - "#56 (obsolete mpx)", /* 56 = obsolete mpx */ - "netbsd32_setpgid", /* 57 = netbsd32_setpgid */ - "#58 (obsolete ulimit)", /* 58 = obsolete ulimit */ - "oldolduname", /* 59 = oldolduname */ - "netbsd32_umask", /* 60 = netbsd32_umask */ - "netbsd32_chroot", /* 61 = netbsd32_chroot */ - "#62 (unimplemented ustat)", /* 62 = unimplemented ustat */ - "netbsd32_dup2", /* 63 = netbsd32_dup2 */ - "getppid", /* 64 = getppid */ - "getpgrp", /* 65 = getpgrp */ - "setsid", /* 66 = setsid */ - "#67 (unimplemented sigaction)", /* 67 = unimplemented sigaction */ - "#68 (unimplemented siggetmask)", /* 68 = unimplemented siggetmask */ - "#69 (unimplemented sigsetmask)", /* 69 = unimplemented sigsetmask */ - "setreuid16", /* 70 = setreuid16 */ - "setregid16", /* 71 = setregid16 */ - "#72 (unimplemented sigsuspend)", /* 72 = unimplemented sigsuspend */ - "#73 (unimplemented sigpending)", /* 73 = unimplemented sigpending */ - "compat_43_netbsd32_osethostname", /* 74 = compat_43_netbsd32_osethostname */ - "setrlimit", /* 75 = setrlimit */ - "getrlimit", /* 76 = getrlimit */ - "netbsd32_getrusage", /* 77 = netbsd32_getrusage */ - "gettimeofday", /* 78 = gettimeofday */ - "settimeofday", /* 79 = settimeofday */ - "getgroups16", /* 80 = getgroups16 */ - "setgroups16", /* 81 = setgroups16 */ - "oldselect", /* 82 = oldselect */ - "netbsd32_symlink", /* 83 = netbsd32_symlink */ - "compat_43_netbsd32_lstat43", /* 84 = compat_43_netbsd32_lstat43 */ - "readlink", /* 85 = readlink */ - "#86 (unimplemented uselib)", /* 86 = unimplemented uselib */ - "swapon", /* 87 = swapon */ - "reboot", /* 88 = reboot */ - "#89 (unimplemented readdir)", /* 89 = unimplemented readdir */ - "old_mmap", /* 90 = old_mmap */ - "netbsd32_munmap", /* 91 = netbsd32_munmap */ - "truncate", /* 92 = truncate */ - "compat_43_netbsd32_oftruncate", /* 93 = compat_43_netbsd32_oftruncate */ - "netbsd32_fchmod", /* 94 = netbsd32_fchmod */ - "fchown16", /* 95 = fchown16 */ - "getpriority", /* 96 = getpriority */ - "setpriority", /* 97 = setpriority */ - "#98 (unimplemented profil)", /* 98 = unimplemented profil */ - "statfs", /* 99 = statfs */ - "#100 (unimplemented fstatfs)", /* 100 = unimplemented fstatfs */ - "#101 (unimplemented ioperm)", /* 101 = unimplemented ioperm */ - "socketcall", /* 102 = socketcall */ - "#103 (unimplemented syslog)", /* 103 = unimplemented syslog */ - "netbsd32_setitimer", /* 104 = netbsd32_setitimer */ - "netbsd32_getitimer", /* 105 = netbsd32_getitimer */ - "#106 (unimplemented stat)", /* 106 = unimplemented stat */ - "#107 (unimplemented lstat)", /* 107 = unimplemented lstat */ - "#108 (unimplemented fstat)", /* 108 = unimplemented fstat */ - "#109 (unimplemented olduname)", /* 109 = unimplemented olduname */ - "#110 (unimplemented iopl)", /* 110 = unimplemented iopl */ - "#111 (unimplemented vhangup)", /* 111 = unimplemented vhangup */ - "#112 (unimplemented idle)", /* 112 = unimplemented idle */ - "#113 (unimplemented vm86old)", /* 113 = unimplemented vm86old */ - "wait4", /* 114 = wait4 */ - "swapoff", /* 115 = swapoff */ - "sysinfo", /* 116 = sysinfo */ - "#117 (unimplemented ipc)", /* 117 = unimplemented ipc */ - "netbsd32_fsync", /* 118 = netbsd32_fsync */ - "sigreturn", /* 119 = sigreturn */ - "clone", /* 120 = clone */ - "#121 (unimplemented setdomainname)", /* 121 = unimplemented setdomainname */ - "uname", /* 122 = uname */ - "#123 (unimplemented modify_ldt)", /* 123 = unimplemented modify_ldt */ - "#124 (unimplemented adjtimex)", /* 124 = unimplemented adjtimex */ - "mprotect", /* 125 = mprotect */ - "#126 (unimplemented sigprocmask)", /* 126 = unimplemented 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 */ - "#132 (unimplemented getpgid)", /* 132 = unimplemented getpgid */ - "netbsd32_fchdir", /* 133 = netbsd32_fchdir */ - "#134 (unimplemented bdflush)", /* 134 = unimplemented bdflush */ - "#135 (unimplemented sysfs)", /* 135 = unimplemented sysfs */ - "#136 (unimplemented personality)", /* 136 = unimplemented personality */ - "#137 (unimplemented afs_syscall)", /* 137 = unimplemented afs_syscall */ - "setfsuid16", /* 138 = setfsuid16 */ - "getfsuid16", /* 139 = getfsuid16 */ - "llseek", /* 140 = llseek */ - "getdents", /* 141 = getdents */ - "select", /* 142 = select */ - "netbsd32_flock", /* 143 = netbsd32_flock */ - "#144 (unimplemented msync)", /* 144 = unimplemented msync */ - "netbsd32_readv", /* 145 = netbsd32_readv */ - "netbsd32_writev", /* 146 = netbsd32_writev */ - "netbsd32_getsid", /* 147 = netbsd32_getsid */ - "fdatasync", /* 148 = fdatasync */ - "__sysctl", /* 149 = __sysctl */ - "#150 (unimplemented mlock)", /* 150 = unimplemented mlock */ - "#151 (unimplemented munlock)", /* 151 = unimplemented munlock */ - "netbsd32_mlockall", /* 152 = netbsd32_mlockall */ - "munlockall", /* 153 = munlockall */ - "#154 (unimplemented sched_setparam)", /* 154 = unimplemented sched_setparam */ - "sched_getparam", /* 155 = sched_getparam */ - "sched_setscheduler", /* 156 = sched_setscheduler */ - "sched_getscheduler", /* 157 = sched_getscheduler */ - "sched_yield", /* 158 = 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 */ - "netbsd32_nanosleep", /* 162 = netbsd32_nanosleep */ - "mremap", /* 163 = mremap */ - "setresuid16", /* 164 = setresuid16 */ - "#165 (unimplemented getresuid16)", /* 165 = unimplemented getresuid16 */ - "#166 (unimplemented vm86)", /* 166 = unimplemented vm86 */ - "#167 (unimplemented query_module)", /* 167 = unimplemented query_module */ - "netbsd32_poll", /* 168 = netbsd32_poll */ - "#169 (unimplemented nfsservctl)", /* 169 = unimplemented nfsservctl */ - "setresgid16", /* 170 = setresgid16 */ - "#171 (unimplemented int)", /* 171 = unimplemented int */ - "#172 (unimplemented prctl)", /* 172 = unimplemented prctl */ - "rt_sigreturn", /* 173 = rt_sigreturn */ - "rt_sigaction", /* 174 = rt_sigaction */ - "rt_sigprocmask", /* 175 = rt_sigprocmask */ - "#176 (unimplemented rt_sigpending)", /* 176 = unimplemented rt_sigpending */ - "#177 (unimplemented rt_sigtimedwait)", /* 177 = unimplemented rt_sigtimedwait */ - "#178 (unimplemented rt_queueinfo)", /* 178 = unimplemented rt_queueinfo */ - "rt_sigsuspend", /* 179 = rt_sigsuspend */ - "#180 (unimplemented pread)", /* 180 = unimplemented pread */ - "#181 (unimplemented pwrite)", /* 181 = unimplemented pwrite */ - "chown16", /* 182 = chown16 */ - "netbsd32___getcwd", /* 183 = netbsd32___getcwd */ - "#184 (unimplemented capget)", /* 184 = unimplemented capget */ - "#185 (unimplemented capset)", /* 185 = unimplemented capset */ - "#186 (unimplemented sigaltstack)", /* 186 = unimplemented sigaltstack */ - "#187 (unimplemented sendfile)", /* 187 = unimplemented sendfile */ - "#188 (unimplemented getpmsg)", /* 188 = unimplemented getpmsg */ - "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ - "__vfork14", /* 190 = __vfork14 */ - "ugetrlimit", /* 191 = ugetrlimit */ - "mmap2", /* 192 = mmap2 */ - "#193 (unimplemented truncate64)", /* 193 = unimplemented truncate64 */ - "#194 (unimplemented ftruncate64)", /* 194 = unimplemented ftruncate64 */ - "stat64", /* 195 = stat64 */ - "lstat64", /* 196 = lstat64 */ - "fstat64", /* 197 = fstat64 */ - "netbsd32___posix_lchown", /* 198 = netbsd32___posix_lchown */ - "getuid", /* 199 = getuid */ - "getgid", /* 200 = getgid */ - "geteuid", /* 201 = geteuid */ - "getegid", /* 202 = getegid */ - "netbsd32_setreuid", /* 203 = netbsd32_setreuid */ - "netbsd32_setregid", /* 204 = netbsd32_setregid */ - "netbsd32_getgroups", /* 205 = netbsd32_getgroups */ - "netbsd32_setgroups", /* 206 = netbsd32_setgroups */ - "netbsd32___posix_fchown", /* 207 = netbsd32___posix_fchown */ - "setresuid", /* 208 = setresuid */ - "#209 (unimplemented getresuid)", /* 209 = unimplemented getresuid */ - "setresgid", /* 210 = setresgid */ - "#211 (unimplemented getresgid)", /* 211 = unimplemented getresgid */ - "netbsd32___posix_chown", /* 212 = netbsd32___posix_chown */ - "netbsd32_setuid", /* 213 = netbsd32_setuid */ - "netbsd32_setgid", /* 214 = netbsd32_setgid */ - "setfsuid", /* 215 = setfsuid */ - "getfsuid", /* 216 = getfsuid */ - "#217 (unimplemented pivot_root)", /* 217 = unimplemented pivot_root */ - "#218 (unimplemented mincore)", /* 218 = unimplemented mincore */ - "netbsd32_madvise", /* 219 = netbsd32_madvise */ - "getdents64", /* 220 = getdents64 */ - "fcntl64", /* 221 = fcntl64 */ - "#222 (unimplemented / * unused * /)", /* 222 = unimplemented / * unused * / */ - "#223 (unimplemented / * unused * /)", /* 223 = unimplemented / * unused * / */ - "gettid", /* 224 = gettid */ - "#225 (unimplemented readahead)", /* 225 = unimplemented readahead */ - "#226 (unimplemented setxattr)", /* 226 = unimplemented setxattr */ - "#227 (unimplemented lsetxattr)", /* 227 = unimplemented lsetxattr */ - "#228 (unimplemented fsetxattr)", /* 228 = unimplemented fsetxattr */ - "#229 (unimplemented getxattr)", /* 229 = unimplemented getxattr */ - "#230 (unimplemented lgetxattr)", /* 230 = unimplemented lgetxattr */ - "#231 (unimplemented fgetxattr)", /* 231 = unimplemented fgetxattr */ - "#232 (unimplemented listxattr)", /* 232 = unimplemented listxattr */ - "#233 (unimplemented llistxattr)", /* 233 = unimplemented llistxattr */ - "#234 (unimplemented flistxattr)", /* 234 = unimplemented flistxattr */ - "#235 (unimplemented removexattr)", /* 235 = unimplemented removexattr */ - "#236 (unimplemented lremovexattr)", /* 236 = unimplemented lremovexattr */ - "#237 (unimplemented fremovexattr)", /* 237 = unimplemented fremovexattr */ - "#238 (unimplemented tkill)", /* 238 = unimplemented tkill */ - "#239 (unimplemented sendfile64)", /* 239 = unimplemented sendfile64 */ - "#240 (unimplemented futex)", /* 240 = unimplemented futex */ - "#241 (unimplemented sched_setaffinity)", /* 241 = unimplemented sched_setaffinity */ - "#242 (unimplemented sched_getaffinity)", /* 242 = unimplemented sched_getaffinity */ - "#243 (unimplemented set_thread_area)", /* 243 = unimplemented set_thread_area */ - "#244 (unimplemented get_thread_area)", /* 244 = unimplemented get_thread_area */ - "#245 (unimplemented io_setup)", /* 245 = unimplemented io_setup */ - "#246 (unimplemented io_destroy)", /* 246 = unimplemented io_destroy */ - "#247 (unimplemented io_getevents)", /* 247 = unimplemented io_getevents */ - "#248 (unimplemented io_submit)", /* 248 = unimplemented io_submit */ - "#249 (unimplemented io_cancel)", /* 249 = unimplemented io_cancel */ - "#250 (unimplemented fadvise64)", /* 250 = unimplemented fadvise64 */ - "#251 (unimplemented / * unused * /)", /* 251 = unimplemented / * unused * / */ - "exit_group", /* 252 = exit_group */ - "#253 (unimplemented lookup_dcookie)", /* 253 = unimplemented lookup_dcookie */ - "#254 (unimplemented epoll_create)", /* 254 = unimplemented epoll_create */ - "#255 (unimplemented epoll_ctl)", /* 255 = unimplemented epoll_ctl */ - "#256 (unimplemented epoll_wait)", /* 256 = unimplemented epoll_wait */ - "#257 (unimplemented remap_file_pages)", /* 257 = unimplemented remap_file_pages */ - "#258 (unimplemented set_tid_address)", /* 258 = unimplemented set_tid_address */ - "#259 (unimplemented timer_create)", /* 259 = unimplemented timer_create */ - "#260 (unimplemented timer_settime)", /* 260 = unimplemented timer_settime */ - "#261 (unimplemented timer_gettime)", /* 261 = unimplemented timer_gettime */ - "#262 (unimplemented timer_getoverrun)", /* 262 = unimplemented timer_getoverrun */ - "#263 (unimplemented timer_delete)", /* 263 = unimplemented timer_delete */ - "#264 (unimplemented clock_settime)", /* 264 = unimplemented clock_settime */ - "#265 (unimplemented clock_gettime)", /* 265 = unimplemented clock_gettime */ - "#266 (unimplemented clock_getres)", /* 266 = unimplemented clock_getres */ - "#267 (unimplemented clock_nanosleep)", /* 267 = unimplemented clock_nanosleep */ - "#268 (unimplemented statfs64)", /* 268 = unimplemented statfs64 */ - "#269 (unimplemented fstatfs64)", /* 269 = unimplemented fstatfs64 */ - "#270 (unimplemented tgkill)", /* 270 = unimplemented tgkill */ - "#271 (unimplemented utimes)", /* 271 = unimplemented utimes */ - "#272 (unimplemented fadvise64_64)", /* 272 = unimplemented fadvise64_64 */ - "#273 (unimplemented vserver)", /* 273 = unimplemented vserver */ - "#274 (unimplemented mbind)", /* 274 = unimplemented mbind */ - "#275 (unimplemented get_mempolicy)", /* 275 = unimplemented get_mempolicy */ - "#276 (unimplemented set_mempolicy)", /* 276 = unimplemented set_mempolicy */ - "#277 (unimplemented mq_open)", /* 277 = unimplemented mq_open */ - "#278 (unimplemented mq_unlink)", /* 278 = unimplemented mq_unlink */ - "#279 (unimplemented mq_timedsend)", /* 279 = unimplemented mq_timedsend */ - "#280 (unimplemented mq_timedreceive)", /* 280 = unimplemented mq_timedreceive */ - "#281 (unimplemented mq_notify)", /* 281 = unimplemented mq_notify */ - "#282 (unimplemented mq_getsetattr)", /* 282 = unimplemented mq_getsetattr */ - "#283 (unimplemented kexec_load)", /* 283 = unimplemented kexec_load */ + /* 0 */ "syscall", + /* 1 */ "netbsd32_exit", + /* 2 */ "fork", + /* 3 */ "netbsd32_read", + /* 4 */ "netbsd32_write", + /* 5 */ "open", + /* 6 */ "netbsd32_close", + /* 7 */ "waitpid", + /* 8 */ "creat", + /* 9 */ "netbsd32_link", + /* 10 */ "unlink", + /* 11 */ "netbsd32_execve", + /* 12 */ "netbsd32_chdir", + /* 13 */ "time", + /* 14 */ "mknod", + /* 15 */ "netbsd32_chmod", + /* 16 */ "lchown16", + /* 17 */ "break", + /* 18 */ "#18 (obsolete ostat)", + /* 19 */ "compat_43_netbsd32_olseek", + /* 20 */ "getpid", + /* 21 */ "#21 (unimplemented mount)", + /* 22 */ "#22 (unimplemented umount)", + /* 23 */ "linux_setuid16", + /* 24 */ "linux_getuid16", + /* 25 */ "stime", + /* 26 */ "#26 (unimplemented ptrace)", + /* 27 */ "alarm", + /* 28 */ "#28 (obsolete ofstat)", + /* 29 */ "pause", + /* 30 */ "utime", + /* 31 */ "#31 (obsolete stty)", + /* 32 */ "#32 (obsolete gtty)", + /* 33 */ "netbsd32_access", + /* 34 */ "nice", + /* 35 */ "#35 (obsolete ftime)", + /* 36 */ "sync", + /* 37 */ "kill", + /* 38 */ "rename", + /* 39 */ "netbsd32_mkdir", + /* 40 */ "netbsd32_rmdir", + /* 41 */ "netbsd32_dup", + /* 42 */ "pipe", + /* 43 */ "times", + /* 44 */ "#44 (obsolete prof)", + /* 45 */ "brk", + /* 46 */ "linux_setgid16", + /* 47 */ "linux_getgid16", + /* 48 */ "signal", + /* 49 */ "linux_geteuid16", + /* 50 */ "linux_getegid16", + /* 51 */ "netbsd32_acct", + /* 52 */ "#52 (obsolete phys)", + /* 53 */ "#53 (obsolete lock)", + /* 54 */ "ioctl", + /* 55 */ "fcntl", + /* 56 */ "#56 (obsolete mpx)", + /* 57 */ "netbsd32_setpgid", + /* 58 */ "#58 (obsolete ulimit)", + /* 59 */ "oldolduname", + /* 60 */ "netbsd32_umask", + /* 61 */ "netbsd32_chroot", + /* 62 */ "#62 (unimplemented ustat)", + /* 63 */ "netbsd32_dup2", + /* 64 */ "getppid", + /* 65 */ "getpgrp", + /* 66 */ "setsid", + /* 67 */ "#67 (unimplemented sigaction)", + /* 68 */ "#68 (unimplemented siggetmask)", + /* 69 */ "#69 (unimplemented sigsetmask)", + /* 70 */ "setreuid16", + /* 71 */ "setregid16", + /* 72 */ "#72 (unimplemented sigsuspend)", + /* 73 */ "#73 (unimplemented sigpending)", + /* 74 */ "compat_43_netbsd32_osethostname", + /* 75 */ "setrlimit", + /* 76 */ "getrlimit", + /* 77 */ "netbsd32_getrusage", + /* 78 */ "gettimeofday", + /* 79 */ "settimeofday", + /* 80 */ "getgroups16", + /* 81 */ "setgroups16", + /* 82 */ "oldselect", + /* 83 */ "netbsd32_symlink", + /* 84 */ "compat_43_netbsd32_lstat43", + /* 85 */ "readlink", + /* 86 */ "#86 (unimplemented uselib)", + /* 87 */ "swapon", + /* 88 */ "reboot", + /* 89 */ "#89 (unimplemented readdir)", + /* 90 */ "old_mmap", + /* 91 */ "netbsd32_munmap", + /* 92 */ "truncate", + /* 93 */ "compat_43_netbsd32_oftruncate", + /* 94 */ "netbsd32_fchmod", + /* 95 */ "fchown16", + /* 96 */ "getpriority", + /* 97 */ "setpriority", + /* 98 */ "#98 (unimplemented profil)", + /* 99 */ "statfs", + /* 100 */ "#100 (unimplemented fstatfs)", + /* 101 */ "#101 (unimplemented ioperm)", + /* 102 */ "socketcall", + /* 103 */ "#103 (unimplemented syslog)", + /* 104 */ "netbsd32_setitimer", + /* 105 */ "netbsd32_getitimer", + /* 106 */ "#106 (unimplemented stat)", + /* 107 */ "#107 (unimplemented lstat)", + /* 108 */ "#108 (unimplemented fstat)", + /* 109 */ "#109 (unimplemented olduname)", + /* 110 */ "#110 (unimplemented iopl)", + /* 111 */ "#111 (unimplemented vhangup)", + /* 112 */ "#112 (unimplemented idle)", + /* 113 */ "#113 (unimplemented vm86old)", + /* 114 */ "wait4", + /* 115 */ "swapoff", + /* 116 */ "sysinfo", + /* 117 */ "#117 (unimplemented ipc)", + /* 118 */ "netbsd32_fsync", + /* 119 */ "sigreturn", + /* 120 */ "clone", + /* 121 */ "#121 (unimplemented setdomainname)", + /* 122 */ "uname", + /* 123 */ "#123 (unimplemented modify_ldt)", + /* 124 */ "#124 (unimplemented adjtimex)", + /* 125 */ "mprotect", + /* 126 */ "#126 (unimplemented sigprocmask)", + /* 127 */ "#127 (unimplemented create_module)", + /* 128 */ "#128 (unimplemented init_module)", + /* 129 */ "#129 (unimplemented delete_module)", + /* 130 */ "#130 (unimplemented get_kernel_syms)", + /* 131 */ "#131 (unimplemented quotactl)", + /* 132 */ "#132 (unimplemented getpgid)", + /* 133 */ "netbsd32_fchdir", + /* 134 */ "#134 (unimplemented bdflush)", + /* 135 */ "#135 (unimplemented sysfs)", + /* 136 */ "#136 (unimplemented personality)", + /* 137 */ "#137 (unimplemented afs_syscall)", + /* 138 */ "setfsuid16", + /* 139 */ "getfsuid16", + /* 140 */ "llseek", + /* 141 */ "getdents", + /* 142 */ "select", + /* 143 */ "netbsd32_flock", + /* 144 */ "#144 (unimplemented msync)", + /* 145 */ "netbsd32_readv", + /* 146 */ "netbsd32_writev", + /* 147 */ "netbsd32_getsid", + /* 148 */ "fdatasync", + /* 149 */ "__sysctl", + /* 150 */ "#150 (unimplemented mlock)", + /* 151 */ "#151 (unimplemented munlock)", + /* 152 */ "netbsd32_mlockall", + /* 153 */ "munlockall", + /* 154 */ "#154 (unimplemented sched_setparam)", + /* 155 */ "sched_getparam", + /* 156 */ "sched_setscheduler", + /* 157 */ "sched_getscheduler", + /* 158 */ "sched_yield", + /* 159 */ "#159 (unimplemented sched_get_priority_max)", + /* 160 */ "#160 (unimplemented sched_get_priority_min)", + /* 161 */ "#161 (unimplemented sched_rr_get_interval)", + /* 162 */ "netbsd32_nanosleep", + /* 163 */ "mremap", + /* 164 */ "setresuid16", + /* 165 */ "#165 (unimplemented getresuid16)", + /* 166 */ "#166 (unimplemented vm86)", + /* 167 */ "#167 (unimplemented query_module)", + /* 168 */ "netbsd32_poll", + /* 169 */ "#169 (unimplemented nfsservctl)", + /* 170 */ "setresgid16", + /* 171 */ "#171 (unimplemented int)", + /* 172 */ "#172 (unimplemented prctl)", + /* 173 */ "rt_sigreturn", + /* 174 */ "rt_sigaction", + /* 175 */ "rt_sigprocmask", + /* 176 */ "#176 (unimplemented rt_sigpending)", + /* 177 */ "#177 (unimplemented rt_sigtimedwait)", + /* 178 */ "#178 (unimplemented rt_queueinfo)", + /* 179 */ "rt_sigsuspend", + /* 180 */ "#180 (unimplemented pread)", + /* 181 */ "#181 (unimplemented pwrite)", + /* 182 */ "chown16", + /* 183 */ "netbsd32___getcwd", + /* 184 */ "#184 (unimplemented capget)", + /* 185 */ "#185 (unimplemented capset)", + /* 186 */ "#186 (unimplemented sigaltstack)", + /* 187 */ "#187 (unimplemented sendfile)", + /* 188 */ "#188 (unimplemented getpmsg)", + /* 189 */ "#189 (unimplemented putpmsg)", + /* 190 */ "__vfork14", + /* 191 */ "ugetrlimit", + /* 192 */ "mmap2", + /* 193 */ "#193 (unimplemented truncate64)", + /* 194 */ "#194 (unimplemented ftruncate64)", + /* 195 */ "stat64", + /* 196 */ "lstat64", + /* 197 */ "fstat64", + /* 198 */ "netbsd32___posix_lchown", + /* 199 */ "getuid", + /* 200 */ "getgid", + /* 201 */ "geteuid", + /* 202 */ "getegid", + /* 203 */ "netbsd32_setreuid", + /* 204 */ "netbsd32_setregid", + /* 205 */ "netbsd32_getgroups", + /* 206 */ "netbsd32_setgroups", + /* 207 */ "netbsd32___posix_fchown", + /* 208 */ "setresuid", + /* 209 */ "#209 (unimplemented getresuid)", + /* 210 */ "setresgid", + /* 211 */ "#211 (unimplemented getresgid)", + /* 212 */ "netbsd32___posix_chown", + /* 213 */ "netbsd32_setuid", + /* 214 */ "netbsd32_setgid", + /* 215 */ "setfsuid", + /* 216 */ "getfsuid", + /* 217 */ "#217 (unimplemented pivot_root)", + /* 218 */ "#218 (unimplemented mincore)", + /* 219 */ "netbsd32_madvise", + /* 220 */ "getdents64", + /* 221 */ "fcntl64", + /* 222 */ "#222 (unimplemented / * unused * /)", + /* 223 */ "#223 (unimplemented / * unused * /)", + /* 224 */ "gettid", + /* 225 */ "#225 (unimplemented readahead)", + /* 226 */ "#226 (unimplemented setxattr)", + /* 227 */ "#227 (unimplemented lsetxattr)", + /* 228 */ "#228 (unimplemented fsetxattr)", + /* 229 */ "#229 (unimplemented getxattr)", + /* 230 */ "#230 (unimplemented lgetxattr)", + /* 231 */ "#231 (unimplemented fgetxattr)", + /* 232 */ "#232 (unimplemented listxattr)", + /* 233 */ "#233 (unimplemented llistxattr)", + /* 234 */ "#234 (unimplemented flistxattr)", + /* 235 */ "#235 (unimplemented removexattr)", + /* 236 */ "#236 (unimplemented lremovexattr)", + /* 237 */ "#237 (unimplemented fremovexattr)", + /* 238 */ "#238 (unimplemented tkill)", + /* 239 */ "#239 (unimplemented sendfile64)", + /* 240 */ "#240 (unimplemented futex)", + /* 241 */ "#241 (unimplemented sched_setaffinity)", + /* 242 */ "#242 (unimplemented sched_getaffinity)", + /* 243 */ "#243 (unimplemented set_thread_area)", + /* 244 */ "#244 (unimplemented get_thread_area)", + /* 245 */ "#245 (unimplemented io_setup)", + /* 246 */ "#246 (unimplemented io_destroy)", + /* 247 */ "#247 (unimplemented io_getevents)", + /* 248 */ "#248 (unimplemented io_submit)", + /* 249 */ "#249 (unimplemented io_cancel)", + /* 250 */ "#250 (unimplemented fadvise64)", + /* 251 */ "#251 (unimplemented / * unused * /)", + /* 252 */ "exit_group", + /* 253 */ "#253 (unimplemented lookup_dcookie)", + /* 254 */ "#254 (unimplemented epoll_create)", + /* 255 */ "#255 (unimplemented epoll_ctl)", + /* 256 */ "#256 (unimplemented epoll_wait)", + /* 257 */ "#257 (unimplemented remap_file_pages)", + /* 258 */ "#258 (unimplemented set_tid_address)", + /* 259 */ "#259 (unimplemented timer_create)", + /* 260 */ "#260 (unimplemented timer_settime)", + /* 261 */ "#261 (unimplemented timer_gettime)", + /* 262 */ "#262 (unimplemented timer_getoverrun)", + /* 263 */ "#263 (unimplemented timer_delete)", + /* 264 */ "#264 (unimplemented clock_settime)", + /* 265 */ "#265 (unimplemented clock_gettime)", + /* 266 */ "#266 (unimplemented clock_getres)", + /* 267 */ "#267 (unimplemented clock_nanosleep)", + /* 268 */ "#268 (unimplemented statfs64)", + /* 269 */ "#269 (unimplemented fstatfs64)", + /* 270 */ "#270 (unimplemented tgkill)", + /* 271 */ "#271 (unimplemented utimes)", + /* 272 */ "#272 (unimplemented fadvise64_64)", + /* 273 */ "#273 (unimplemented vserver)", + /* 274 */ "#274 (unimplemented mbind)", + /* 275 */ "#275 (unimplemented get_mempolicy)", + /* 276 */ "#276 (unimplemented set_mempolicy)", + /* 277 */ "#277 (unimplemented mq_open)", + /* 278 */ "#278 (unimplemented mq_unlink)", + /* 279 */ "#279 (unimplemented mq_timedsend)", + /* 280 */ "#280 (unimplemented mq_timedreceive)", + /* 281 */ "#281 (unimplemented mq_notify)", + /* 282 */ "#282 (unimplemented mq_getsetattr)", + /* 283 */ "#283 (unimplemented kexec_load)", }; diff --git a/sys/compat/linux32/arch/amd64/linux32_sysent.c b/sys/compat/linux32/arch/amd64/linux32_sysent.c index 568b6916176b..e9ee5d48f0e5 100644 --- a/sys/compat/linux32/arch/amd64/linux32_sysent.c +++ b/sys/compat/linux32/arch/amd64/linux32_sysent.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_sysent.c,v 1.21 2007/11/07 00:25:39 njoly Exp $ */ +/* $NetBSD: linux32_sysent.c,v 1.22 2007/11/11 18:28:18 christos Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.21 2007/11/07 00:25:39 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.22 2007/11/11 18:28:18 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_43.h" @@ -34,47 +34,49 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.21 2007/11/07 00:25:39 njoly Ex #include #define s(type) sizeof(type) +#define n(type) (sizeof(type)/sizeof (register32_t)) +#define ns(type) n(type), s(type) struct sysent linux32_sysent[] = { { 0, 0, 0, linux_sys_nosys }, /* 0 = syscall */ - { 1, s(struct netbsd32_exit_args), 0, + { ns(struct netbsd32_exit_args), 0, netbsd32_exit }, /* 1 = netbsd32_exit */ { 0, 0, 0, sys_fork }, /* 2 = fork */ - { 3, s(struct netbsd32_read_args), 0, + { ns(struct netbsd32_read_args), 0, netbsd32_read }, /* 3 = netbsd32_read */ - { 3, s(struct netbsd32_write_args), 0, + { ns(struct netbsd32_write_args), 0, netbsd32_write }, /* 4 = netbsd32_write */ - { 3, s(struct linux32_sys_open_args), 0, + { ns(struct linux32_sys_open_args), 0, linux32_sys_open }, /* 5 = open */ - { 1, s(struct netbsd32_close_args), 0, + { ns(struct netbsd32_close_args), 0, netbsd32_close }, /* 6 = netbsd32_close */ - { 3, s(struct linux32_sys_waitpid_args), 0, + { ns(struct linux32_sys_waitpid_args), 0, linux32_sys_waitpid }, /* 7 = waitpid */ - { 2, s(struct linux32_sys_creat_args), 0, + { ns(struct linux32_sys_creat_args), 0, linux32_sys_creat }, /* 8 = creat */ - { 2, s(struct netbsd32_link_args), 0, + { ns(struct netbsd32_link_args), 0, netbsd32_link }, /* 9 = netbsd32_link */ - { 1, s(struct linux32_sys_unlink_args), 0, + { ns(struct linux32_sys_unlink_args), 0, linux32_sys_unlink }, /* 10 = unlink */ - { 3, s(struct netbsd32_execve_args), 0, + { ns(struct netbsd32_execve_args), 0, netbsd32_execve }, /* 11 = netbsd32_execve */ - { 1, s(struct netbsd32_chdir_args), 0, + { ns(struct netbsd32_chdir_args), 0, netbsd32_chdir }, /* 12 = netbsd32_chdir */ - { 1, s(struct linux32_sys_time_args), 0, + { ns(struct linux32_sys_time_args), 0, linux32_sys_time }, /* 13 = time */ - { 3, s(struct linux32_sys_mknod_args), 0, + { ns(struct linux32_sys_mknod_args), 0, linux32_sys_mknod }, /* 14 = mknod */ - { 2, s(struct netbsd32_chmod_args), 0, + { ns(struct netbsd32_chmod_args), 0, netbsd32_chmod }, /* 15 = netbsd32_chmod */ - { 3, s(struct linux32_sys_lchown16_args), 0, + { ns(struct linux32_sys_lchown16_args), 0, linux32_sys_lchown16 }, /* 16 = lchown16 */ - { 1, s(struct linux32_sys_break_args), 0, + { ns(struct linux32_sys_break_args), 0, linux32_sys_break }, /* 17 = break */ { 0, 0, 0, linux_sys_nosys }, /* 18 = obsolete ostat */ - { 3, s(struct compat_43_netbsd32_olseek_args), 0, + { ns(struct compat_43_netbsd32_olseek_args), 0, compat_43_netbsd32_olseek }, /* 19 = compat_43_netbsd32_olseek */ { 0, 0, 0, linux_sys_getpid }, /* 20 = getpid */ @@ -82,87 +84,87 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 21 = unimplemented mount */ { 0, 0, 0, linux_sys_nosys }, /* 22 = unimplemented umount */ - { 1, s(struct netbsd32_setuid_args), 0, + { ns(struct netbsd32_setuid_args), 0, netbsd32_setuid }, /* 23 = linux_setuid16 */ { 0, 0, 0, sys_getuid }, /* 24 = linux_getuid16 */ - { 1, s(struct linux32_sys_stime_args), 0, + { ns(struct linux32_sys_stime_args), 0, linux32_sys_stime }, /* 25 = stime */ { 0, 0, 0, linux_sys_nosys }, /* 26 = unimplemented ptrace */ - { 1, s(struct linux32_sys_alarm_args), 0, + { ns(struct linux32_sys_alarm_args), 0, linux32_sys_alarm }, /* 27 = alarm */ { 0, 0, 0, linux_sys_nosys }, /* 28 = obsolete ofstat */ { 0, 0, 0, linux_sys_pause }, /* 29 = pause */ - { 2, s(struct linux32_sys_utime_args), 0, + { ns(struct linux32_sys_utime_args), 0, linux32_sys_utime }, /* 30 = utime */ { 0, 0, 0, linux_sys_nosys }, /* 31 = obsolete stty */ { 0, 0, 0, linux_sys_nosys }, /* 32 = obsolete gtty */ - { 2, s(struct netbsd32_access_args), 0, + { ns(struct netbsd32_access_args), 0, netbsd32_access }, /* 33 = netbsd32_access */ - { 1, s(struct linux32_sys_nice_args), 0, + { ns(struct linux32_sys_nice_args), 0, linux32_sys_nice }, /* 34 = nice */ { 0, 0, 0, linux_sys_nosys }, /* 35 = obsolete ftime */ { 0, 0, 0, sys_sync }, /* 36 = sync */ - { 2, s(struct linux32_sys_kill_args), 0, + { ns(struct linux32_sys_kill_args), 0, linux32_sys_kill }, /* 37 = kill */ - { 2, s(struct linux32_sys_rename_args), 0, + { ns(struct linux32_sys_rename_args), 0, linux32_sys_rename }, /* 38 = rename */ - { 2, s(struct netbsd32_mkdir_args), 0, + { ns(struct netbsd32_mkdir_args), 0, netbsd32_mkdir }, /* 39 = netbsd32_mkdir */ - { 1, s(struct netbsd32_rmdir_args), 0, + { ns(struct netbsd32_rmdir_args), 0, netbsd32_rmdir }, /* 40 = netbsd32_rmdir */ - { 1, s(struct netbsd32_dup_args), 0, + { ns(struct netbsd32_dup_args), 0, netbsd32_dup }, /* 41 = netbsd32_dup */ - { 1, s(struct linux32_sys_pipe_args), 0, + { ns(struct linux32_sys_pipe_args), 0, linux32_sys_pipe }, /* 42 = pipe */ - { 1, s(struct linux32_sys_times_args), 0, + { ns(struct linux32_sys_times_args), 0, linux32_sys_times }, /* 43 = times */ { 0, 0, 0, linux_sys_nosys }, /* 44 = obsolete prof */ - { 1, s(struct linux32_sys_brk_args), 0, + { ns(struct linux32_sys_brk_args), 0, linux32_sys_brk }, /* 45 = brk */ - { 1, s(struct netbsd32_setgid_args), 0, + { ns(struct netbsd32_setgid_args), 0, netbsd32_setgid }, /* 46 = linux_setgid16 */ { 0, 0, 0, sys_getgid }, /* 47 = linux_getgid16 */ - { 2, s(struct linux32_sys_signal_args), 0, + { ns(struct linux32_sys_signal_args), 0, linux32_sys_signal }, /* 48 = signal */ { 0, 0, 0, sys_geteuid }, /* 49 = linux_geteuid16 */ { 0, 0, 0, sys_getegid }, /* 50 = linux_getegid16 */ - { 1, s(struct netbsd32_acct_args), 0, + { ns(struct netbsd32_acct_args), 0, netbsd32_acct }, /* 51 = netbsd32_acct */ { 0, 0, 0, linux_sys_nosys }, /* 52 = obsolete phys */ { 0, 0, 0, linux_sys_nosys }, /* 53 = obsolete lock */ - { 3, s(struct linux32_sys_ioctl_args), 0, + { ns(struct linux32_sys_ioctl_args), 0, linux32_sys_ioctl }, /* 54 = ioctl */ - { 3, s(struct linux32_sys_fcntl_args), 0, + { ns(struct linux32_sys_fcntl_args), 0, linux32_sys_fcntl }, /* 55 = fcntl */ { 0, 0, 0, linux_sys_nosys }, /* 56 = obsolete mpx */ - { 2, s(struct netbsd32_setpgid_args), 0, + { ns(struct netbsd32_setpgid_args), 0, netbsd32_setpgid }, /* 57 = netbsd32_setpgid */ { 0, 0, 0, linux_sys_nosys }, /* 58 = obsolete ulimit */ - { 1, s(struct linux32_sys_oldolduname_args), 0, + { ns(struct linux32_sys_oldolduname_args), 0, linux32_sys_oldolduname }, /* 59 = oldolduname */ - { 1, s(struct netbsd32_umask_args), 0, + { ns(struct netbsd32_umask_args), 0, netbsd32_umask }, /* 60 = netbsd32_umask */ - { 1, s(struct netbsd32_chroot_args), 0, + { ns(struct netbsd32_chroot_args), 0, netbsd32_chroot }, /* 61 = netbsd32_chroot */ { 0, 0, 0, linux_sys_nosys }, /* 62 = unimplemented ustat */ - { 2, s(struct netbsd32_dup2_args), 0, + { ns(struct netbsd32_dup2_args), 0, netbsd32_dup2 }, /* 63 = netbsd32_dup2 */ { 0, 0, 0, linux_sys_getppid }, /* 64 = getppid */ @@ -176,77 +178,77 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 68 = unimplemented siggetmask */ { 0, 0, 0, linux_sys_nosys }, /* 69 = unimplemented sigsetmask */ - { 2, s(struct linux32_sys_setreuid16_args), 0, + { ns(struct linux32_sys_setreuid16_args), 0, linux32_sys_setreuid16 }, /* 70 = setreuid16 */ - { 2, s(struct linux32_sys_setregid16_args), 0, + { ns(struct linux32_sys_setregid16_args), 0, linux32_sys_setregid16 }, /* 71 = setregid16 */ { 0, 0, 0, linux_sys_nosys }, /* 72 = unimplemented sigsuspend */ { 0, 0, 0, linux_sys_nosys }, /* 73 = unimplemented sigpending */ - { 2, s(struct compat_43_netbsd32_osethostname_args), 0, + { ns(struct compat_43_netbsd32_osethostname_args), 0, compat_43_netbsd32_osethostname }, /* 74 = compat_43_netbsd32_osethostname */ - { 2, s(struct linux32_sys_setrlimit_args), 0, + { ns(struct linux32_sys_setrlimit_args), 0, linux32_sys_setrlimit }, /* 75 = setrlimit */ - { 2, s(struct linux32_sys_getrlimit_args), 0, + { ns(struct linux32_sys_getrlimit_args), 0, linux32_sys_getrlimit }, /* 76 = getrlimit */ - { 2, s(struct netbsd32_getrusage_args), 0, + { ns(struct netbsd32_getrusage_args), 0, netbsd32_getrusage }, /* 77 = netbsd32_getrusage */ - { 2, s(struct linux32_sys_gettimeofday_args), 0, + { ns(struct linux32_sys_gettimeofday_args), 0, linux32_sys_gettimeofday }, /* 78 = gettimeofday */ - { 2, s(struct linux32_sys_settimeofday_args), 0, + { ns(struct linux32_sys_settimeofday_args), 0, linux32_sys_settimeofday }, /* 79 = settimeofday */ - { 2, s(struct linux32_sys_getgroups16_args), 0, + { ns(struct linux32_sys_getgroups16_args), 0, linux32_sys_getgroups16 }, /* 80 = getgroups16 */ - { 2, s(struct linux32_sys_setgroups16_args), 0, + { ns(struct linux32_sys_setgroups16_args), 0, linux32_sys_setgroups16 }, /* 81 = setgroups16 */ - { 1, s(struct linux32_sys_oldselect_args), 0, + { ns(struct linux32_sys_oldselect_args), 0, linux32_sys_oldselect }, /* 82 = oldselect */ - { 2, s(struct netbsd32_symlink_args), 0, + { ns(struct netbsd32_symlink_args), 0, netbsd32_symlink }, /* 83 = netbsd32_symlink */ - { 2, s(struct compat_43_netbsd32_lstat43_args), 0, + { ns(struct compat_43_netbsd32_lstat43_args), 0, compat_43_netbsd32_lstat43 }, /* 84 = compat_43_netbsd32_lstat43 */ - { 3, s(struct linux32_sys_readlink_args), 0, + { ns(struct linux32_sys_readlink_args), 0, linux32_sys_readlink }, /* 85 = readlink */ { 0, 0, 0, linux_sys_nosys }, /* 86 = unimplemented uselib */ - { 1, s(struct linux32_sys_swapon_args), 0, + { ns(struct linux32_sys_swapon_args), 0, linux32_sys_swapon }, /* 87 = swapon */ - { 4, s(struct linux32_sys_reboot_args), 0, + { ns(struct linux32_sys_reboot_args), 0, linux32_sys_reboot }, /* 88 = reboot */ { 0, 0, 0, linux_sys_nosys }, /* 89 = unimplemented readdir */ - { 1, s(struct linux32_sys_old_mmap_args), 0, + { ns(struct linux32_sys_old_mmap_args), 0, linux32_sys_old_mmap }, /* 90 = old_mmap */ - { 2, s(struct netbsd32_munmap_args), 0, + { ns(struct netbsd32_munmap_args), 0, netbsd32_munmap }, /* 91 = netbsd32_munmap */ - { 2, s(struct linux32_sys_truncate_args), 0, + { ns(struct linux32_sys_truncate_args), 0, linux32_sys_truncate }, /* 92 = truncate */ - { 2, s(struct compat_43_netbsd32_oftruncate_args), 0, + { ns(struct compat_43_netbsd32_oftruncate_args), 0, compat_43_netbsd32_oftruncate }, /* 93 = compat_43_netbsd32_oftruncate */ - { 2, s(struct netbsd32_fchmod_args), 0, + { ns(struct netbsd32_fchmod_args), 0, netbsd32_fchmod }, /* 94 = netbsd32_fchmod */ - { 3, s(struct linux32_sys_fchown16_args), 0, + { ns(struct linux32_sys_fchown16_args), 0, linux32_sys_fchown16 }, /* 95 = fchown16 */ - { 2, s(struct linux32_sys_getpriority_args), 0, + { ns(struct linux32_sys_getpriority_args), 0, linux32_sys_getpriority }, /* 96 = getpriority */ - { 3, s(struct linux32_sys_setpriority_args), 0, + { ns(struct linux32_sys_setpriority_args), 0, linux32_sys_setpriority }, /* 97 = setpriority */ { 0, 0, 0, linux_sys_nosys }, /* 98 = unimplemented profil */ - { 2, s(struct linux32_sys_statfs_args), 0, + { ns(struct linux32_sys_statfs_args), 0, linux32_sys_statfs }, /* 99 = statfs */ { 0, 0, 0, linux_sys_nosys }, /* 100 = unimplemented fstatfs */ { 0, 0, 0, linux_sys_nosys }, /* 101 = unimplemented ioperm */ - { 2, s(struct linux32_sys_socketcall_args), 0, + { ns(struct linux32_sys_socketcall_args), 0, linux32_sys_socketcall }, /* 102 = socketcall */ { 0, 0, 0, linux_sys_nosys }, /* 103 = unimplemented syslog */ - { 3, s(struct netbsd32_setitimer_args), 0, + { ns(struct netbsd32_setitimer_args), 0, netbsd32_setitimer }, /* 104 = netbsd32_setitimer */ - { 2, s(struct netbsd32_getitimer_args), 0, + { ns(struct netbsd32_getitimer_args), 0, netbsd32_getitimer }, /* 105 = netbsd32_getitimer */ { 0, 0, 0, linux_sys_nosys }, /* 106 = unimplemented stat */ @@ -264,29 +266,29 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 112 = unimplemented idle */ { 0, 0, 0, linux_sys_nosys }, /* 113 = unimplemented vm86old */ - { 4, s(struct linux32_sys_wait4_args), 0, + { ns(struct linux32_sys_wait4_args), 0, linux32_sys_wait4 }, /* 114 = wait4 */ - { 1, s(struct linux32_sys_swapoff_args), 0, + { ns(struct linux32_sys_swapoff_args), 0, linux32_sys_swapoff }, /* 115 = swapoff */ - { 1, s(struct linux32_sys_sysinfo_args), 0, + { ns(struct linux32_sys_sysinfo_args), 0, linux32_sys_sysinfo }, /* 116 = sysinfo */ { 0, 0, 0, linux_sys_nosys }, /* 117 = unimplemented ipc */ - { 1, s(struct netbsd32_fsync_args), 0, + { ns(struct netbsd32_fsync_args), 0, netbsd32_fsync }, /* 118 = netbsd32_fsync */ - { 1, s(struct linux32_sys_sigreturn_args), 0, + { ns(struct linux32_sys_sigreturn_args), 0, linux32_sys_sigreturn }, /* 119 = sigreturn */ - { 2, s(struct linux32_sys_clone_args), 0, + { ns(struct linux32_sys_clone_args), 0, linux32_sys_clone }, /* 120 = clone */ { 0, 0, 0, linux_sys_nosys }, /* 121 = unimplemented setdomainname */ - { 1, s(struct linux32_sys_uname_args), 0, + { ns(struct linux32_sys_uname_args), 0, linux32_sys_uname }, /* 122 = uname */ { 0, 0, 0, linux_sys_nosys }, /* 123 = unimplemented modify_ldt */ { 0, 0, 0, linux_sys_nosys }, /* 124 = unimplemented adjtimex */ - { 3, s(struct linux32_sys_mprotect_args), 0, + { ns(struct linux32_sys_mprotect_args), 0, linux32_sys_mprotect }, /* 125 = mprotect */ { 0, 0, 0, linux_sys_nosys }, /* 126 = unimplemented sigprocmask */ @@ -302,7 +304,7 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 131 = unimplemented quotactl */ { 0, 0, 0, linux_sys_nosys }, /* 132 = unimplemented getpgid */ - { 1, s(struct netbsd32_fchdir_args), 0, + { ns(struct netbsd32_fchdir_args), 0, netbsd32_fchdir }, /* 133 = netbsd32_fchdir */ { 0, 0, 0, linux_sys_nosys }, /* 134 = unimplemented bdflush */ @@ -312,45 +314,45 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 136 = unimplemented personality */ { 0, 0, 0, linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ - { 1, s(struct linux32_sys_setfsuid_args), 0, + { ns(struct linux32_sys_setfsuid_args), 0, linux32_sys_setfsuid }, /* 138 = setfsuid16 */ { 0, 0, 0, linux_sys_getfsuid }, /* 139 = getfsuid16 */ - { 5, s(struct linux32_sys_llseek_args), 0, + { ns(struct linux32_sys_llseek_args), 0, linux32_sys_llseek }, /* 140 = llseek */ - { 3, s(struct linux32_sys_getdents_args), 0, + { ns(struct linux32_sys_getdents_args), 0, linux32_sys_getdents }, /* 141 = getdents */ - { 5, s(struct linux32_sys_select_args), 0, + { ns(struct linux32_sys_select_args), 0, linux32_sys_select }, /* 142 = select */ - { 2, s(struct netbsd32_flock_args), 0, + { ns(struct netbsd32_flock_args), 0, netbsd32_flock }, /* 143 = netbsd32_flock */ { 0, 0, 0, linux_sys_nosys }, /* 144 = unimplemented msync */ - { 3, s(struct netbsd32_readv_args), 0, + { ns(struct netbsd32_readv_args), 0, netbsd32_readv }, /* 145 = netbsd32_readv */ - { 3, s(struct netbsd32_writev_args), 0, + { ns(struct netbsd32_writev_args), 0, netbsd32_writev }, /* 146 = netbsd32_writev */ - { 1, s(struct netbsd32_getsid_args), 0, + { ns(struct netbsd32_getsid_args), 0, netbsd32_getsid }, /* 147 = netbsd32_getsid */ - { 1, s(struct linux32_sys_fdatasync_args), 0, + { ns(struct linux32_sys_fdatasync_args), 0, linux32_sys_fdatasync }, /* 148 = fdatasync */ - { 1, s(struct linux32_sys___sysctl_args), 0, + { ns(struct linux32_sys___sysctl_args), 0, linux32_sys___sysctl }, /* 149 = __sysctl */ { 0, 0, 0, linux_sys_nosys }, /* 150 = unimplemented mlock */ { 0, 0, 0, linux_sys_nosys }, /* 151 = unimplemented munlock */ - { 1, s(struct netbsd32_mlockall_args), 0, + { ns(struct netbsd32_mlockall_args), 0, netbsd32_mlockall }, /* 152 = netbsd32_mlockall */ { 0, 0, 0, sys_munlockall }, /* 153 = munlockall */ { 0, 0, 0, linux_sys_nosys }, /* 154 = unimplemented sched_setparam */ - { 2, s(struct linux32_sys_sched_getparam_args), 0, + { ns(struct linux32_sys_sched_getparam_args), 0, linux32_sys_sched_getparam }, /* 155 = sched_getparam */ - { 3, s(struct linux32_sys_sched_setscheduler_args), 0, + { ns(struct linux32_sys_sched_setscheduler_args), 0, linux32_sys_sched_setscheduler }, /* 156 = sched_setscheduler */ - { 1, s(struct linux32_sys_sched_getscheduler_args), 0, + { ns(struct linux32_sys_sched_getscheduler_args), 0, linux32_sys_sched_getscheduler }, /* 157 = sched_getscheduler */ { 0, 0, 0, linux_sys_sched_yield }, /* 158 = sched_yield */ @@ -360,11 +362,11 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 160 = unimplemented sched_get_priority_min */ { 0, 0, 0, linux_sys_nosys }, /* 161 = unimplemented sched_rr_get_interval */ - { 1, s(struct netbsd32_nanosleep_args), 0, + { ns(struct netbsd32_nanosleep_args), 0, netbsd32_nanosleep }, /* 162 = netbsd32_nanosleep */ - { 4, s(struct linux32_sys_mremap_args), 0, + { ns(struct linux32_sys_mremap_args), 0, linux32_sys_mremap }, /* 163 = mremap */ - { 3, s(struct linux32_sys_setresuid16_args), 0, + { ns(struct linux32_sys_setresuid16_args), 0, linux32_sys_setresuid16 }, /* 164 = setresuid16 */ { 0, 0, 0, linux_sys_nosys }, /* 165 = unimplemented getresuid16 */ @@ -372,21 +374,21 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 166 = unimplemented vm86 */ { 0, 0, 0, linux_sys_nosys }, /* 167 = unimplemented query_module */ - { 3, s(struct netbsd32_poll_args), 0, + { ns(struct netbsd32_poll_args), 0, netbsd32_poll }, /* 168 = netbsd32_poll */ { 0, 0, 0, linux_sys_nosys }, /* 169 = unimplemented nfsservctl */ - { 3, s(struct linux32_sys_setresgid16_args), 0, + { ns(struct linux32_sys_setresgid16_args), 0, linux32_sys_setresgid16 }, /* 170 = setresgid16 */ { 0, 0, 0, linux_sys_nosys }, /* 171 = unimplemented int */ { 0, 0, 0, linux_sys_nosys }, /* 172 = unimplemented prctl */ - { 1, s(struct linux32_sys_rt_sigreturn_args), 0, + { ns(struct linux32_sys_rt_sigreturn_args), 0, linux32_sys_rt_sigreturn }, /* 173 = rt_sigreturn */ - { 4, s(struct linux32_sys_rt_sigaction_args), 0, + { ns(struct linux32_sys_rt_sigaction_args), 0, linux32_sys_rt_sigaction }, /* 174 = rt_sigaction */ - { 4, s(struct linux32_sys_rt_sigprocmask_args), 0, + { ns(struct linux32_sys_rt_sigprocmask_args), 0, linux32_sys_rt_sigprocmask }, /* 175 = rt_sigprocmask */ { 0, 0, 0, linux_sys_nosys }, /* 176 = unimplemented rt_sigpending */ @@ -394,15 +396,15 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 177 = unimplemented rt_sigtimedwait */ { 0, 0, 0, linux_sys_nosys }, /* 178 = unimplemented rt_queueinfo */ - { 2, s(struct linux32_sys_rt_sigsuspend_args), 0, + { ns(struct linux32_sys_rt_sigsuspend_args), 0, linux32_sys_rt_sigsuspend }, /* 179 = rt_sigsuspend */ { 0, 0, 0, linux_sys_nosys }, /* 180 = unimplemented pread */ { 0, 0, 0, linux_sys_nosys }, /* 181 = unimplemented pwrite */ - { 3, s(struct linux32_sys_chown16_args), 0, + { ns(struct linux32_sys_chown16_args), 0, linux32_sys_chown16 }, /* 182 = chown16 */ - { 2, s(struct netbsd32___getcwd_args), 0, + { ns(struct netbsd32___getcwd_args), 0, netbsd32___getcwd }, /* 183 = netbsd32___getcwd */ { 0, 0, 0, linux_sys_nosys }, /* 184 = unimplemented capget */ @@ -418,21 +420,21 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 189 = unimplemented putpmsg */ { 0, 0, 0, sys___vfork14 }, /* 190 = __vfork14 */ - { 2, s(struct linux32_sys_ugetrlimit_args), 0, + { ns(struct linux32_sys_ugetrlimit_args), 0, linux32_sys_ugetrlimit }, /* 191 = ugetrlimit */ - { 6, s(struct linux32_sys_mmap2_args), 0, + { ns(struct linux32_sys_mmap2_args), 0, linux32_sys_mmap2 }, /* 192 = mmap2 */ { 0, 0, 0, linux_sys_nosys }, /* 193 = unimplemented truncate64 */ { 0, 0, 0, linux_sys_nosys }, /* 194 = unimplemented ftruncate64 */ - { 2, s(struct linux32_sys_stat64_args), 0, + { ns(struct linux32_sys_stat64_args), 0, linux32_sys_stat64 }, /* 195 = stat64 */ - { 2, s(struct linux32_sys_lstat64_args), 0, + { ns(struct linux32_sys_lstat64_args), 0, linux32_sys_lstat64 }, /* 196 = lstat64 */ - { 2, s(struct linux32_sys_fstat64_args), 0, + { ns(struct linux32_sys_fstat64_args), 0, linux32_sys_fstat64 }, /* 197 = fstat64 */ - { 3, s(struct netbsd32___posix_lchown_args), 0, + { ns(struct netbsd32___posix_lchown_args), 0, netbsd32___posix_lchown }, /* 198 = netbsd32___posix_lchown */ { 0, 0, 0, sys_getuid }, /* 199 = getuid */ @@ -442,31 +444,31 @@ struct sysent linux32_sysent[] = { sys_geteuid }, /* 201 = geteuid */ { 0, 0, 0, sys_getegid }, /* 202 = getegid */ - { 2, s(struct netbsd32_setreuid_args), 0, + { ns(struct netbsd32_setreuid_args), 0, netbsd32_setreuid }, /* 203 = netbsd32_setreuid */ - { 2, s(struct netbsd32_setregid_args), 0, + { ns(struct netbsd32_setregid_args), 0, netbsd32_setregid }, /* 204 = netbsd32_setregid */ - { 2, s(struct netbsd32_getgroups_args), 0, + { ns(struct netbsd32_getgroups_args), 0, netbsd32_getgroups }, /* 205 = netbsd32_getgroups */ - { 2, s(struct netbsd32_setgroups_args), 0, + { ns(struct netbsd32_setgroups_args), 0, netbsd32_setgroups }, /* 206 = netbsd32_setgroups */ - { 3, s(struct netbsd32___posix_fchown_args), 0, + { ns(struct netbsd32___posix_fchown_args), 0, netbsd32___posix_fchown }, /* 207 = netbsd32___posix_fchown */ - { 3, s(struct linux32_sys_setresuid_args), 0, + { ns(struct linux32_sys_setresuid_args), 0, linux32_sys_setresuid }, /* 208 = setresuid */ { 0, 0, 0, linux_sys_nosys }, /* 209 = unimplemented getresuid */ - { 3, s(struct linux32_sys_setresgid_args), 0, + { ns(struct linux32_sys_setresgid_args), 0, linux32_sys_setresgid }, /* 210 = setresgid */ { 0, 0, 0, linux_sys_nosys }, /* 211 = unimplemented getresgid */ - { 3, s(struct netbsd32___posix_chown_args), 0, + { ns(struct netbsd32___posix_chown_args), 0, netbsd32___posix_chown }, /* 212 = netbsd32___posix_chown */ - { 1, s(struct netbsd32_setuid_args), 0, + { ns(struct netbsd32_setuid_args), 0, netbsd32_setuid }, /* 213 = netbsd32_setuid */ - { 1, s(struct netbsd32_setgid_args), 0, + { ns(struct netbsd32_setgid_args), 0, netbsd32_setgid }, /* 214 = netbsd32_setgid */ - { 1, s(struct linux32_sys_setfsuid_args), 0, + { ns(struct linux32_sys_setfsuid_args), 0, linux32_sys_setfsuid }, /* 215 = setfsuid */ { 0, 0, 0, linux_sys_getfsuid }, /* 216 = getfsuid */ @@ -474,11 +476,11 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 217 = unimplemented pivot_root */ { 0, 0, 0, linux_sys_nosys }, /* 218 = unimplemented mincore */ - { 3, s(struct netbsd32_madvise_args), 0, + { ns(struct netbsd32_madvise_args), 0, netbsd32_madvise }, /* 219 = netbsd32_madvise */ - { 3, s(struct linux32_sys_getdents64_args), 0, + { ns(struct linux32_sys_getdents64_args), 0, linux32_sys_getdents64 }, /* 220 = getdents64 */ - { 3, s(struct linux32_sys_fcntl64_args), 0, + { ns(struct linux32_sys_fcntl64_args), 0, linux32_sys_fcntl64 }, /* 221 = fcntl64 */ { 0, 0, 0, linux_sys_nosys }, /* 222 = unimplemented / * unused * / */ @@ -540,7 +542,7 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 250 = unimplemented fadvise64 */ { 0, 0, 0, linux_sys_nosys }, /* 251 = unimplemented / * unused * / */ - { 1, s(struct linux32_sys_exit_group_args), 0, + { ns(struct linux32_sys_exit_group_args), 0, linux32_sys_exit_group }, /* 252 = exit_group */ { 0, 0, 0, linux_sys_nosys }, /* 253 = unimplemented lookup_dcookie */