linux_ioctl.c (139743) | linux_ioctl.c (140214) |
---|---|
1/*- 2 * Copyright (c) 1994-1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_ioctl.c 139743 2005-01-05 22:34:37Z imp $"); | 30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_ioctl.c 140214 2005-01-14 04:44:56Z obrien $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/sysproto.h> 35#include <sys/cdio.h> 36#include <sys/dvdio.h> 37#include <sys/conf.h> 38#include <sys/disk.h> --- 14 unchanged lines hidden (view full) --- 53#include <sys/tty.h> 54#include <sys/uio.h> 55#include <net/if.h> 56#include <net/if_dl.h> 57#include <net/if_types.h> 58 59#include "opt_compat.h" 60 | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/sysproto.h> 35#include <sys/cdio.h> 36#include <sys/dvdio.h> 37#include <sys/conf.h> 38#include <sys/disk.h> --- 14 unchanged lines hidden (view full) --- 53#include <sys/tty.h> 54#include <sys/uio.h> 55#include <net/if.h> 56#include <net/if_dl.h> 57#include <net/if_types.h> 58 59#include "opt_compat.h" 60 |
61#if !COMPAT_LINUX32 62#include <machine/../linux/linux.h> 63#include <machine/../linux/linux_proto.h> 64#else | 61#ifdef COMPAT_LINUX32 |
65#include <machine/../linux32/linux.h> 66#include <machine/../linux32/linux32_proto.h> | 62#include <machine/../linux32/linux.h> 63#include <machine/../linux32/linux32_proto.h> |
64#else 65#include <machine/../linux/linux.h> 66#include <machine/../linux/linux_proto.h> |
|
67#endif 68 69#include <compat/linux/linux_ioctl.h> 70#include <compat/linux/linux_mib.h> 71#include <compat/linux/linux_util.h> 72 73static linux_ioctl_function_t linux_ioctl_cdrom; 74static linux_ioctl_function_t linux_ioctl_vfat; --- 2008 unchanged lines hidden (view full) --- 2083 2084/* 2085 * Implement the SIOCGIFCONF ioctl 2086 */ 2087 2088static int 2089linux_ifconf(struct thread *td, struct ifconf *uifc) 2090{ | 67#endif 68 69#include <compat/linux/linux_ioctl.h> 70#include <compat/linux/linux_mib.h> 71#include <compat/linux/linux_util.h> 72 73static linux_ioctl_function_t linux_ioctl_cdrom; 74static linux_ioctl_function_t linux_ioctl_vfat; --- 2008 unchanged lines hidden (view full) --- 2083 2084/* 2085 * Implement the SIOCGIFCONF ioctl 2086 */ 2087 2088static int 2089linux_ifconf(struct thread *td, struct ifconf *uifc) 2090{ |
2091#if COMPAT_LINUX32 | 2091#ifdef COMPAT_LINUX32 |
2092 struct l_ifconf ifc; 2093#else 2094 struct ifconf ifc; 2095#endif 2096 struct l_ifreq ifr; 2097 struct ifnet *ifp; 2098 struct ifaddr *ifa; 2099 struct iovec iov; --- 505 unchanged lines hidden --- | 2092 struct l_ifconf ifc; 2093#else 2094 struct ifconf ifc; 2095#endif 2096 struct l_ifreq ifr; 2097 struct ifnet *ifp; 2098 struct ifaddr *ifa; 2099 struct iovec iov; --- 505 unchanged lines hidden --- |