This commit is contained in:
njoly 2008-01-15 22:40:14 +00:00
parent 5cec0f492f
commit f5183fca22
16 changed files with 346 additions and 242 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.33 2007/12/24 14:21:41 njoly Exp $ */
/* $NetBSD: linux_syscall.h,v 1.34 2008/01/15 22:40:14 njoly Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.32 2007/12/24 14:17:17 njoly Exp
* created from NetBSD: syscalls.master,v 1.33 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@ -60,7 +60,7 @@
/* syscall: "chmod" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "lchown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "lchown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_lchown16 16
/* 17 is obsolete break */
@ -191,11 +191,11 @@
/* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
#define LINUX_SYS_sigsetmask 69
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
#define LINUX_SYS_setreuid 70
/* syscall: "setreuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setreuid16 70
/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
#define LINUX_SYS_setregid 71
/* syscall: "setregid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setregid16 71
/* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */
#define LINUX_SYS_sigsuspend 72
@ -221,11 +221,11 @@
/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_settimeofday 79
/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_getgroups 80
/* syscall: "getgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_getgroups16 80
/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
#define LINUX_SYS_setgroups 81
/* syscall: "setgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_setgroups16 81
/* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
#define LINUX_SYS_oldselect 82
@ -270,7 +270,7 @@
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define LINUX_SYS_fchmod 94
/* syscall: "fchown16" ret: "int" args: "int" "int" "int" */
/* syscall: "fchown16" ret: "int" args: "int" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_fchown16 95
/* syscall: "getpriority" ret: "int" args: "int" "int" */
@ -426,20 +426,20 @@
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 163
/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
#define LINUX_SYS_setresuid 164
/* syscall: "setresuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setresuid16 164
/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
#define LINUX_SYS_getresuid 165
/* syscall: "getresuid16" ret: "int" args: "linux_uid16_t *" "linux_uid16_t *" "linux_uid16_t *" */
#define LINUX_SYS_getresuid16 165
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define LINUX_SYS_poll 168
/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
#define LINUX_SYS_setresgid 170
/* syscall: "setresgid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setresgid16 170
/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
#define LINUX_SYS_getresgid 171
/* syscall: "getresgid16" ret: "int" args: "linux_gid16_t *" "linux_gid16_t *" "linux_gid16_t *" */
#define LINUX_SYS_getresgid16 171
/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
#define LINUX_SYS_rt_sigaction 174
@ -462,7 +462,7 @@
/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
#define LINUX_SYS_pwrite 181
/* syscall: "chown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "chown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_chown16 182
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.33 2007/12/24 14:21:41 njoly Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.34 2008/01/15 22:40:14 njoly Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.32 2007/12/24 14:17:17 njoly Exp
* created from NetBSD: syscalls.master,v 1.33 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -86,8 +86,8 @@ struct sys_chmod_args;
struct linux_sys_lchown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_lchown16)
@ -204,9 +204,17 @@ struct linux_sys_sigsetmask_args {
};
check_syscall_args(linux_sys_sigsetmask)
struct sys_setreuid_args;
struct linux_sys_setreuid16_args {
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
};
check_syscall_args(linux_sys_setreuid16)
struct sys_setregid_args;
struct linux_sys_setregid16_args {
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
};
check_syscall_args(linux_sys_setregid16)
struct linux_sys_sigsuspend_args {
syscallarg(void *) restart;
@ -248,9 +256,17 @@ struct linux_sys_settimeofday_args {
};
check_syscall_args(linux_sys_settimeofday)
struct sys_getgroups_args;
struct linux_sys_getgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_getgroups16)
struct sys_setgroups_args;
struct linux_sys_setgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_setgroups16)
struct linux_sys_oldselect_args {
syscallarg(struct linux_oldselect *) lsp;
@ -306,8 +322,8 @@ struct sys_fchmod_args;
struct linux_sys_fchown16_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_fchown16)
@ -550,35 +566,35 @@ struct linux_sys_mremap_args {
};
check_syscall_args(linux_sys_mremap)
struct linux_sys_setresuid_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
struct linux_sys_setresuid16_args {
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
syscallarg(linux_uid16_t) suid;
};
check_syscall_args(linux_sys_setresuid)
check_syscall_args(linux_sys_setresuid16)
struct linux_sys_getresuid_args {
syscallarg(uid_t *) ruid;
syscallarg(uid_t *) euid;
syscallarg(uid_t *) suid;
struct linux_sys_getresuid16_args {
syscallarg(linux_uid16_t *) ruid;
syscallarg(linux_uid16_t *) euid;
syscallarg(linux_uid16_t *) suid;
};
check_syscall_args(linux_sys_getresuid)
check_syscall_args(linux_sys_getresuid16)
struct sys_poll_args;
struct linux_sys_setresgid_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
struct linux_sys_setresgid16_args {
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
syscallarg(linux_gid16_t) sgid;
};
check_syscall_args(linux_sys_setresgid)
check_syscall_args(linux_sys_setresgid16)
struct linux_sys_getresgid_args {
syscallarg(gid_t *) rgid;
syscallarg(gid_t *) egid;
syscallarg(gid_t *) sgid;
struct linux_sys_getresgid16_args {
syscallarg(linux_gid16_t *) rgid;
syscallarg(linux_gid16_t *) egid;
syscallarg(linux_gid16_t *) sgid;
};
check_syscall_args(linux_sys_getresgid)
check_syscall_args(linux_sys_getresgid16)
struct linux_sys_rt_sigaction_args {
syscallarg(int) signum;
@ -633,8 +649,8 @@ check_syscall_args(linux_sys_pwrite)
struct linux_sys_chown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_chown16)
@ -697,13 +713,33 @@ struct sys_setgroups_args;
struct sys___posix_fchown_args;
struct linux_sys_setresuid_args;
struct linux_sys_setresuid_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
};
check_syscall_args(linux_sys_setresuid)
struct linux_sys_getresuid_args;
struct linux_sys_getresuid_args {
syscallarg(uid_t *) ruid;
syscallarg(uid_t *) euid;
syscallarg(uid_t *) suid;
};
check_syscall_args(linux_sys_getresuid)
struct linux_sys_setresgid_args;
struct linux_sys_setresgid_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
};
check_syscall_args(linux_sys_setresgid)
struct linux_sys_getresgid_args;
struct linux_sys_getresgid_args {
syscallarg(gid_t *) rgid;
syscallarg(gid_t *) egid;
syscallarg(gid_t *) sgid;
};
check_syscall_args(linux_sys_getresgid)
struct sys___posix_chown_args;
@ -990,9 +1026,9 @@ int linux_sys_siggetmask(struct lwp *, const void *, register_t *);
int linux_sys_sigsetmask(struct lwp *, const struct linux_sys_sigsetmask_args *, register_t *);
int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
int linux_sys_setreuid16(struct lwp *, const struct linux_sys_setreuid16_args *, register_t *);
int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
int linux_sys_setregid16(struct lwp *, const struct linux_sys_setregid16_args *, register_t *);
int linux_sys_sigsuspend(struct lwp *, const struct linux_sys_sigsuspend_args *, register_t *);
@ -1010,9 +1046,9 @@ int linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_arg
int linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
int linux_sys_getgroups16(struct lwp *, const struct linux_sys_getgroups16_args *, register_t *);
int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
int linux_sys_setgroups16(struct lwp *, const struct linux_sys_setgroups16_args *, register_t *);
int linux_sys_oldselect(struct lwp *, const struct linux_sys_oldselect_args *, register_t *);
@ -1147,15 +1183,15 @@ int sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *)
int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
int linux_sys_setresuid16(struct lwp *, const struct linux_sys_setresuid16_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_getresuid16(struct lwp *, const struct linux_sys_getresuid16_args *, register_t *);
int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
int linux_sys_setresgid16(struct lwp *, const struct linux_sys_setresgid16_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int linux_sys_getresgid16(struct lwp *, const struct linux_sys_getresgid16_args *, register_t *);
int linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
@ -1196,8 +1232,24 @@ int linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, regis
int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.33 2007/12/24 14:21:41 njoly Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.34 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.32 2007/12/24 14:17:17 njoly Exp
* created from NetBSD: syscalls.master,v 1.33 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.33 2007/12/24 14:21:41 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.34 2008/01/15 22:40:15 njoly Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -99,8 +99,8 @@ const char *const linux_syscallnames[] = {
/* 67 */ "sigaction",
/* 68 */ "siggetmask",
/* 69 */ "sigsetmask",
/* 70 */ "setreuid",
/* 71 */ "setregid",
/* 70 */ "setreuid16",
/* 71 */ "setregid16",
/* 72 */ "sigsuspend",
/* 73 */ "sigpending",
/* 74 */ "sethostname",
@ -109,8 +109,8 @@ const char *const linux_syscallnames[] = {
/* 77 */ "getrusage",
/* 78 */ "gettimeofday",
/* 79 */ "settimeofday",
/* 80 */ "getgroups",
/* 81 */ "setgroups",
/* 80 */ "getgroups16",
/* 81 */ "setgroups16",
/* 82 */ "oldselect",
/* 83 */ "symlink",
/* 84 */ "oolstat",
@ -197,14 +197,14 @@ const char *const linux_syscallnames[] = {
/* 161 */ "#161 (unimplemented sched_rr_get_interval)",
/* 162 */ "nanosleep",
/* 163 */ "mremap",
/* 164 */ "setresuid",
/* 165 */ "getresuid",
/* 164 */ "setresuid16",
/* 165 */ "getresuid16",
/* 166 */ "#166 (unimplemented)",
/* 167 */ "#167 (unimplemented query_module)",
/* 168 */ "poll",
/* 169 */ "#169 (unimplemented nfsservctl)",
/* 170 */ "setresgid",
/* 171 */ "getresgid",
/* 170 */ "setresgid16",
/* 171 */ "getresgid16",
/* 172 */ "#172 (unimplemented prctl)",
/* 173 */ "#173 (unimplemented rt_sigreturn)",
/* 174 */ "rt_sigaction",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.33 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_sysent.c,v 1.34 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.32 2007/12/24 14:17:17 njoly Exp
* created from NetBSD: syscalls.master,v 1.33 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.33 2007/12/24 14:21:42 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.34 2008/01/15 22:40:15 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -171,10 +171,10 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_siggetmask },/* 68 = siggetmask */
{ ns(struct linux_sys_sigsetmask_args), 0,
(sy_call_t *)linux_sys_sigsetmask },/* 69 = sigsetmask */
{ ns(struct sys_setreuid_args), 0,
(sy_call_t *)sys_setreuid }, /* 70 = setreuid */
{ ns(struct sys_setregid_args), 0,
(sy_call_t *)sys_setregid }, /* 71 = setregid */
{ ns(struct linux_sys_setreuid16_args), 0,
(sy_call_t *)linux_sys_setreuid16 },/* 70 = setreuid16 */
{ ns(struct linux_sys_setregid16_args), 0,
(sy_call_t *)linux_sys_setregid16 },/* 71 = setregid16 */
{ ns(struct linux_sys_sigsuspend_args), 0,
(sy_call_t *)linux_sys_sigsuspend },/* 72 = sigsuspend */
{ ns(struct linux_sys_sigpending_args), 0,
@ -191,10 +191,10 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_gettimeofday },/* 78 = gettimeofday */
{ ns(struct linux_sys_settimeofday_args), 0,
(sy_call_t *)linux_sys_settimeofday },/* 79 = settimeofday */
{ ns(struct sys_getgroups_args), 0,
(sy_call_t *)sys_getgroups }, /* 80 = getgroups */
{ ns(struct sys_setgroups_args), 0,
(sy_call_t *)sys_setgroups }, /* 81 = setgroups */
{ ns(struct linux_sys_getgroups16_args), 0,
(sy_call_t *)linux_sys_getgroups16 },/* 80 = getgroups16 */
{ ns(struct linux_sys_setgroups16_args), 0,
(sy_call_t *)linux_sys_setgroups16 },/* 81 = setgroups16 */
{ ns(struct linux_sys_oldselect_args), 0,
(sy_call_t *)linux_sys_oldselect }, /* 82 = oldselect */
{ ns(struct sys_symlink_args), 0,
@ -364,10 +364,10 @@ struct sysent linux_sysent[] = {
(sy_call_t *)sys_nanosleep }, /* 162 = nanosleep */
{ ns(struct linux_sys_mremap_args), 0,
(sy_call_t *)linux_sys_mremap }, /* 163 = mremap */
{ ns(struct linux_sys_setresuid_args), 0,
(sy_call_t *)linux_sys_setresuid }, /* 164 = setresuid */
{ ns(struct linux_sys_getresuid_args), 0,
(sy_call_t *)linux_sys_getresuid }, /* 165 = getresuid */
{ ns(struct linux_sys_setresuid16_args), 0,
(sy_call_t *)linux_sys_setresuid16 },/* 164 = setresuid16 */
{ ns(struct linux_sys_getresuid16_args), 0,
(sy_call_t *)linux_sys_getresuid16 },/* 165 = getresuid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 166 = unimplemented */
{ 0, 0, 0,
@ -376,10 +376,10 @@ struct sysent linux_sysent[] = {
(sy_call_t *)sys_poll }, /* 168 = poll */
{ 0, 0, 0,
linux_sys_nosys }, /* 169 = unimplemented nfsservctl */
{ ns(struct linux_sys_setresgid_args), 0,
(sy_call_t *)linux_sys_setresgid }, /* 170 = setresgid */
{ ns(struct linux_sys_getresgid_args), 0,
(sy_call_t *)linux_sys_getresgid }, /* 171 = getresgid */
{ ns(struct linux_sys_setresgid16_args), 0,
(sy_call_t *)linux_sys_setresgid16 },/* 170 = setresgid16 */
{ ns(struct linux_sys_getresgid16_args), 0,
(sy_call_t *)linux_sys_getresgid16 },/* 171 = getresgid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 172 = unimplemented prctl */
{ 0, 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.72 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_syscall.h,v 1.73 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@ -60,7 +60,7 @@
/* syscall: "chmod" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "lchown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "lchown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_lchown16 16
/* syscall: "break" ret: "int" args: "char *" */
@ -205,10 +205,10 @@
/* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
#define LINUX_SYS_sigsetmask 69
/* syscall: "setreuid16" ret: "int" args: "int" "int" */
/* syscall: "setreuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setreuid16 70
/* syscall: "setregid16" ret: "int" args: "int" "int" */
/* syscall: "setregid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setregid16 71
/* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */
@ -235,10 +235,10 @@
/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_settimeofday 79
/* syscall: "getgroups16" ret: "int" args: "int" "linux_gid_t *" */
/* syscall: "getgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_getgroups16 80
/* syscall: "setgroups16" ret: "int" args: "int" "linux_gid_t *" */
/* syscall: "setgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_setgroups16 81
/* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
@ -283,7 +283,7 @@
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define LINUX_SYS_fchmod 94
/* syscall: "fchown16" ret: "int" args: "int" "int" "int" */
/* syscall: "fchown16" ret: "int" args: "int" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_fchown16 95
/* syscall: "getpriority" ret: "int" args: "int" "int" */
@ -448,20 +448,20 @@
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 163
/* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */
/* syscall: "setresuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setresuid16 164
/* syscall: "linux_getresuid16" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
#define LINUX_SYS_linux_getresuid16 165
/* syscall: "getresuid16" ret: "int" args: "linux_uid16_t *" "linux_uid16_t *" "linux_uid16_t *" */
#define LINUX_SYS_getresuid16 165
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define LINUX_SYS_poll 168
/* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */
/* syscall: "setresgid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setresgid16 170
/* syscall: "linux_getresgid16" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
#define LINUX_SYS_linux_getresgid16 171
/* syscall: "getresgid16" ret: "int" args: "linux_gid16_t *" "linux_gid16_t *" "linux_gid16_t *" */
#define LINUX_SYS_getresgid16 171
/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_ucontext *" */
#define LINUX_SYS_rt_sigreturn 173
@ -487,7 +487,7 @@
/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
#define LINUX_SYS_pwrite 181
/* syscall: "chown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "chown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_chown16 182
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.72 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.73 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -86,8 +86,8 @@ struct sys_chmod_args;
struct linux_sys_lchown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_lchown16)
@ -216,14 +216,14 @@ struct linux_sys_sigsetmask_args {
check_syscall_args(linux_sys_sigsetmask)
struct linux_sys_setreuid16_args {
syscallarg(int) ruid;
syscallarg(int) euid;
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
};
check_syscall_args(linux_sys_setreuid16)
struct linux_sys_setregid16_args {
syscallarg(int) rgid;
syscallarg(int) egid;
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
};
check_syscall_args(linux_sys_setregid16)
@ -269,13 +269,13 @@ check_syscall_args(linux_sys_settimeofday)
struct linux_sys_getgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux_gid_t *) gidset;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_getgroups16)
struct linux_sys_setgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux_gid_t *) gidset;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_setgroups16)
@ -333,8 +333,8 @@ struct sys_fchmod_args;
struct linux_sys_fchown16_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_fchown16)
@ -593,24 +593,34 @@ struct linux_sys_mremap_args {
check_syscall_args(linux_sys_mremap)
struct linux_sys_setresuid16_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
syscallarg(linux_uid16_t) suid;
};
check_syscall_args(linux_sys_setresuid16)
struct linux_sys_getresuid_args;
struct linux_sys_getresuid16_args {
syscallarg(linux_uid16_t *) ruid;
syscallarg(linux_uid16_t *) euid;
syscallarg(linux_uid16_t *) suid;
};
check_syscall_args(linux_sys_getresuid16)
struct sys_poll_args;
struct linux_sys_setresgid16_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
syscallarg(linux_gid16_t) sgid;
};
check_syscall_args(linux_sys_setresgid16)
struct linux_sys_getresgid_args;
struct linux_sys_getresgid16_args {
syscallarg(linux_gid16_t *) rgid;
syscallarg(linux_gid16_t *) egid;
syscallarg(linux_gid16_t *) sgid;
};
check_syscall_args(linux_sys_getresgid16)
struct linux_sys_rt_sigreturn_args {
syscallarg(struct linux_ucontext *) ucp;
@ -670,8 +680,8 @@ check_syscall_args(linux_sys_pwrite)
struct linux_sys_chown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_chown16)
@ -1281,13 +1291,13 @@ int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, registe
int linux_sys_setresuid16(struct lwp *, const struct linux_sys_setresuid16_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_getresuid16(struct lwp *, const struct linux_sys_getresuid16_args *, register_t *);
int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
int linux_sys_setresgid16(struct lwp *, const struct linux_sys_setresgid16_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int linux_sys_getresgid16(struct lwp *, const struct linux_sys_getresgid16_args *, register_t *);
int linux_sys_rt_sigreturn(struct lwp *, const struct linux_sys_rt_sigreturn_args *, register_t *);
@ -1342,8 +1352,12 @@ int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, reg
int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.73 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.74 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.73 2007/12/24 14:21:42 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2008/01/15 22:40:15 njoly Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -206,13 +206,13 @@ const char *const linux_syscallnames[] = {
/* 162 */ "nanosleep",
/* 163 */ "mremap",
/* 164 */ "setresuid16",
/* 165 */ "linux_getresuid16",
/* 165 */ "getresuid16",
/* 166 */ "#166 (unimplemented vm86)",
/* 167 */ "#167 (unimplemented query_module)",
/* 168 */ "poll",
/* 169 */ "#169 (unimplemented nfsservctl)",
/* 170 */ "setresgid16",
/* 171 */ "linux_getresgid16",
/* 171 */ "getresgid16",
/* 172 */ "#172 (unimplemented prctl)",
/* 173 */ "rt_sigreturn",
/* 174 */ "rt_sigaction",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.72 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_sysent.c,v 1.73 2008/01/15 22:40:15 njoly Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.72 2007/12/24 14:21:42 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.73 2008/01/15 22:40:15 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -376,8 +376,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_mremap }, /* 163 = mremap */
{ ns(struct linux_sys_setresuid16_args), 0,
(sy_call_t *)linux_sys_setresuid16 },/* 164 = setresuid16 */
{ ns(struct linux_sys_getresuid_args), 0,
(sy_call_t *)linux_sys_getresuid }, /* 165 = linux_getresuid16 */
{ ns(struct linux_sys_getresuid16_args), 0,
(sy_call_t *)linux_sys_getresuid16 },/* 165 = getresuid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 166 = unimplemented vm86 */
{ 0, 0, 0,
@ -388,8 +388,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 169 = unimplemented nfsservctl */
{ ns(struct linux_sys_setresgid16_args), 0,
(sy_call_t *)linux_sys_setresgid16 },/* 170 = setresgid16 */
{ ns(struct linux_sys_getresgid_args), 0,
(sy_call_t *)linux_sys_getresgid }, /* 171 = linux_getresgid16 */
{ ns(struct linux_sys_getresgid16_args), 0,
(sy_call_t *)linux_sys_getresgid16 },/* 171 = getresgid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 172 = unimplemented prctl */
{ ns(struct linux_sys_rt_sigreturn_args), 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.63 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_syscall.h,v 1.64 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.58 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.59 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@ -60,7 +60,7 @@
/* syscall: "chmod" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "chown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "chown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_chown16 16
/* 17 is obsolete break */
@ -191,10 +191,10 @@
/* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
#define LINUX_SYS_sigsetmask 69
/* syscall: "setreuid16" ret: "int" args: "int" "int" */
/* syscall: "setreuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setreuid16 70
/* syscall: "setregid16" ret: "int" args: "int" "int" */
/* syscall: "setregid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setregid16 71
/* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */
@ -224,10 +224,10 @@
/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define LINUX_SYS_settimeofday 79
/* syscall: "getgroups16" ret: "int" args: "u_int" "linux_gid_t *" */
/* syscall: "getgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_getgroups16 80
/* syscall: "setgroups16" ret: "int" args: "u_int" "linux_gid_t *" */
/* syscall: "setgroups16" ret: "int" args: "int" "linux_gid16_t *" */
#define LINUX_SYS_setgroups16 81
/* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
@ -278,7 +278,7 @@
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define LINUX_SYS_fchmod 94
/* syscall: "fchown16" ret: "int" args: "int" "int" "int" */
/* syscall: "fchown16" ret: "int" args: "int" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_fchown16 95
/* syscall: "getpriority" ret: "int" args: "int" "int" */
@ -434,20 +434,20 @@
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 163
/* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */
/* syscall: "setresuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" "linux_uid16_t" */
#define LINUX_SYS_setresuid16 164
/* syscall: "linux_getresuid16" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
#define LINUX_SYS_linux_getresuid16 165
/* syscall: "getresuid16" ret: "int" args: "linux_uid16_t *" "linux_uid16_t *" "linux_uid16_t *" */
#define LINUX_SYS_getresuid16 165
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define LINUX_SYS_poll 168
/* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */
/* syscall: "setresgid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" "linux_gid16_t" */
#define LINUX_SYS_setresgid16 170
/* syscall: "linux_getresgid16" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
#define LINUX_SYS_linux_getresgid16 171
/* syscall: "getresgid16" ret: "int" args: "linux_gid16_t *" "linux_gid16_t *" "linux_gid16_t *" */
#define LINUX_SYS_getresgid16 171
/* syscall: "rt_sigreturn" ret: "int" args: */
#define LINUX_SYS_rt_sigreturn 173
@ -473,7 +473,7 @@
/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
#define LINUX_SYS_pwrite 181
/* syscall: "lchown16" ret: "int" args: "const char *" "int" "int" */
/* syscall: "lchown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
#define LINUX_SYS_lchown16 182
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.62 2007/12/24 14:21:42 njoly Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.63 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.58 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.59 2008/01/15 22:38:34 njoly Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -86,8 +86,8 @@ struct sys_chmod_args;
struct linux_sys_chown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_chown16)
#if !defined(_KERNEL) || defined(COMPAT_43)
@ -203,14 +203,14 @@ struct linux_sys_sigsetmask_args {
check_syscall_args(linux_sys_sigsetmask)
struct linux_sys_setreuid16_args {
syscallarg(int) ruid;
syscallarg(int) euid;
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
};
check_syscall_args(linux_sys_setreuid16)
struct linux_sys_setregid16_args {
syscallarg(int) rgid;
syscallarg(int) egid;
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
};
check_syscall_args(linux_sys_setregid16)
@ -258,14 +258,14 @@ struct linux_sys_settimeofday_args {
check_syscall_args(linux_sys_settimeofday)
struct linux_sys_getgroups16_args {
syscallarg(u_int) gidsetsize;
syscallarg(linux_gid_t *) gidset;
syscallarg(int) gidsetsize;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_getgroups16)
struct linux_sys_setgroups16_args {
syscallarg(u_int) gidsetsize;
syscallarg(linux_gid_t *) gidset;
syscallarg(int) gidsetsize;
syscallarg(linux_gid16_t *) gidset;
};
check_syscall_args(linux_sys_setgroups16)
@ -329,8 +329,8 @@ struct sys_fchmod_args;
struct linux_sys_fchown16_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_fchown16)
@ -566,24 +566,34 @@ struct linux_sys_mremap_args {
check_syscall_args(linux_sys_mremap)
struct linux_sys_setresuid16_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
syscallarg(linux_uid16_t) ruid;
syscallarg(linux_uid16_t) euid;
syscallarg(linux_uid16_t) suid;
};
check_syscall_args(linux_sys_setresuid16)
struct linux_sys_getresuid_args;
struct linux_sys_getresuid16_args {
syscallarg(linux_uid16_t *) ruid;
syscallarg(linux_uid16_t *) euid;
syscallarg(linux_uid16_t *) suid;
};
check_syscall_args(linux_sys_getresuid16)
struct sys_poll_args;
struct linux_sys_setresgid16_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
syscallarg(linux_gid16_t) rgid;
syscallarg(linux_gid16_t) egid;
syscallarg(linux_gid16_t) sgid;
};
check_syscall_args(linux_sys_setresgid16)
struct linux_sys_getresgid_args;
struct linux_sys_getresgid16_args {
syscallarg(linux_gid16_t *) rgid;
syscallarg(linux_gid16_t *) egid;
syscallarg(linux_gid16_t *) sgid;
};
check_syscall_args(linux_sys_getresgid16)
struct linux_sys_rt_sigaction_args {
syscallarg(int) signum;
@ -638,8 +648,8 @@ check_syscall_args(linux_sys_pwrite)
struct linux_sys_lchown16_args {
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux_uid16_t) uid;
syscallarg(linux_gid16_t) gid;
};
check_syscall_args(linux_sys_lchown16)
@ -1154,13 +1164,13 @@ int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, registe
int linux_sys_setresuid16(struct lwp *, const struct linux_sys_setresuid16_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_getresuid16(struct lwp *, const struct linux_sys_getresuid16_args *, register_t *);
int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
int linux_sys_setresgid16(struct lwp *, const struct linux_sys_setresgid16_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int linux_sys_getresgid16(struct lwp *, const struct linux_sys_getresgid16_args *, register_t *);
int linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *);
@ -1215,8 +1225,12 @@ int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, reg
int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.63 2007/12/24 14:21:43 njoly Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.64 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.58 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.59 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.63 2007/12/24 14:21:43 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.64 2008/01/15 22:40:16 njoly Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -215,13 +215,13 @@ const char *const linux_syscallnames[] = {
/* 162 */ "nanosleep",
/* 163 */ "mremap",
/* 164 */ "setresuid16",
/* 165 */ "linux_getresuid16",
/* 165 */ "getresuid16",
/* 166 */ "#166 (unimplemented vm86)",
/* 167 */ "#167 (unimplemented query_module)",
/* 168 */ "poll",
/* 169 */ "#169 (unimplemented nfsservctl)",
/* 170 */ "setresgid16",
/* 171 */ "linux_getresgid16",
/* 171 */ "getresgid16",
/* 172 */ "#172 (unimplemented prctl)",
/* 173 */ "rt_sigreturn",
/* 174 */ "rt_sigaction",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.63 2007/12/24 14:21:43 njoly Exp $ */
/* $NetBSD: linux_sysent.c,v 1.64 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.58 2007/12/24 14:17:18 njoly Exp
* created from NetBSD: syscalls.master,v 1.59 2008/01/15 22:38:34 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.63 2007/12/24 14:21:43 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.64 2008/01/15 22:40:16 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -387,8 +387,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_mremap }, /* 163 = mremap */
{ ns(struct linux_sys_setresuid16_args), 0,
(sy_call_t *)linux_sys_setresuid16 },/* 164 = setresuid16 */
{ ns(struct linux_sys_getresuid_args), 0,
(sy_call_t *)linux_sys_getresuid }, /* 165 = linux_getresuid16 */
{ ns(struct linux_sys_getresuid16_args), 0,
(sy_call_t *)linux_sys_getresuid16 },/* 165 = getresuid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 166 = unimplemented vm86 */
{ 0, 0, 0,
@ -399,8 +399,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 169 = unimplemented nfsservctl */
{ ns(struct linux_sys_setresgid16_args), 0,
(sy_call_t *)linux_sys_setresgid16 },/* 170 = setresgid16 */
{ ns(struct linux_sys_getresgid_args), 0,
(sy_call_t *)linux_sys_getresgid }, /* 171 = linux_getresgid16 */
{ ns(struct linux_sys_getresgid16_args), 0,
(sy_call_t *)linux_sys_getresgid16 },/* 171 = getresgid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 172 = unimplemented prctl */
{ 0, 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscall.h,v 1.29 2008/01/07 12:12:12 njoly Exp $ */
/* $NetBSD: linux32_syscall.h,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.26 2008/01/07 12:11:52 njoly Exp
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
*/
#ifndef _LINUX32_SYS_SYSCALL_H_
@ -60,7 +60,7 @@
/* syscall: "netbsd32_chmod" ret: "int" args: "const netbsd32_charp" "int" */
#define LINUX32_SYS_netbsd32_chmod 15
/* syscall: "lchown16" ret: "int" args: "const netbsd32_charp" "int" "int" */
/* syscall: "lchown16" ret: "int" args: "const netbsd32_charp" "linux32_uid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_lchown16 16
/* syscall: "break" ret: "int" args: "netbsd32_charp" */
@ -181,10 +181,10 @@
/* syscall: "setsid" ret: "int" args: */
#define LINUX32_SYS_setsid 66
/* syscall: "setreuid16" ret: "int" args: "int" "int" */
/* syscall: "setreuid16" ret: "int" args: "linux32_uid16_t" "linux32_uid16_t" */
#define LINUX32_SYS_setreuid16 70
/* syscall: "setregid16" ret: "int" args: "int" "int" */
/* syscall: "setregid16" ret: "int" args: "linux32_gid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_setregid16 71
/* syscall: "compat_43_netbsd32_osethostname" ret: "int" args: "netbsd32_charp" "u_int" */
@ -205,10 +205,10 @@
/* syscall: "settimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */
#define LINUX32_SYS_settimeofday 79
/* syscall: "getgroups16" ret: "int" args: "int" "linux32_gidp_t" */
/* syscall: "getgroups16" ret: "int" args: "int" "linux32_gid16p_t" */
#define LINUX32_SYS_getgroups16 80
/* syscall: "setgroups16" ret: "int" args: "int" "linux32_gidp_t" */
/* syscall: "setgroups16" ret: "int" args: "int" "linux32_gid16p_t" */
#define LINUX32_SYS_setgroups16 81
/* syscall: "oldselect" ret: "int" args: "linux32_oldselectp_t" */
@ -247,7 +247,7 @@
/* syscall: "netbsd32_fchmod" ret: "int" args: "int" "int" */
#define LINUX32_SYS_netbsd32_fchmod 94
/* syscall: "fchown16" ret: "int" args: "int" "int" "int" */
/* syscall: "fchown16" ret: "int" args: "int" "linux32_uid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_fchown16 95
/* syscall: "getpriority" ret: "int" args: "int" "int" */
@ -358,15 +358,21 @@
/* syscall: "mremap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "netbsd32_size_t" "netbsd32_u_long" */
#define LINUX32_SYS_mremap 163
/* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */
/* syscall: "setresuid16" ret: "int" args: "linux32_uid16_t" "linux32_uid16_t" "linux32_uid16_t" */
#define LINUX32_SYS_setresuid16 164
/* syscall: "getresuid16" ret: "int" args: "linux32_uid16p_t" "linux32_uid16p_t" "linux32_uid16p_t" */
#define LINUX32_SYS_getresuid16 165
/* syscall: "netbsd32_poll" ret: "int" args: "netbsd32_pollfdp_t" "u_int" "int" */
#define LINUX32_SYS_netbsd32_poll 168
/* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */
/* syscall: "setresgid16" ret: "int" args: "linux32_gid16_t" "linux32_gid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_setresgid16 170
/* syscall: "getresgid16" ret: "int" args: "linux32_gid16p_t" "linux32_gid16p_t" "linux32_gid16p_t" */
#define LINUX32_SYS_getresgid16 171
/* syscall: "rt_sigreturn" ret: "int" args: "linux32_ucontextp_t" */
#define LINUX32_SYS_rt_sigreturn 173
@ -379,7 +385,7 @@
/* syscall: "rt_sigsuspend" ret: "int" args: "linux32_sigsetp_t" "netbsd32_size_t" */
#define LINUX32_SYS_rt_sigsuspend 179
/* syscall: "chown16" ret: "int" args: "const netbsd32_charp" "int" "int" */
/* syscall: "chown16" ret: "int" args: "const netbsd32_charp" "linux32_uid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_chown16 182
/* syscall: "netbsd32___getcwd" ret: "int" args: "netbsd32_charp" "netbsd32_size_t" */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscallargs.h,v 1.29 2008/01/07 12:12:12 njoly Exp $ */
/* $NetBSD: linux32_syscallargs.h,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.26 2008/01/07 12:11:52 njoly Exp
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
*/
#ifndef _LINUX32_SYS_SYSCALLARGS_H_
@ -86,8 +86,8 @@ struct netbsd32_chmod_args;
struct linux32_sys_lchown16_args {
syscallarg(const netbsd32_charp) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux32_uid16_t) uid;
syscallarg(linux32_gid16_t) gid;
};
check_syscall_args(linux32_sys_lchown16)
@ -194,14 +194,14 @@ struct netbsd32_chroot_args;
struct netbsd32_dup2_args;
struct linux32_sys_setreuid16_args {
syscallarg(int) ruid;
syscallarg(int) euid;
syscallarg(linux32_uid16_t) ruid;
syscallarg(linux32_uid16_t) euid;
};
check_syscall_args(linux32_sys_setreuid16)
struct linux32_sys_setregid16_args {
syscallarg(int) rgid;
syscallarg(int) egid;
syscallarg(linux32_gid16_t) rgid;
syscallarg(linux32_gid16_t) egid;
};
check_syscall_args(linux32_sys_setregid16)
@ -235,13 +235,13 @@ check_syscall_args(linux32_sys_settimeofday)
struct linux32_sys_getgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux32_gidp_t) gidset;
syscallarg(linux32_gid16p_t) gidset;
};
check_syscall_args(linux32_sys_getgroups16)
struct linux32_sys_setgroups16_args {
syscallarg(int) gidsetsize;
syscallarg(linux32_gidp_t) gidset;
syscallarg(linux32_gid16p_t) gidset;
};
check_syscall_args(linux32_sys_setgroups16)
@ -295,8 +295,8 @@ struct netbsd32_fchmod_args;
struct linux32_sys_fchown16_args {
syscallarg(int) fd;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux32_uid16_t) uid;
syscallarg(linux32_gid16_t) gid;
};
check_syscall_args(linux32_sys_fchown16)
@ -459,21 +459,35 @@ struct linux32_sys_mremap_args {
check_syscall_args(linux32_sys_mremap)
struct linux32_sys_setresuid16_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
syscallarg(linux32_uid16_t) ruid;
syscallarg(linux32_uid16_t) euid;
syscallarg(linux32_uid16_t) suid;
};
check_syscall_args(linux32_sys_setresuid16)
struct linux32_sys_getresuid16_args {
syscallarg(linux32_uid16p_t) ruid;
syscallarg(linux32_uid16p_t) euid;
syscallarg(linux32_uid16p_t) suid;
};
check_syscall_args(linux32_sys_getresuid16)
struct netbsd32_poll_args;
struct linux32_sys_setresgid16_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
syscallarg(linux32_gid16_t) rgid;
syscallarg(linux32_gid16_t) egid;
syscallarg(linux32_gid16_t) sgid;
};
check_syscall_args(linux32_sys_setresgid16)
struct linux32_sys_getresgid16_args {
syscallarg(linux32_gid16p_t) rgid;
syscallarg(linux32_gid16p_t) egid;
syscallarg(linux32_gid16p_t) sgid;
};
check_syscall_args(linux32_sys_getresgid16)
struct linux32_sys_rt_sigreturn_args {
syscallarg(linux32_ucontextp_t) ucp;
};
@ -503,8 +517,8 @@ check_syscall_args(linux32_sys_rt_sigsuspend)
struct linux32_sys_chown16_args {
syscallarg(const netbsd32_charp) path;
syscallarg(int) uid;
syscallarg(int) gid;
syscallarg(linux32_uid16_t) uid;
syscallarg(linux32_gid16_t) gid;
};
check_syscall_args(linux32_sys_chown16)
@ -837,10 +851,14 @@ int linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, reg
int linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
int linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *);
int netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
int linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
int linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *);
int linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
int linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_syscalls.c,v 1.29 2008/01/07 12:12:12 njoly Exp $ */
/* $NetBSD: linux32_syscalls.c,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.26 2008/01/07 12:11:52 njoly Exp
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.29 2008/01/07 12:12:12 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.30 2008/01/15 22:40:16 njoly Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -201,13 +201,13 @@ const char *const linux32_syscallnames[] = {
/* 162 */ "netbsd32_nanosleep",
/* 163 */ "mremap",
/* 164 */ "setresuid16",
/* 165 */ "#165 (unimplemented getresuid16)",
/* 165 */ "getresuid16",
/* 166 */ "#166 (unimplemented vm86)",
/* 167 */ "#167 (unimplemented query_module)",
/* 168 */ "netbsd32_poll",
/* 169 */ "#169 (unimplemented nfsservctl)",
/* 170 */ "setresgid16",
/* 171 */ "#171 (unimplemented int)",
/* 171 */ "getresgid16",
/* 172 */ "#172 (unimplemented prctl)",
/* 173 */ "rt_sigreturn",
/* 174 */ "rt_sigaction",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_sysent.c,v 1.29 2008/01/07 12:12:12 njoly Exp $ */
/* $NetBSD: linux32_sysent.c,v 1.30 2008/01/15 22:40:17 njoly Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.26 2008/01/07 12:11:52 njoly Exp
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.29 2008/01/07 12:12:12 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.30 2008/01/15 22:40:17 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -368,8 +368,8 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)linux32_sys_mremap }, /* 163 = mremap */
{ ns(struct linux32_sys_setresuid16_args), 0,
(sy_call_t *)linux32_sys_setresuid16 },/* 164 = setresuid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 165 = unimplemented getresuid16 */
{ ns(struct linux32_sys_getresuid16_args), 0,
(sy_call_t *)linux32_sys_getresuid16 },/* 165 = getresuid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 166 = unimplemented vm86 */
{ 0, 0, 0,
@ -380,8 +380,8 @@ struct sysent linux32_sysent[] = {
linux_sys_nosys }, /* 169 = unimplemented nfsservctl */
{ ns(struct linux32_sys_setresgid16_args), 0,
(sy_call_t *)linux32_sys_setresgid16 },/* 170 = setresgid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 171 = unimplemented int */
{ ns(struct linux32_sys_getresgid16_args), 0,
(sy_call_t *)linux32_sys_getresgid16 },/* 171 = getresgid16 */
{ 0, 0, 0,
linux_sys_nosys }, /* 172 = unimplemented prctl */
{ ns(struct linux32_sys_rt_sigreturn_args), 0,