Deleted Added
full compact
linux_util.c (158311) linux_util.c (161310)
1/*-
2 * Copyright (c) 1994 Christos Zoulas
3 * Copyright (c) 1995 Frank van der Linden
4 * Copyright (c) 1995 Scott Bartram
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

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 * from: svr4_util.c,v 1.5 1995/01/22 23:44:50 christos Exp
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994 Christos Zoulas
3 * Copyright (c) 1995 Frank van der Linden
4 * Copyright (c) 1995 Scott Bartram
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

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 * from: svr4_util.c,v 1.5 1995/01/22 23:44:50 christos Exp
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/compat/linux/linux_util.c 158311 2006-05-05 16:10:45Z ambrisko $");
33__FBSDID("$FreeBSD: head/sys/compat/linux/linux_util.c 161310 2006-08-15 12:54:30Z netchild $");
34
34
35#include "opt_compat.h"
36
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/linker_set.h>
40#include <sys/mutex.h>
41#include <sys/namei.h>
42#include <sys/proc.h>
43#include <sys/syscallsubr.h>
44#include <sys/systm.h>
45#include <sys/vnode.h>
46
47#include <machine/stdarg.h>
48
49#include <compat/linux/linux_util.h>
37#include <sys/param.h>
38#include <sys/bus.h>
39#include <sys/lock.h>
40#include <sys/malloc.h>
41#include <sys/linker_set.h>
42#include <sys/mutex.h>
43#include <sys/namei.h>
44#include <sys/proc.h>
45#include <sys/syscallsubr.h>
46#include <sys/systm.h>
47#include <sys/vnode.h>
48
49#include <machine/stdarg.h>
50
51#include <compat/linux/linux_util.h>
52#ifdef COMPAT_LINUX32
53#include <machine/../linux32/linux.h>
54#else
55#include <machine/../linux/linux.h>
56#endif
50
51const char linux_emul_path[] = "/compat/linux";
52
53/*
54 * Search an alternate path before passing pathname arguments on
55 * to system calls. Useful for keeping a separate 'emulation tree'.
56 *
57 * If cflag is set, we check if an attempt can be made to create

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

80 p = td->td_proc;
81 printf("linux: pid %d (%s): ", (int)p->p_pid, p->p_comm);
82 va_start(ap, fmt);
83 vprintf(fmt, ap);
84 va_end(ap);
85 printf("\n");
86}
87
57
58const char linux_emul_path[] = "/compat/linux";
59
60/*
61 * Search an alternate path before passing pathname arguments on
62 * to system calls. Useful for keeping a separate 'emulation tree'.
63 *
64 * If cflag is set, we check if an attempt can be made to create

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

87 p = td->td_proc;
88 printf("linux: pid %d (%s): ", (int)p->p_pid, p->p_comm);
89 va_start(ap, fmt);
90 vprintf(fmt, ap);
91 va_end(ap);
92 printf("\n");
93}
94
88MALLOC_DECLARE(M_LINUX);
89
90struct device_element
91{
92 TAILQ_ENTRY(device_element) list;
93 struct linux_device_handler entry;
94};
95
96static TAILQ_HEAD(, device_element) devices =
97 TAILQ_HEAD_INITIALIZER(devices);

--- 124 unchanged lines hidden ---
95struct device_element
96{
97 TAILQ_ENTRY(device_element) list;
98 struct linux_device_handler entry;
99};
100
101static TAILQ_HEAD(, device_element) devices =
102 TAILQ_HEAD_INITIALIZER(devices);

--- 124 unchanged lines hidden ---