diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2000-04-12 04:23:06 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2000-04-12 04:23:06 +0000 |
commit | 0b909eab0525266878d3bd4b8d10b8d3a78cac50 (patch) | |
tree | 34d349bc1db9a254f767238071dda3e90bda60b7 /sys/compat | |
parent | 702760c748d018312be23e323c34e8f2541136c5 (diff) |
sync
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 10 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 10 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 8 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 10 |
4 files changed, 25 insertions, 13 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 72964bf40dd..bcaea04b8f3 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscall.h,v 1.20 2000/04/04 05:32:17 jasoni Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.21 2000/04/12 04:23:05 jasoni Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.22 2000/04/12 04:22:40 jasoni Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -339,6 +339,12 @@ /* syscall: "personality" ret: "int" args: "int" */ #define LINUX_SYS_personality 136 +/* syscall: "setfsuid" ret: "int" args: "uid_t" */ +#define LINUX_SYS_setfsuid 138 + +/* syscall: "getfsuid" ret: "int" args: */ +#define LINUX_SYS_getfsuid 139 + /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */ #define LINUX_SYS_llseek 140 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 1d7bacadc6a..cd4bbd15b10 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.21 2000/04/04 05:32:17 jasoni Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.22 2000/04/12 04:23:05 jasoni Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.22 2000/04/12 04:22:40 jasoni Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -308,6 +308,10 @@ struct linux_sys_personality_args { syscallarg(int) per; }; +struct linux_sys_setfsuid_args { + syscallarg(uid_t) uid; +}; + struct linux_sys_llseek_args { syscallarg(int) fd; syscallarg(u_int32_t) ohigh; @@ -549,6 +553,8 @@ int linux_sys_sigprocmask __P((struct proc *, void *, register_t *)); int linux_sys_getpgid __P((struct proc *, void *, register_t *)); int sys_fchdir __P((struct proc *, void *, register_t *)); int linux_sys_personality __P((struct proc *, void *, register_t *)); +int linux_sys_setfsuid __P((struct proc *, void *, register_t *)); +int linux_sys_getfsuid __P((struct proc *, void *, register_t *)); int linux_sys_llseek __P((struct proc *, void *, register_t *)); int linux_sys_getdents __P((struct proc *, void *, register_t *)); int linux_sys_select __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 6e45a19c185..9c6e889f335 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscalls.c,v 1.20 2000/04/04 05:32:17 jasoni Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.21 2000/04/12 04:23:05 jasoni Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.22 2000/04/12 04:22:40 jasoni Exp */ char *linux_syscallnames[] = { @@ -158,8 +158,8 @@ char *linux_syscallnames[] = { "#135 (unimplemented sysfs)", /* 135 = unimplemented sysfs */ "personality", /* 136 = personality */ "#137 (unimplemented afs_syscall)", /* 137 = unimplemented afs_syscall */ - "#138 (unimplemented setfsuid)", /* 138 = unimplemented setfsuid */ - "#139 (unimplemented getfsuid)", /* 139 = unimplemented getfsuid */ + "setfsuid", /* 138 = setfsuid */ + "getfsuid", /* 139 = getfsuid */ "llseek", /* 140 = llseek */ "getdents", /* 141 = getdents */ "select", /* 142 = select */ diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index 132e642421c..23573f34fc9 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_sysent.c,v 1.21 2000/04/04 05:32:17 jasoni Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.22 2000/04/12 04:23:05 jasoni Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.22 2000/04/12 04:22:40 jasoni Exp */ #include <sys/param.h> @@ -311,10 +311,10 @@ struct sysent linux_sysent[] = { linux_sys_personality }, /* 136 = personality */ { 0, 0, sys_nosys }, /* 137 = unimplemented afs_syscall */ + { 1, s(struct linux_sys_setfsuid_args), + linux_sys_setfsuid }, /* 138 = setfsuid */ { 0, 0, - sys_nosys }, /* 138 = unimplemented setfsuid */ - { 0, 0, - sys_nosys }, /* 139 = unimplemented getfsuid */ + linux_sys_getfsuid }, /* 139 = getfsuid */ { 5, s(struct linux_sys_llseek_args), linux_sys_llseek }, /* 140 = llseek */ { 3, s(struct linux_sys_getdents_args), |