linux_misc.c (177997) | linux_misc.c (178976) |
---|---|
1/*- 2 * Copyright (c) 2002 Doug Rabson 3 * Copyright (c) 1994-1995 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Doug Rabson 3 * Copyright (c) 1994-1995 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/compat/linux/linux_misc.c 177997 2008-04-08 09:45:49Z kib $"); | 31__FBSDID("$FreeBSD: head/sys/compat/linux/linux_misc.c 178976 2008-05-13 20:01:27Z rdivacky $"); |
32 33#include "opt_compat.h" 34#include "opt_mac.h" 35 36#include <sys/param.h> 37#include <sys/blist.h> 38#include <sys/fcntl.h> 39#if defined(__i386__) --- 30 unchanged lines hidden (view full) --- 70#include <vm/vm.h> 71#include <vm/pmap.h> 72#include <vm/vm_kern.h> 73#include <vm/vm_map.h> 74#include <vm/vm_extern.h> 75#include <vm/vm_object.h> 76#include <vm/swap_pager.h> 77 | 32 33#include "opt_compat.h" 34#include "opt_mac.h" 35 36#include <sys/param.h> 37#include <sys/blist.h> 38#include <sys/fcntl.h> 39#if defined(__i386__) --- 30 unchanged lines hidden (view full) --- 70#include <vm/vm.h> 71#include <vm/pmap.h> 72#include <vm/vm_kern.h> 73#include <vm/vm_map.h> 74#include <vm/vm_extern.h> 75#include <vm/vm_object.h> 76#include <vm/swap_pager.h> 77 |
78#include <compat/linux/linux_sysproto.h> 79#include <compat/linux/linux_emul.h> 80#include <compat/linux/linux_misc.h> 81 | |
82#ifdef COMPAT_LINUX32 83#include <machine/../linux32/linux.h> 84#include <machine/../linux32/linux32_proto.h> 85#else 86#include <machine/../linux/linux.h> 87#include <machine/../linux/linux_proto.h> 88#endif 89 90#include <compat/linux/linux_file.h> 91#include <compat/linux/linux_mib.h> 92#include <compat/linux/linux_signal.h> 93#include <compat/linux/linux_util.h> | 78#ifdef COMPAT_LINUX32 79#include <machine/../linux32/linux.h> 80#include <machine/../linux32/linux32_proto.h> 81#else 82#include <machine/../linux/linux.h> 83#include <machine/../linux/linux_proto.h> 84#endif 85 86#include <compat/linux/linux_file.h> 87#include <compat/linux/linux_mib.h> 88#include <compat/linux/linux_signal.h> 89#include <compat/linux/linux_util.h> |
90#include <compat/linux/linux_sysproto.h> 91#include <compat/linux/linux_emul.h> 92#include <compat/linux/linux_misc.h> |
|
94 95#ifdef __i386__ 96#include <machine/cputypes.h> 97#endif 98 99#define BSD_TO_LINUX_SIGNAL(sig) \ 100 (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig) 101 --- 1765 unchanged lines hidden --- | 93 94#ifdef __i386__ 95#include <machine/cputypes.h> 96#endif 97 98#define BSD_TO_LINUX_SIGNAL(sig) \ 99 (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig) 100 --- 1765 unchanged lines hidden --- |