Deleted Added
full compact
linux_misc.c (102814) linux_misc.c (102954)
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

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 *
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

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/sys/compat/linux/linux_misc.c 102814 2002-09-01 22:30:27Z iedowse $
28 * $FreeBSD: head/sys/compat/linux/linux_misc.c 102954 2002-09-05 08:13:20Z bde $
29 */
30
29 */
30
31#include "opt_compat.h"
32#include "opt_mac.h"
33
34#include <sys/param.h>
31#include "opt_mac.h"
32
33#include <sys/param.h>
35#include <sys/systm.h>
34#include <sys/blist.h>
36#include <sys/fcntl.h>
37#include <sys/imgact_aout.h>
38#include <sys/jail.h>
39#include <sys/kernel.h>
40#include <sys/lock.h>
41#include <sys/mac.h>
35#include <sys/fcntl.h>
36#include <sys/imgact_aout.h>
37#include <sys/jail.h>
38#include <sys/kernel.h>
39#include <sys/lock.h>
40#include <sys/mac.h>
41#include <sys/malloc.h>
42#include <sys/mman.h>
43#include <sys/mount.h>
44#include <sys/mutex.h>
45#include <sys/namei.h>
42#include <sys/mman.h>
43#include <sys/mount.h>
44#include <sys/mutex.h>
45#include <sys/namei.h>
46#include <sys/poll.h>
47#include <sys/proc.h>
46#include <sys/proc.h>
48#include <sys/blist.h>
49#include <sys/reboot.h>
50#include <sys/resourcevar.h>
51#include <sys/signalvar.h>
52#include <sys/stat.h>
53#include <sys/syscallsubr.h>
54#include <sys/sysctl.h>
55#include <sys/sysproto.h>
47#include <sys/reboot.h>
48#include <sys/resourcevar.h>
49#include <sys/signalvar.h>
50#include <sys/stat.h>
51#include <sys/syscallsubr.h>
52#include <sys/sysctl.h>
53#include <sys/sysproto.h>
54#include <sys/systm.h>
56#include <sys/time.h>
55#include <sys/time.h>
57#include <sys/unistd.h>
58#include <sys/vmmeter.h>
59#include <sys/vnode.h>
60#include <sys/wait.h>
61
62#include <vm/vm.h>
63#include <vm/pmap.h>
64#include <vm/vm_kern.h>
65#include <vm/vm_map.h>
66#include <vm/vm_extern.h>
67#include <vm/vm_object.h>
68#include <vm/swap_pager.h>
69
70#include <machine/limits.h>
71
72#include <posix4/sched.h>
73
74#include <machine/../linux/linux.h>
75#include <machine/../linux/linux_proto.h>
56#include <sys/vmmeter.h>
57#include <sys/vnode.h>
58#include <sys/wait.h>
59
60#include <vm/vm.h>
61#include <vm/pmap.h>
62#include <vm/vm_kern.h>
63#include <vm/vm_map.h>
64#include <vm/vm_extern.h>
65#include <vm/vm_object.h>
66#include <vm/swap_pager.h>
67
68#include <machine/limits.h>
69
70#include <posix4/sched.h>
71
72#include <machine/../linux/linux.h>
73#include <machine/../linux/linux_proto.h>
74
76#include <compat/linux/linux_mib.h>
77#include <compat/linux/linux_util.h>
78
79#ifdef __alpha__
80#define BSD_TO_LINUX_SIGNAL(sig) (sig)
81#else
82#define BSD_TO_LINUX_SIGNAL(sig) \
83 (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig)

--- 1233 unchanged lines hidden ---
75#include <compat/linux/linux_mib.h>
76#include <compat/linux/linux_util.h>
77
78#ifdef __alpha__
79#define BSD_TO_LINUX_SIGNAL(sig) (sig)
80#else
81#define BSD_TO_LINUX_SIGNAL(sig) \
82 (((sig) <= LINUX_SIGTBLSZ) ? bsd_to_linux_signal[_SIG_IDX(sig)] : sig)

--- 1233 unchanged lines hidden ---