From 53204b3fc855712fb1aa46bf43ef9c769e465ebd Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 9 Jul 2011 00:10:51 +0000 Subject: Remove COMPAT_25. The one piece moved by COMPAT_LINUX moves there. ok guenther --- sys/compat/linux/linux_misc.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 0b62285fa8c..57020d126fa 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.71 2011/07/08 19:19:20 tedu Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.72 2011/07/09 00:10:52 deraadt Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -1466,3 +1467,17 @@ linux_sys_setdomainname(struct proc *p, void *v, register_t *retval) return (kern_sysctl(mib, 1, NULL, NULL, SCARG(uap, name), SCARG(uap, len), p)); } + +int +linux_sys_swapon(struct proc *p, void *v, register_t *retval) +{ + struct sys_swapctl_args ua; + struct linux_sys_swapon_args /* { + syscallarg(const char *) name; + } */ *uap = v; + + SCARG(&ua, cmd) = SWAP_ON; + SCARG(&ua, arg) = (void *)SCARG(uap, name); + SCARG(&ua, misc) = 0; /* priority */ + return (sys_swapctl(p, &ua, retval)); +} -- cgit v1.2.3-59-g8ed1b