linux_socket.c (293537) | linux_socket.c (293541) |
---|---|
1/*- 2 * Copyright (c) 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) 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: stable/10/sys/compat/linux/linux_socket.c 293537 2016-01-09 16:26:39Z dchagin $"); | 30__FBSDID("$FreeBSD: stable/10/sys/compat/linux/linux_socket.c 293541 2016-01-09 16:31:10Z dchagin $"); |
31 32/* XXX we use functions that might not exist. */ 33#include "opt_compat.h" 34#include "opt_inet6.h" 35 36#include <sys/param.h> 37#include <sys/proc.h> 38#include <sys/systm.h> --- 26 unchanged lines hidden (view full) --- 65 66#ifdef COMPAT_LINUX32 67#include <machine/../linux32/linux.h> 68#include <machine/../linux32/linux32_proto.h> 69#else 70#include <machine/../linux/linux.h> 71#include <machine/../linux/linux_proto.h> 72#endif | 31 32/* XXX we use functions that might not exist. */ 33#include "opt_compat.h" 34#include "opt_inet6.h" 35 36#include <sys/param.h> 37#include <sys/proc.h> 38#include <sys/systm.h> --- 26 unchanged lines hidden (view full) --- 65 66#ifdef COMPAT_LINUX32 67#include <machine/../linux32/linux.h> 68#include <machine/../linux32/linux32_proto.h> 69#else 70#include <machine/../linux/linux.h> 71#include <machine/../linux/linux_proto.h> 72#endif |
73#include <compat/linux/linux_file.h> |
|
73#include <compat/linux/linux_socket.h> 74#include <compat/linux/linux_util.h> 75 76static int linux_to_bsd_domain(int); 77 78/* 79 * Reads a linux sockaddr and does any necessary translation. 80 * Linux sockaddrs don't have a length field, only a family. --- 1538 unchanged lines hidden --- | 74#include <compat/linux/linux_socket.h> 75#include <compat/linux/linux_util.h> 76 77static int linux_to_bsd_domain(int); 78 79/* 80 * Reads a linux sockaddr and does any necessary translation. 81 * Linux sockaddrs don't have a length field, only a family. --- 1538 unchanged lines hidden --- |