summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/freebsd')
-rw-r--r--sys/compat/freebsd/freebsd_syscall.h10
-rw-r--r--sys/compat/freebsd/freebsd_syscallargs.h6
-rw-r--r--sys/compat/freebsd/freebsd_syscalls.c8
-rw-r--r--sys/compat/freebsd/freebsd_sysent.c12
4 files changed, 22 insertions, 14 deletions
diff --git a/sys/compat/freebsd/freebsd_syscall.h b/sys/compat/freebsd/freebsd_syscall.h
index c957dd7ad09..2e5200aba38 100644
--- a/sys/compat/freebsd/freebsd_syscall.h
+++ b/sys/compat/freebsd/freebsd_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscall.h,v 1.19 2002/07/06 19:22:43 nordin Exp $ */
+/* $OpenBSD: freebsd_syscall.h,v 1.20 2002/10/30 20:11:28 millert Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.18 2002/07/06 19:14:20 nordin Exp
+ * created from OpenBSD: syscalls.master,v 1.19 2002/10/30 20:10:48 millert Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -611,6 +611,12 @@
/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
#define FREEBSD_SYS_lchown 254
+/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
+#define FREEBSD_SYS_setresuid 311
+
+/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
+#define FREEBSD_SYS_setresgid 312
+
/* syscall: "sigprocmask40" ret: "int" args: "int" "const freebsd_sigset_t *" "freebsd_sigset_t *" */
#define FREEBSD_SYS_sigprocmask40 340
diff --git a/sys/compat/freebsd/freebsd_syscallargs.h b/sys/compat/freebsd/freebsd_syscallargs.h
index 39240b8baf7..616435cb3f0 100644
--- a/sys/compat/freebsd/freebsd_syscallargs.h
+++ b/sys/compat/freebsd/freebsd_syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscallargs.h,v 1.21 2002/07/06 19:22:43 nordin Exp $ */
+/* $OpenBSD: freebsd_syscallargs.h,v 1.22 2002/10/30 20:11:28 millert Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.18 2002/07/06 19:14:20 nordin Exp
+ * created from OpenBSD: syscalls.master,v 1.19 2002/10/30 20:10:48 millert Exp
*/
#ifdef syscallarg
@@ -493,6 +493,8 @@ int sys_rfork(struct proc *, void *, register_t *);
int freebsd_sys_poll2(struct proc *, void *, register_t *);
int sys_issetugid(struct proc *, void *, register_t *);
int sys_lchown(struct proc *, void *, register_t *);
+int sys_setresuid(struct proc *, void *, register_t *);
+int sys_setresgid(struct proc *, void *, register_t *);
int freebsd_sys_sigprocmask40(struct proc *, void *, register_t *);
int freebsd_sys_sigsuspend40(struct proc *, void *, register_t *);
int freebsd_sys_sigaction40(struct proc *, void *, register_t *);
diff --git a/sys/compat/freebsd/freebsd_syscalls.c b/sys/compat/freebsd/freebsd_syscalls.c
index 8f8750cd2fe..207ff44c12f 100644
--- a/sys/compat/freebsd/freebsd_syscalls.c
+++ b/sys/compat/freebsd/freebsd_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscalls.c,v 1.19 2002/07/06 19:22:43 nordin Exp $ */
+/* $OpenBSD: freebsd_syscalls.c,v 1.20 2002/10/30 20:11:28 millert Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.18 2002/07/06 19:14:20 nordin Exp
+ * created from OpenBSD: syscalls.master,v 1.19 2002/10/30 20:10:48 millert Exp
*/
char *freebsd_syscallnames[] = {
@@ -383,8 +383,8 @@ char *freebsd_syscallnames[] = {
"#308 (unimplemented kldstat)", /* 308 = unimplemented kldstat */
"#309 (unimplemented kldfirstmod)", /* 309 = unimplemented kldfirstmod */
"#310 (unimplemented getsid)", /* 310 = unimplemented getsid */
- "#311 (unimplemented setresuid)", /* 311 = unimplemented setresuid */
- "#312 (unimplemented setresgid)", /* 312 = unimplemented setresgid */
+ "setresuid", /* 311 = setresuid */
+ "setresgid", /* 312 = setresgid */
"#313 (unimplemented signanosleep)", /* 313 = unimplemented signanosleep */
"#314 (unimplemented aio_return)", /* 314 = unimplemented aio_return */
"#315 (unimplemented aio_suspend)", /* 315 = unimplemented aio_suspend */
diff --git a/sys/compat/freebsd/freebsd_sysent.c b/sys/compat/freebsd/freebsd_sysent.c
index 59353fefe65..5944082922b 100644
--- a/sys/compat/freebsd/freebsd_sysent.c
+++ b/sys/compat/freebsd/freebsd_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_sysent.c,v 1.20 2002/07/06 19:22:43 nordin Exp $ */
+/* $OpenBSD: freebsd_sysent.c,v 1.21 2002/10/30 20:11:28 millert Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.18 2002/07/06 19:14:20 nordin Exp
+ * created from OpenBSD: syscalls.master,v 1.19 2002/10/30 20:10:48 millert Exp
*/
#include <sys/param.h>
@@ -730,10 +730,10 @@ struct sysent freebsd_sysent[] = {
sys_nosys }, /* 309 = unimplemented kldfirstmod */
{ 0, 0,
sys_nosys }, /* 310 = unimplemented getsid */
- { 0, 0,
- sys_nosys }, /* 311 = unimplemented setresuid */
- { 0, 0,
- sys_nosys }, /* 312 = unimplemented setresgid */
+ { 3, s(struct sys_setresuid_args),
+ sys_setresuid }, /* 311 = setresuid */
+ { 3, s(struct sys_setresgid_args),
+ sys_setresgid }, /* 312 = setresgid */
{ 0, 0,
sys_nosys }, /* 313 = unimplemented signanosleep */
{ 0, 0,