Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: rump_sys_modctl()
details: https://anonhg.NetBSD.org/src/rev/9161958e0740
branches: trunk
changeset: 749310:9161958e0740
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Nov 26 09:02:38 2009 +0000
description:
regen: rump_sys_modctl()
diffstat:
sys/rump/include/rump/rump_syscalls.h | 5 +++--
sys/rump/librump/rumpkern/rump_syscalls.c | 31 ++++++++++++++++++++++++++-----
2 files changed, 29 insertions(+), 7 deletions(-)
diffs (84 lines):
diff -r 1d07c819e177 -r 9161958e0740 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Thu Nov 26 09:00:45 2009 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Thu Nov 26 09:02:38 2009 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.16 2009/10/13 21:57:52 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.17 2009/11/26 09:02:38 pooka Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.229 2009/07/21 23:59:00 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.230 2009/11/26 09:00:45 pooka Exp
*/
#ifdef _RUMPKERNEL
@@ -73,6 +73,7 @@
int rump_sys_reboot(int, char *);
int rump_sys_poll(struct pollfd *, u_int, int);
int rump_sys_fdatasync(int);
+int rump_sys_modctl(int, void *);
int rump_sys_lchmod(const char *, mode_t);
int rump_sys_lchown(const char *, uid_t, gid_t);
int rump_sys_fchroot(int);
diff -r 1d07c819e177 -r 9161958e0740 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Thu Nov 26 09:00:45 2009 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Thu Nov 26 09:02:38 2009 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_syscalls.c,v 1.37 2009/10/13 21:57:53 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.38 2009/11/26 09:02:38 pooka Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.229 2009/07/21 23:59:00 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.230 2009/11/26 09:00:45 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.37 2009/10/13 21:57:53 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.38 2009/11/26 09:02:38 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1261,6 +1261,27 @@
}
__weak_alias(sys_fdatasync,rump_enosys);
+int rump_sys_modctl(int, void *);
+int
+rump_sys_modctl(int cmd, void * arg)
+{
+ register_t retval = 0;
+ int error = 0;
+ struct sys_modctl_args callarg;
+
+ SPARG(&callarg, cmd) = cmd;
+ SPARG(&callarg, arg) = arg;
+
+ error = rump_sysproxy(SYS_modctl, rump_sysproxy_arg,
+ (uint8_t *)&callarg, sizeof(callarg), &retval);
+ if (error) {
+ retval = -1;
+ rumpuser_seterrno(error);
+ }
+ return retval;
+}
+__weak_alias(sys_modctl,rump_enosys);
+
int rump_sys_lchmod(const char *, mode_t);
int
rump_sys_lchmod(const char * path, mode_t mode)
@@ -2987,8 +3008,8 @@
(sy_call_t *)rump_enosys }, /* 244 = unrumped */
{ 0, 0, 0,
(sy_call_t *)rump_enosys }, /* 245 = unimplemented sys_sigqueue */
- { 0, 0, 0,
- (sy_call_t *)rump_enosys }, /* 246 = unrumped */
+ { ns(struct sys_modctl_args), 0,
+ (sy_call_t *)sys_modctl }, /* 246 = modctl */
{ 0, 0, 0,
(sy_call_t *)rump_enosys }, /* 247 = unrumped */
{ 0, 0, 0,
Home |
Main Index |
Thread Index |
Old Index