diff options
| author | christos <christos@NetBSD.org> | 2008-06-19 16:09:25 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2008-06-19 16:09:25 +0000 |
| commit | d83ff0cd7b268b215986e1db436abec99b86f9d1 (patch) | |
| tree | 672f467874bd4147a77907ef0c15d83471d11726 /sys/compat/linux32/common/linux32_ioctl.c | |
| parent | 5bbd2ba0982a53799f0f2989ef45b0374e868d49 (diff) | |
an attempt at linux32_ioctl_socket().
Diffstat (limited to 'sys/compat/linux32/common/linux32_ioctl.c')
| -rw-r--r-- | sys/compat/linux32/common/linux32_ioctl.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/compat/linux32/common/linux32_ioctl.c b/sys/compat/linux32/common/linux32_ioctl.c index 1978da5b81e..b21ebe5b522 100644 --- a/sys/compat/linux32/common/linux32_ioctl.c +++ b/sys/compat/linux32/common/linux32_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_ioctl.c,v 1.10 2008/01/22 01:05:05 jmcneill Exp $ */ +/* $NetBSD: linux32_ioctl.c,v 1.11 2008/06/19 16:09:25 christos Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.10 2008/01/22 01:05:05 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.11 2008/06/19 16:09:25 christos Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -56,9 +56,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.10 2008/01/22 01:05:05 jmcneill #include <compat/ossaudio/ossaudio.h> #include <compat/ossaudio/ossaudiovar.h> -extern int linux_ioctl_socket(struct lwp *, - struct linux_sys_ioctl_args *, register_t *); - int linux32_sys_ioctl(struct lwp *l, const struct linux32_sys_ioctl_args *uap, register_t *retval) { @@ -103,15 +100,9 @@ linux32_sys_ioctl(struct lwp *l, const struct linux32_sys_ioctl_args *uap, regis break; } break; - case 0x89: { - struct linux_sys_ioctl_args cup; - - SCARG(&cup, fd) = SCARG(uap, fd); - SCARG(&cup, com) = (u_long)SCARG(uap, com); - SCARG(&cup, data) = SCARG_P32(uap, data); - error = linux_ioctl_socket(l, &cup, retval); + case 0x89: + error = linux32_ioctl_socket(l, uap, retval); break; - } default: printf("Not yet implemented ioctl group \'%c\'\n", group); error = EINVAL; |
