Deleted Added
full compact
linux_util.c (161310) linux_util.c (166944)
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 161310 2006-08-15 12:54:30Z netchild $");
33__FBSDID("$FreeBSD: head/sys/compat/linux/linux_util.c 166944 2007-02-24 16:49:25Z netchild $");
34
35#include "opt_compat.h"
36
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>

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

53#include <machine/../linux32/linux.h>
54#else
55#include <machine/../linux/linux.h>
56#endif
57
58const char linux_emul_path[] = "/compat/linux";
59
60/*
34
35#include "opt_compat.h"
36
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>

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

53#include <machine/../linux32/linux.h>
54#else
55#include <machine/../linux/linux.h>
56#endif
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'.
61 * Search an alternate path before passing pathname arguments on to
62 * system calls. Useful for keeping a separate 'emulation tree'.
63 *
63 *
64 * If cflag is set, we check if an attempt can be made to create
65 * the named file, i.e. we check if the directory it should
66 * be in exists.
64 * If cflag is set, we check if an attempt can be made to create the
65 * named file, i.e. we check if the directory it should be in exists.
67 */
68int
69linux_emul_convpath(td, path, pathseg, pbuf, cflag)
70 struct thread *td;
71 char *path;
72 enum uio_seg pathseg;
73 char **pbuf;
74 int cflag;

--- 152 unchanged lines hidden ---
66 */
67int
68linux_emul_convpath(td, path, pathseg, pbuf, cflag)
69 struct thread *td;
70 char *path;
71 enum uio_seg pathseg;
72 char **pbuf;
73 int cflag;

--- 152 unchanged lines hidden ---