Regen for getfsuid/setfsgid syscall exchange.

This commit is contained in:
njoly 2007-12-21 22:28:41 +00:00
parent 035a2e040b
commit 90dee75246
32 changed files with 198 additions and 145 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.64 2007/12/20 23:10:44 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.65 2007/12/21 22:28:41 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 2007/12/20 23:02:51 dsl Exp * created from NetBSD: syscalls.master,v 1.60 2007/12/21 22:26:20 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -414,6 +414,9 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 325 #define LINUX_SYS_setfsuid 325
/* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_setfsgid 326
/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */ /* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
#define LINUX_SYS_statfs 328 #define LINUX_SYS_statfs 328

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.63 2007/12/20 23:10:44 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.64 2007/12/21 22:28:41 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 2007/12/20 23:02:51 dsl Exp * created from NetBSD: syscalls.master,v 1.60 2007/12/21 22:26:20 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -622,6 +622,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct linux_sys_statfs_args { struct linux_sys_statfs_args {
syscallarg(const char *) path; syscallarg(const char *) path;
syscallarg(struct linux_statfs *) sp; syscallarg(struct linux_statfs *) sp;
@ -1220,6 +1225,8 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *); int linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
int linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *); int linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.65 2007/12/20 23:10:44 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.66 2007/12/21 22:28:41 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 2007/12/20 23:02:51 dsl Exp * created from NetBSD: syscalls.master,v 1.60 2007/12/21 22:26:20 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.65 2007/12/20 23:10:44 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.66 2007/12/21 22:28:41 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -384,7 +384,7 @@ const char *const linux_syscallnames[] = {
/* 323 */ "times", /* 323 */ "times",
/* 324 */ "personality", /* 324 */ "personality",
/* 325 */ "setfsuid", /* 325 */ "setfsuid",
/* 326 */ "#326 (unimplemented setfsgid)", /* 326 */ "setfsgid",
/* 327 */ "#327 (unimplemented ustat)", /* 327 */ "#327 (unimplemented ustat)",
/* 328 */ "statfs", /* 328 */ "statfs",
/* 329 */ "fstatfs", /* 329 */ "fstatfs",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.64 2007/12/20 23:10:44 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.65 2007/12/21 22:28:41 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.59 2007/12/20 23:02:51 dsl Exp * created from NetBSD: syscalls.master,v 1.60 2007/12/21 22:26:20 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.64 2007/12/20 23:10:44 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.65 2007/12/21 22:28:41 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_sysv.h" #include "opt_sysv.h"
@ -724,8 +724,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_personality },/* 324 = personality */ (sy_call_t *)linux_sys_personality },/* 324 = personality */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 325 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 325 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
linux_sys_nosys }, /* 326 = unimplemented setfsgid */ (sy_call_t *)linux_sys_setfsgid }, /* 326 = setfsgid */
{ 0, 0, 0, { 0, 0, 0,
linux_sys_nosys }, /* 327 = unimplemented ustat */ linux_sys_nosys }, /* 327 = unimplemented ustat */
{ ns(struct linux_sys_statfs_args), 0, { ns(struct linux_sys_statfs_args), 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.20 2007/12/20 23:10:44 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.21 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.20 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.21 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -387,8 +387,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 122 #define LINUX_SYS_setfsuid 122
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 123 #define LINUX_SYS_setfsgid 123
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */ /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
#define LINUX_SYS_getsid 124 #define LINUX_SYS_getsid 124

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.20 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.21 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.20 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.21 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -512,6 +512,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct sys_getsid_args; struct sys_getsid_args;
struct linux_sys_rt_sigpending_args { struct linux_sys_rt_sigpending_args {
@ -1130,7 +1135,7 @@ int linux_sys_getpgid(struct lwp *, const struct linux_sys_getpgid_args *, regis
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.20 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.21 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.20 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.21 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.20 2007/12/20 23:10:45 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.21 2007/12/21 22:28:42 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -180,7 +180,7 @@ const char *const linux_syscallnames[] = {
/* 120 */ "getresgid", /* 120 */ "getresgid",
/* 121 */ "getpgid", /* 121 */ "getpgid",
/* 122 */ "setfsuid", /* 122 */ "setfsuid",
/* 123 */ "getfsuid", /* 123 */ "setfsgid",
/* 124 */ "getsid", /* 124 */ "getsid",
/* 125 */ "#125 (unimplemented capget)", /* 125 */ "#125 (unimplemented capget)",
/* 126 */ "#126 (unimplemented capset)", /* 126 */ "#126 (unimplemented capset)",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.20 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.21 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.20 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.21 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.20 2007/12/20 23:10:45 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.21 2007/12/21 22:28:42 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_sysv.h" #include "opt_sysv.h"
@ -316,8 +316,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)linux_sys_getpgid }, /* 121 = getpgid */ (sy_call_t *)linux_sys_getpgid }, /* 121 = getpgid */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 122 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 122 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 123 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 123 = setfsgid */
{ ns(struct sys_getsid_args), 0, { ns(struct sys_getsid_args), 0,
(sy_call_t *)sys_getsid }, /* 124 = getsid */ (sy_call_t *)sys_getsid }, /* 124 = getsid */
{ 0, 0, 0, { 0, 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.31 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.32 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.31 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -354,8 +354,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 138 #define LINUX_SYS_setfsuid 138
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 139 #define LINUX_SYS_setfsgid 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
#define LINUX_SYS_llseek 140 #define LINUX_SYS_llseek 140
@ -550,8 +550,8 @@
/* syscall: "setfsuid32" ret: "int" args: "uid_t" */ /* syscall: "setfsuid32" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid32 215 #define LINUX_SYS_setfsuid32 215
/* syscall: "getfsuid32" ret: "int" args: */ /* syscall: "setfsgid32" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid32 216 #define LINUX_SYS_setfsgid32 216
/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */ /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
#define LINUX_SYS_getdents64 217 #define LINUX_SYS_getdents64 217

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.31 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.32 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.31 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -448,6 +448,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct linux_sys_llseek_args { struct linux_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -711,6 +716,8 @@ struct sys_setgid_args;
struct linux_sys_setfsuid_args; struct linux_sys_setfsuid_args;
struct linux_sys_setfsgid_args;
struct linux_sys_getdents64_args { struct linux_sys_getdents64_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(struct linux_dirent64 *) dent; syscallarg(struct linux_dirent64 *) dent;
@ -1095,7 +1102,7 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *); int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.31 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.32 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.31 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.31 2007/12/20 23:10:45 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.32 2007/12/21 22:28:42 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -172,7 +172,7 @@ const char *const linux_syscallnames[] = {
/* 136 */ "personality", /* 136 */ "personality",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "setfsuid", /* 138 */ "setfsuid",
/* 139 */ "getfsuid", /* 139 */ "setfsgid",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "select", /* 142 */ "select",
@ -250,7 +250,7 @@ const char *const linux_syscallnames[] = {
/* 213 */ "setuid32", /* 213 */ "setuid32",
/* 214 */ "setgid32", /* 214 */ "setgid32",
/* 215 */ "setfsuid32", /* 215 */ "setfsuid32",
/* 216 */ "getfsuid32", /* 216 */ "setfsgid32",
/* 217 */ "getdents64", /* 217 */ "getdents64",
/* 218 */ "#218 (unimplemented pivot_root)", /* 218 */ "#218 (unimplemented pivot_root)",
/* 219 */ "mincore", /* 219 */ "mincore",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.31 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.32 2007/12/21 22:28:42 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.31 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.31 2007/12/20 23:10:45 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.32 2007/12/21 22:28:42 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_43.h" #include "opt_compat_43.h"
@ -314,8 +314,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 139 = setfsgid */
{ ns(struct linux_sys_llseek_args), 0, { ns(struct linux_sys_llseek_args), 0,
(sy_call_t *)linux_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux_sys_llseek }, /* 140 = llseek */
{ ns(struct linux_sys_getdents_args), 0, { ns(struct linux_sys_getdents_args), 0,
@ -469,8 +469,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)sys_setgid }, /* 214 = setgid32 */ (sy_call_t *)sys_setgid }, /* 214 = setgid32 */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid32 */ (sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid32 */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 216 = getfsuid32 */ (sy_call_t *)linux_sys_setfsgid }, /* 216 = setfsgid32 */
{ ns(struct linux_sys_getdents64_args), 0, { ns(struct linux_sys_getdents64_args), 0,
(sy_call_t *)linux_sys_getdents64 },/* 217 = getdents64 */ (sy_call_t *)linux_sys_getdents64 },/* 217 = getdents64 */
{ 0, 0, 0, { 0, 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.70 2007/12/20 23:10:45 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.71 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.86 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.87 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -376,8 +376,8 @@
/* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */ /* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */
#define LINUX_SYS_linux_setfsuid16 138 #define LINUX_SYS_linux_setfsuid16 138
/* syscall: "linux_getfsuid16" ret: "int" args: */ /* syscall: "linux_setfsgid16" ret: "int" args: "gid_t" */
#define LINUX_SYS_linux_getfsuid16 139 #define LINUX_SYS_linux_setfsgid16 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
#define LINUX_SYS_llseek 140 #define LINUX_SYS_llseek 140
@ -575,8 +575,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 215 #define LINUX_SYS_setfsuid 215
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 216 #define LINUX_SYS_setfsgid 216
/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
#define LINUX_SYS_mincore 218 #define LINUX_SYS_mincore 218

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.70 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.71 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.86 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.87 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -493,6 +493,8 @@ check_syscall_args(linux_sys_personality)
struct linux_sys_setfsuid_args; struct linux_sys_setfsuid_args;
struct linux_sys_setfsgid_args;
struct linux_sys_llseek_args { struct linux_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -774,6 +776,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct sys_mincore_args; struct sys_mincore_args;
struct sys_madvise_args; struct sys_madvise_args;
@ -1227,7 +1234,7 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *); int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.71 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.72 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.86 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.87 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71 2007/12/20 23:10:46 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.72 2007/12/21 22:28:43 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -180,7 +180,7 @@ const char *const linux_syscallnames[] = {
/* 136 */ "personality", /* 136 */ "personality",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "linux_setfsuid16", /* 138 */ "linux_setfsuid16",
/* 139 */ "linux_getfsuid16", /* 139 */ "linux_setfsgid16",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "select", /* 142 */ "select",
@ -258,7 +258,7 @@ const char *const linux_syscallnames[] = {
/* 213 */ "setuid", /* 213 */ "setuid",
/* 214 */ "setgid", /* 214 */ "setgid",
/* 215 */ "setfsuid", /* 215 */ "setfsuid",
/* 216 */ "getfsuid", /* 216 */ "setfsgid",
/* 217 */ "#217 (unimplemented pivot_root)", /* 217 */ "#217 (unimplemented pivot_root)",
/* 218 */ "mincore", /* 218 */ "mincore",
/* 219 */ "madvise", /* 219 */ "madvise",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.70 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.71 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.86 2007/12/20 23:02:52 dsl Exp * created from NetBSD: syscalls.master,v 1.87 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.70 2007/12/20 23:10:46 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.71 2007/12/21 22:28:43 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_43.h" #include "opt_compat_43.h"
@ -324,8 +324,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 138 = linux_setfsuid16 */ (sy_call_t *)linux_sys_setfsuid }, /* 138 = linux_setfsuid16 */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = linux_getfsuid16 */ (sy_call_t *)linux_sys_setfsgid }, /* 139 = linux_setfsgid16 */
{ ns(struct linux_sys_llseek_args), 0, { ns(struct linux_sys_llseek_args), 0,
(sy_call_t *)linux_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux_sys_llseek }, /* 140 = llseek */
{ ns(struct linux_sys_getdents_args), 0, { ns(struct linux_sys_getdents_args), 0,
@ -479,8 +479,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)sys_setgid }, /* 214 = setgid */ (sy_call_t *)sys_setgid }, /* 214 = setgid */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 216 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 216 = setfsgid */
{ 0, 0, 0, { 0, 0, 0,
linux_sys_nosys }, /* 217 = unimplemented pivot_root */ linux_sys_nosys }, /* 217 = unimplemented pivot_root */
{ ns(struct sys_mincore_args), 0, { ns(struct sys_mincore_args), 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.61 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.62 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.56 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.57 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -362,8 +362,8 @@
/* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */ /* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */
#define LINUX_SYS_linux_setfsuid16 138 #define LINUX_SYS_linux_setfsuid16 138
/* syscall: "linux_getfsuid16" ret: "int" args: */ /* syscall: "linux_setfsgid16" ret: "int" args: "gid_t" */
#define LINUX_SYS_linux_getfsuid16 139 #define LINUX_SYS_linux_setfsgid16 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
#define LINUX_SYS_llseek 140 #define LINUX_SYS_llseek 140
@ -561,8 +561,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 215 #define LINUX_SYS_setfsuid 215
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 216 #define LINUX_SYS_setfsgid 216
/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */ /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
#define LINUX_SYS_getdents64 220 #define LINUX_SYS_getdents64 220

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.60 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.61 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.56 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.57 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -466,6 +466,8 @@ check_syscall_args(linux_sys_personality)
struct linux_sys_setfsuid_args; struct linux_sys_setfsuid_args;
struct linux_sys_setfsgid_args;
struct linux_sys_llseek_args { struct linux_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -742,6 +744,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct linux_sys_getdents64_args { struct linux_sys_getdents64_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(struct linux_dirent64 *) dent; syscallarg(struct linux_dirent64 *) dent;
@ -1100,7 +1107,7 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *); int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.61 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.62 2007/12/21 22:28:43 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.56 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.57 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.61 2007/12/20 23:10:46 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.62 2007/12/21 22:28:43 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -189,7 +189,7 @@ const char *const linux_syscallnames[] = {
/* 136 */ "personality", /* 136 */ "personality",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "linux_setfsuid16", /* 138 */ "linux_setfsuid16",
/* 139 */ "linux_getfsuid16", /* 139 */ "linux_setfsgid16",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "select", /* 142 */ "select",
@ -267,7 +267,7 @@ const char *const linux_syscallnames[] = {
/* 213 */ "setuid", /* 213 */ "setuid",
/* 214 */ "setgid", /* 214 */ "setgid",
/* 215 */ "setfsuid", /* 215 */ "setfsuid",
/* 216 */ "getfsuid", /* 216 */ "setfsgid",
/* 217 */ "#217 (unimplemented / * unused * /)", /* 217 */ "#217 (unimplemented / * unused * /)",
/* 218 */ "#218 (unimplemented / * unused * /)", /* 218 */ "#218 (unimplemented / * unused * /)",
/* 219 */ "#219 (unimplemented / * unused * /)", /* 219 */ "#219 (unimplemented / * unused * /)",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.61 2007/12/20 23:10:46 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.62 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.56 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.57 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.61 2007/12/20 23:10:46 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.62 2007/12/21 22:28:44 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -335,8 +335,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 138 = linux_setfsuid16 */ (sy_call_t *)linux_sys_setfsuid }, /* 138 = linux_setfsuid16 */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = linux_getfsuid16 */ (sy_call_t *)linux_sys_setfsgid }, /* 139 = linux_setfsgid16 */
{ ns(struct linux_sys_llseek_args), 0, { ns(struct linux_sys_llseek_args), 0,
(sy_call_t *)linux_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux_sys_llseek }, /* 140 = llseek */
{ ns(struct linux_sys_getdents_args), 0, { ns(struct linux_sys_getdents_args), 0,
@ -490,8 +490,8 @@ struct sysent linux_sysent[] = {
(sy_call_t *)sys_setgid }, /* 214 = setgid */ (sy_call_t *)sys_setgid }, /* 214 = setgid */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 215 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 216 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 216 = setfsgid */
{ 0, 0, 0, { 0, 0, 0,
linux_sys_nosys }, /* 217 = unimplemented / * unused * / */ linux_sys_nosys }, /* 217 = unimplemented / * unused * / */
{ 0, 0, 0, { 0, 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.29 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.30 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.25 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.26 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -337,8 +337,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 138 #define LINUX_SYS_setfsuid 138
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 139 #define LINUX_SYS_setfsgid 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
#define LINUX_SYS_llseek 140 #define LINUX_SYS_llseek 140

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.28 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.29 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.25 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.26 2007/12/21 22:26:21 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -427,6 +427,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct linux_sys_llseek_args { struct linux_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -1073,7 +1078,7 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *); int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.28 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.29 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.25 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.26 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.28 2007/12/20 23:10:47 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.29 2007/12/21 22:28:44 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -171,7 +171,7 @@ const char *const linux_syscallnames[] = {
/* 136 */ "personality", /* 136 */ "personality",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "setfsuid", /* 138 */ "setfsuid",
/* 139 */ "getfsuid", /* 139 */ "setfsgid",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "select", /* 142 */ "select",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.28 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.29 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.25 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.26 2007/12/21 22:26:21 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.28 2007/12/20 23:10:47 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.29 2007/12/21 22:28:44 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -312,8 +312,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 139 = setfsgid */
{ ns(struct linux_sys_llseek_args), 0, { ns(struct linux_sys_llseek_args), 0,
(sy_call_t *)linux_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux_sys_llseek }, /* 140 = llseek */
{ ns(struct linux_sys_getdents_args), 0, { ns(struct linux_sys_getdents_args), 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.38 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscall.h,v 1.39 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.34 2007/12/21 22:26:22 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALL_H_ #ifndef _LINUX_SYS_SYSCALL_H_
@ -356,8 +356,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX_SYS_setfsuid 138 #define LINUX_SYS_setfsuid 138
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX_SYS_getfsuid 139 #define LINUX_SYS_setfsgid 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
#define LINUX_SYS_llseek 140 #define LINUX_SYS_llseek 140

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.37 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscallargs.h,v 1.38 2007/12/21 22:28:44 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.34 2007/12/21 22:26:22 njoly Exp
*/ */
#ifndef _LINUX_SYS_SYSCALLARGS_H_ #ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -446,6 +446,11 @@ struct linux_sys_setfsuid_args {
}; };
check_syscall_args(linux_sys_setfsuid) check_syscall_args(linux_sys_setfsuid)
struct linux_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux_sys_setfsgid)
struct linux_sys_llseek_args { struct linux_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -1061,7 +1066,7 @@ int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args
int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *); int linux_sys_llseek(struct lwp *, const struct linux_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.37 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_syscalls.c,v 1.38 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.34 2007/12/21 22:26:22 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.37 2007/12/20 23:10:47 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.38 2007/12/21 22:28:45 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -173,7 +173,7 @@ const char *const linux_syscallnames[] = {
/* 136 */ "personality", /* 136 */ "personality",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "setfsuid", /* 138 */ "setfsuid",
/* 139 */ "getfsuid", /* 139 */ "setfsgid",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "new_select", /* 142 */ "new_select",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.38 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux_sysent.c,v 1.39 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 2007/12/20 23:02:53 dsl Exp * created from NetBSD: syscalls.master,v 1.34 2007/12/21 22:26:22 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.38 2007/12/20 23:10:47 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.39 2007/12/21 22:28:45 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -315,8 +315,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux_sys_setfsuid_args), 0, { ns(struct linux_sys_setfsuid_args), 0,
(sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */ (sy_call_t *)linux_sys_setfsuid }, /* 138 = setfsuid */
{ 0, 0, 0, { ns(struct linux_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = getfsuid */ (sy_call_t *)linux_sys_setfsgid }, /* 139 = setfsgid */
{ ns(struct linux_sys_llseek_args), 0, { ns(struct linux_sys_llseek_args), 0,
(sy_call_t *)linux_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux_sys_llseek }, /* 140 = llseek */
{ ns(struct linux_sys_getdents_args), 0, { ns(struct linux_sys_getdents_args), 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscall.h,v 1.24 2007/12/20 23:10:47 dsl Exp $ */ /* $NetBSD: linux32_syscall.h,v 1.25 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2007/12/20 23:02:57 dsl Exp * created from NetBSD: syscalls.master,v 1.22 2007/12/21 22:26:22 njoly Exp
*/ */
#ifndef _LINUX32_SYS_SYSCALL_H_ #ifndef _LINUX32_SYS_SYSCALL_H_
@ -295,8 +295,8 @@
/* syscall: "setfsuid16" ret: "int" args: "uid_t" */ /* syscall: "setfsuid16" ret: "int" args: "uid_t" */
#define LINUX32_SYS_setfsuid16 138 #define LINUX32_SYS_setfsuid16 138
/* syscall: "getfsuid16" ret: "int" args: */ /* syscall: "setfsgid16" ret: "int" args: "gid_t" */
#define LINUX32_SYS_getfsuid16 139 #define LINUX32_SYS_setfsgid16 139
/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "netbsd32_caddr_t" "int" */ /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "netbsd32_caddr_t" "int" */
#define LINUX32_SYS_llseek 140 #define LINUX32_SYS_llseek 140
@ -443,8 +443,8 @@
/* syscall: "setfsuid" ret: "int" args: "uid_t" */ /* syscall: "setfsuid" ret: "int" args: "uid_t" */
#define LINUX32_SYS_setfsuid 215 #define LINUX32_SYS_setfsuid 215
/* syscall: "getfsuid" ret: "int" args: */ /* syscall: "setfsgid" ret: "int" args: "gid_t" */
#define LINUX32_SYS_getfsuid 216 #define LINUX32_SYS_setfsgid 216
/* syscall: "netbsd32_madvise" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */ /* syscall: "netbsd32_madvise" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */
#define LINUX32_SYS_netbsd32_madvise 219 #define LINUX32_SYS_netbsd32_madvise 219

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscallargs.h,v 1.24 2007/12/20 23:10:48 dsl Exp $ */ /* $NetBSD: linux32_syscallargs.h,v 1.25 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2007/12/20 23:02:57 dsl Exp * created from NetBSD: syscalls.master,v 1.22 2007/12/21 22:26:22 njoly Exp
*/ */
#ifndef _LINUX32_SYS_SYSCALLARGS_H_ #ifndef _LINUX32_SYS_SYSCALLARGS_H_
@ -369,6 +369,8 @@ struct netbsd32_fchdir_args;
struct linux32_sys_setfsuid_args; struct linux32_sys_setfsuid_args;
struct linux32_sys_setfsgid_args;
struct linux32_sys_llseek_args { struct linux32_sys_llseek_args {
syscallarg(int) fd; syscallarg(int) fd;
syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) ohigh;
@ -566,6 +568,11 @@ struct linux32_sys_setfsuid_args {
}; };
check_syscall_args(linux32_sys_setfsuid) check_syscall_args(linux32_sys_setfsuid)
struct linux32_sys_setfsgid_args {
syscallarg(gid_t) gid;
};
check_syscall_args(linux32_sys_setfsgid)
struct netbsd32_madvise_args; struct netbsd32_madvise_args;
struct linux32_sys_getdents64_args { struct linux32_sys_getdents64_args {
@ -773,7 +780,7 @@ int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_
int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *); int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
int linux_sys_getfsuid(struct lwp *, const void *, register_t *); int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *); int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_syscalls.c,v 1.24 2007/12/20 23:10:48 dsl Exp $ */ /* $NetBSD: linux32_syscalls.c,v 1.25 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2007/12/20 23:02:57 dsl Exp * created from NetBSD: syscalls.master,v 1.22 2007/12/21 22:26:22 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.24 2007/12/20 23:10:48 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.25 2007/12/21 22:28:45 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -175,7 +175,7 @@ const char *const linux32_syscallnames[] = {
/* 136 */ "#136 (unimplemented personality)", /* 136 */ "#136 (unimplemented personality)",
/* 137 */ "#137 (unimplemented afs_syscall)", /* 137 */ "#137 (unimplemented afs_syscall)",
/* 138 */ "setfsuid16", /* 138 */ "setfsuid16",
/* 139 */ "getfsuid16", /* 139 */ "setfsgid16",
/* 140 */ "llseek", /* 140 */ "llseek",
/* 141 */ "getdents", /* 141 */ "getdents",
/* 142 */ "select", /* 142 */ "select",
@ -253,7 +253,7 @@ const char *const linux32_syscallnames[] = {
/* 213 */ "netbsd32_setuid", /* 213 */ "netbsd32_setuid",
/* 214 */ "netbsd32_setgid", /* 214 */ "netbsd32_setgid",
/* 215 */ "setfsuid", /* 215 */ "setfsuid",
/* 216 */ "getfsuid", /* 216 */ "setfsgid",
/* 217 */ "#217 (unimplemented pivot_root)", /* 217 */ "#217 (unimplemented pivot_root)",
/* 218 */ "#218 (unimplemented mincore)", /* 218 */ "#218 (unimplemented mincore)",
/* 219 */ "netbsd32_madvise", /* 219 */ "netbsd32_madvise",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_sysent.c,v 1.24 2007/12/20 23:10:48 dsl Exp $ */ /* $NetBSD: linux32_sysent.c,v 1.25 2007/12/21 22:28:45 njoly Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2007/12/20 23:02:57 dsl Exp * created from NetBSD: syscalls.master,v 1.22 2007/12/21 22:26:22 njoly Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.24 2007/12/20 23:10:48 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.25 2007/12/21 22:28:45 njoly Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_43.h" #include "opt_compat_43.h"
@ -316,8 +316,8 @@ struct sysent linux32_sysent[] = {
linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ linux_sys_nosys }, /* 137 = unimplemented afs_syscall */
{ ns(struct linux32_sys_setfsuid_args), 0, { ns(struct linux32_sys_setfsuid_args), 0,
(sy_call_t *)linux32_sys_setfsuid },/* 138 = setfsuid16 */ (sy_call_t *)linux32_sys_setfsuid },/* 138 = setfsuid16 */
{ 0, 0, 0, { ns(struct linux32_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 139 = getfsuid16 */ (sy_call_t *)linux32_sys_setfsgid },/* 139 = setfsgid16 */
{ ns(struct linux32_sys_llseek_args), 0, { ns(struct linux32_sys_llseek_args), 0,
(sy_call_t *)linux32_sys_llseek }, /* 140 = llseek */ (sy_call_t *)linux32_sys_llseek }, /* 140 = llseek */
{ ns(struct linux32_sys_getdents_args), 0, { ns(struct linux32_sys_getdents_args), 0,
@ -471,8 +471,8 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)netbsd32_setgid }, /* 214 = netbsd32_setgid */ (sy_call_t *)netbsd32_setgid }, /* 214 = netbsd32_setgid */
{ ns(struct linux32_sys_setfsuid_args), 0, { ns(struct linux32_sys_setfsuid_args), 0,
(sy_call_t *)linux32_sys_setfsuid },/* 215 = setfsuid */ (sy_call_t *)linux32_sys_setfsuid },/* 215 = setfsuid */
{ 0, 0, 0, { ns(struct linux32_sys_setfsgid_args), 0,
(sy_call_t *)linux_sys_getfsuid }, /* 216 = getfsuid */ (sy_call_t *)linux32_sys_setfsgid },/* 216 = setfsgid */
{ 0, 0, 0, { 0, 0, 0,
linux_sys_nosys }, /* 217 = unimplemented pivot_root */ linux_sys_nosys }, /* 217 = unimplemented pivot_root */
{ 0, 0, 0, { 0, 0, 0,