From a8fb6575c7bfae428a7f7aa2cc3e18ed30142e56 Mon Sep 17 00:00:00 2001 From: Nicolas Joly Date: Tue, 20 Jan 2009 12:02:09 +0000 Subject: [PATCH] Regen for personality(2) addition. --- sys/compat/linux32/arch/amd64/linux32_syscall.h | 5 ++++- sys/compat/linux32/arch/amd64/linux32_syscallargs.h | 9 ++++++++- sys/compat/linux32/arch/amd64/linux32_syscalls.c | 4 ++-- sys/compat/linux32/arch/amd64/linux32_sysent.c | 6 +++--- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/sys/compat/linux32/arch/amd64/linux32_syscall.h b/sys/compat/linux32/arch/amd64/linux32_syscall.h index b792713fcf4..47a573c2c23 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscall.h +++ b/sys/compat/linux32/arch/amd64/linux32_syscall.h @@ -4,7 +4,7 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.49 2009/01/20 12:00:58 njoly Exp */ #ifndef _LINUX32_SYS_SYSCALL_H_ @@ -307,6 +307,9 @@ /* syscall: "netbsd32_fchdir" ret: "int" args: "int" */ #define LINUX32_SYS_netbsd32_fchdir 133 +/* syscall: "personality" ret: "int" args: "int" */ +#define LINUX32_SYS_personality 136 + /* syscall: "setfsuid16" ret: "int" args: "uid_t" */ #define LINUX32_SYS_setfsuid16 138 diff --git a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h index d22bc302009..0a58b6430e0 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h +++ b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h @@ -4,7 +4,7 @@ * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.49 2009/01/20 12:00:58 njoly Exp */ #ifndef _LINUX32_SYS_SYSCALLARGS_H_ @@ -385,6 +385,11 @@ struct netbsd32_getpgid_args; struct netbsd32_fchdir_args; +struct linux32_sys_personality_args { + syscallarg(int) per; +}; +check_syscall_args(linux32_sys_personality) + struct linux32_sys_setfsuid_args; struct linux32_sys_setfsgid_args; @@ -898,6 +903,8 @@ int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, registe int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *); +int linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *); + int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *); int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *); diff --git a/sys/compat/linux32/arch/amd64/linux32_syscalls.c b/sys/compat/linux32/arch/amd64/linux32_syscalls.c index fa0afde8dd8..548b24e0e59 100644 --- a/sys/compat/linux32/arch/amd64/linux32_syscalls.c +++ b/sys/compat/linux32/arch/amd64/linux32_syscalls.c @@ -4,7 +4,7 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.49 2009/01/20 12:00:58 njoly Exp */ #include @@ -171,7 +171,7 @@ const char *const linux32_syscallnames[] = { /* 133 */ "netbsd32_fchdir", /* 134 */ "#134 (unimplemented bdflush)", /* 135 */ "#135 (unimplemented sysfs)", - /* 136 */ "#136 (unimplemented personality)", + /* 136 */ "personality", /* 137 */ "#137 (unimplemented afs_syscall)", /* 138 */ "setfsuid16", /* 139 */ "setfsgid16", diff --git a/sys/compat/linux32/arch/amd64/linux32_sysent.c b/sys/compat/linux32/arch/amd64/linux32_sysent.c index 5f16b016ab8..c1b62b29e11 100644 --- a/sys/compat/linux32/arch/amd64/linux32_sysent.c +++ b/sys/compat/linux32/arch/amd64/linux32_sysent.c @@ -4,7 +4,7 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.49 2009/01/20 12:00:58 njoly Exp */ #include @@ -309,8 +309,8 @@ struct sysent linux32_sysent[] = { linux_sys_nosys }, /* 134 = unimplemented bdflush */ { 0, 0, 0, linux_sys_nosys }, /* 135 = unimplemented sysfs */ - { 0, 0, 0, - linux_sys_nosys }, /* 136 = unimplemented personality */ + { ns(struct linux32_sys_personality_args), 0, + (sy_call_t *)linux32_sys_personality },/* 136 = personality */ { 0, 0, 0, linux_sys_nosys }, /* 137 = unimplemented afs_syscall */ { ns(struct linux32_sys_setfsuid_args), 0, -- 2.11.4.GIT