summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasoni <jasoni@cvs.openbsd.org>2001-07-04 20:01:42 +0000
committerjasoni <jasoni@cvs.openbsd.org>2001-07-04 20:01:42 +0000
commit8a6b1f4a9d982a42f19588f78cd50ed6f1638593 (patch)
treedaf4f991905c40b79eca4cca4b020d66de095ec8
parente5e41f6e6dd3e9b8015b8cb087c9b26f27d5bcdd (diff)
sync
-rw-r--r--sys/compat/linux/linux_syscall.h78
-rw-r--r--sys/compat/linux/linux_syscallargs.h48
-rw-r--r--sys/compat/linux/linux_syscalls.c28
-rw-r--r--sys/compat/linux/linux_sysent.c52
4 files changed, 187 insertions, 19 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index 172ffc57359..26f84615a93 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.29 2001/07/03 21:56:45 jasoni Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.30 2001/07/04 20:01:40 jasoni Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.30 2001/07/03 21:56:26 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -610,4 +610,76 @@
/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
#define LINUX_SYS_fstat64 197
-#define LINUX_SYS_MAXSYSCALL 198
+/* syscall: "lchown" ret: "int" args: */
+#define LINUX_SYS_lchown 198
+
+/* syscall: "getuid" ret: "uid_t" args: */
+#define LINUX_SYS_getuid 199
+
+/* syscall: "getgid" ret: "gid_t" args: */
+#define LINUX_SYS_getgid 200
+
+/* syscall: "geteuid" ret: "uid_t" args: */
+#define LINUX_SYS_geteuid 201
+
+/* syscall: "getegid" ret: "gid_t" args: */
+#define LINUX_SYS_getegid 202
+
+/* syscall: "setreuid" ret: "int" args: */
+#define LINUX_SYS_setreuid 203
+
+/* syscall: "setregid" ret: "int" args: */
+#define LINUX_SYS_setregid 204
+
+/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
+#define LINUX_SYS_getgroups 205
+
+/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
+#define LINUX_SYS_setgroups 206
+
+/* syscall: "fchown" ret: "int" args: */
+#define LINUX_SYS_fchown 207
+
+/* syscall: "setresuid" ret: "int" args: */
+#define LINUX_SYS_setresuid 208
+
+/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
+#define LINUX_SYS_getresuid 209
+
+/* syscall: "setresgid" ret: "int" args: */
+#define LINUX_SYS_setresgid 210
+
+/* syscall: "getresgid" ret: "int" args: */
+#define LINUX_SYS_getresgid 211
+
+/* syscall: "chown" ret: "int" args: */
+#define LINUX_SYS_chown 212
+
+/* syscall: "setuid" ret: "int" args: "uid_t" */
+#define LINUX_SYS_setuid 213
+
+/* syscall: "setgid" ret: "int" args: "gid_t" */
+#define LINUX_SYS_setgid 214
+
+/* syscall: "setfsuid" ret: "int" args: "uid_t" */
+#define LINUX_SYS_setfsuid 215
+
+/* syscall: "setfsgid" ret: "int" args: */
+#define LINUX_SYS_setfsgid 216
+
+/* syscall: "pivot_root" ret: "int" args: */
+#define LINUX_SYS_pivot_root 217
+
+/* syscall: "mincore" ret: "int" args: */
+#define LINUX_SYS_mincore 218
+
+/* syscall: "madvise" ret: "int" args: */
+#define LINUX_SYS_madvise 219
+
+/* syscall: "getdents64" ret: "int" args: */
+#define LINUX_SYS_getdents64 220
+
+/* syscall: "fcntl64" ret: "int" args: */
+#define LINUX_SYS_fcntl64 221
+
+#define LINUX_SYS_MAXSYSCALL 222
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 053b10daa51..706281f857f 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.30 2001/07/03 21:56:45 jasoni Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.31 2001/07/04 20:01:40 jasoni Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.30 2001/07/03 21:56:26 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -323,10 +323,6 @@ 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;
@@ -402,12 +398,6 @@ struct linux_sys_setresuid16_args {
syscallarg(uid_t) suid;
};
-struct linux_sys_getresuid_args {
- syscallarg(uid_t *) ruid;
- syscallarg(uid_t *) euid;
- syscallarg(uid_t *) suid;
-};
-
struct linux_sys_setresgid16_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
@@ -503,6 +493,16 @@ struct linux_sys_fstat64_args {
syscallarg(struct linux_stat64 *) sp;
};
+struct linux_sys_getresuid_args {
+ syscallarg(uid_t *) ruid;
+ syscallarg(uid_t *) euid;
+ syscallarg(uid_t *) suid;
+};
+
+struct linux_sys_setfsuid_args {
+ syscallarg(uid_t) uid;
+};
+
/*
* System call prototypes.
*/
@@ -717,3 +717,27 @@ int sys_ftruncate __P((struct proc *, void *, register_t *));
int linux_sys_stat64 __P((struct proc *, void *, register_t *));
int linux_sys_lstat64 __P((struct proc *, void *, register_t *));
int linux_sys_fstat64 __P((struct proc *, void *, register_t *));
+int linux_sys_lchown __P((struct proc *, void *, register_t *));
+int sys_getuid __P((struct proc *, void *, register_t *));
+int sys_getgid __P((struct proc *, void *, register_t *));
+int sys_geteuid __P((struct proc *, void *, register_t *));
+int sys_getegid __P((struct proc *, void *, register_t *));
+int linux_sys_setreuid __P((struct proc *, void *, register_t *));
+int linux_sys_setregid __P((struct proc *, void *, register_t *));
+int sys_getgroups __P((struct proc *, void *, register_t *));
+int sys_setgroups __P((struct proc *, void *, register_t *));
+int linux_sys_fchown __P((struct proc *, void *, register_t *));
+int linux_sys_setresuid __P((struct proc *, void *, register_t *));
+int linux_sys_getresuid __P((struct proc *, void *, register_t *));
+int linux_sys_setresgid __P((struct proc *, void *, register_t *));
+int linux_sys_getresgid __P((struct proc *, void *, register_t *));
+int linux_sys_chown __P((struct proc *, void *, register_t *));
+int sys_setuid __P((struct proc *, void *, register_t *));
+int sys_setgid __P((struct proc *, void *, register_t *));
+int linux_sys_setfsuid __P((struct proc *, void *, register_t *));
+int linux_sys_setfsgid __P((struct proc *, void *, register_t *));
+int linux_sys_pivot_root __P((struct proc *, void *, register_t *));
+int linux_sys_mincore __P((struct proc *, void *, register_t *));
+int linux_sys_madvise __P((struct proc *, void *, register_t *));
+int linux_sys_getdents64 __P((struct proc *, void *, register_t *));
+int linux_sys_fcntl64 __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index d25b4ea63d6..154a07b562c 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.29 2001/07/03 21:56:46 jasoni Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.30 2001/07/04 20:01:41 jasoni Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.30 2001/07/03 21:56:26 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni Exp
*/
char *linux_syscallnames[] = {
@@ -218,4 +218,28 @@ char *linux_syscallnames[] = {
"stat64", /* 195 = stat64 */
"lstat64", /* 196 = lstat64 */
"fstat64", /* 197 = fstat64 */
+ "lchown", /* 198 = lchown */
+ "getuid", /* 199 = getuid */
+ "getgid", /* 200 = getgid */
+ "geteuid", /* 201 = geteuid */
+ "getegid", /* 202 = getegid */
+ "setreuid", /* 203 = setreuid */
+ "setregid", /* 204 = setregid */
+ "getgroups", /* 205 = getgroups */
+ "setgroups", /* 206 = setgroups */
+ "fchown", /* 207 = fchown */
+ "setresuid", /* 208 = setresuid */
+ "getresuid", /* 209 = getresuid */
+ "setresgid", /* 210 = setresgid */
+ "getresgid", /* 211 = getresgid */
+ "chown", /* 212 = chown */
+ "setuid", /* 213 = setuid */
+ "setgid", /* 214 = setgid */
+ "setfsuid", /* 215 = setfsuid */
+ "setfsgid", /* 216 = setfsgid */
+ "pivot_root", /* 217 = pivot_root */
+ "mincore", /* 218 = mincore */
+ "madvise", /* 219 = madvise */
+ "getdents64", /* 220 = getdents64 */
+ "fcntl64", /* 221 = fcntl64 */
};
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index d3a99d5f7ba..b550edac2d3 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.30 2001/07/03 21:56:46 jasoni Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.31 2001/07/04 20:01:41 jasoni Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.30 2001/07/03 21:56:26 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni Exp
*/
#include <sys/param.h>
@@ -431,5 +431,53 @@ struct sysent linux_sysent[] = {
linux_sys_lstat64 }, /* 196 = lstat64 */
{ 2, s(struct linux_sys_fstat64_args),
linux_sys_fstat64 }, /* 197 = fstat64 */
+ { 0, 0,
+ linux_sys_lchown }, /* 198 = lchown */
+ { 0, 0,
+ sys_getuid }, /* 199 = getuid */
+ { 0, 0,
+ sys_getgid }, /* 200 = getgid */
+ { 0, 0,
+ sys_geteuid }, /* 201 = geteuid */
+ { 0, 0,
+ sys_getegid }, /* 202 = getegid */
+ { 0, 0,
+ linux_sys_setreuid }, /* 203 = setreuid */
+ { 0, 0,
+ linux_sys_setregid }, /* 204 = setregid */
+ { 2, s(struct sys_getgroups_args),
+ sys_getgroups }, /* 205 = getgroups */
+ { 2, s(struct sys_setgroups_args),
+ sys_setgroups }, /* 206 = setgroups */
+ { 0, 0,
+ linux_sys_fchown }, /* 207 = fchown */
+ { 0, 0,
+ linux_sys_setresuid }, /* 208 = setresuid */
+ { 3, s(struct linux_sys_getresuid_args),
+ linux_sys_getresuid }, /* 209 = getresuid */
+ { 0, 0,
+ linux_sys_setresgid }, /* 210 = setresgid */
+ { 0, 0,
+ linux_sys_getresgid }, /* 211 = getresgid */
+ { 0, 0,
+ linux_sys_chown }, /* 212 = chown */
+ { 1, s(struct sys_setuid_args),
+ sys_setuid }, /* 213 = setuid */
+ { 1, s(struct sys_setgid_args),
+ sys_setgid }, /* 214 = setgid */
+ { 1, s(struct linux_sys_setfsuid_args),
+ linux_sys_setfsuid }, /* 215 = setfsuid */
+ { 0, 0,
+ linux_sys_setfsgid }, /* 216 = setfsgid */
+ { 0, 0,
+ linux_sys_pivot_root }, /* 217 = pivot_root */
+ { 0, 0,
+ linux_sys_mincore }, /* 218 = mincore */
+ { 0, 0,
+ linux_sys_madvise }, /* 219 = madvise */
+ { 0, 0,
+ linux_sys_getdents64 }, /* 220 = getdents64 */
+ { 0, 0,
+ linux_sys_fcntl64 }, /* 221 = fcntl64 */
};