Module Name: src Committed By: pooka Date: Thu Nov 26 09:02:38 UTC 2009
Modified Files: src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c Log Message: regen: rump_sys_modctl() To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.37 -r1.38 src/sys/rump/librump/rumpkern/rump_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/include/rump/rump_syscalls.h diff -u src/sys/rump/include/rump/rump_syscalls.h:1.16 src/sys/rump/include/rump/rump_syscalls.h:1.17 --- src/sys/rump/include/rump/rump_syscalls.h:1.16 Tue Oct 13 21:57:52 2009 +++ src/sys/rump/include/rump/rump_syscalls.h Thu Nov 26 09:02:38 2009 @@ -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); Index: src/sys/rump/librump/rumpkern/rump_syscalls.c diff -u src/sys/rump/librump/rumpkern/rump_syscalls.c:1.37 src/sys/rump/librump/rumpkern/rump_syscalls.c:1.38 --- src/sys/rump/librump/rumpkern/rump_syscalls.c:1.37 Tue Oct 13 21:57:53 2009 +++ src/sys/rump/librump/rumpkern/rump_syscalls.c Thu Nov 26 09:02:38 2009 @@ -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,