Deleted Added
full compact
linux_util.c (71699) linux_util.c (72091)
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

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

22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * from: svr4_util.c,v 1.5 1995/01/22 23:44:50 christos Exp
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

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

22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * from: svr4_util.c,v 1.5 1995/01/22 23:44:50 christos Exp
30 * $FreeBSD: head/sys/compat/linux/linux_util.c 71699 2001-01-27 00:01:31Z jhb $
30 * $FreeBSD: head/sys/compat/linux/linux_util.c 72091 2001-02-06 11:21:58Z asmodai $
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/namei.h>
36#include <sys/proc.h>
37#include <sys/malloc.h>
38#include <sys/vnode.h>
39
40#include <compat/linux/linux_util.h>
41
42const char linux_emul_path[] = "/compat/linux";
43
44/*
45 * Search an alternate path before passing pathname arguments on
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/namei.h>
36#include <sys/proc.h>
37#include <sys/malloc.h>
38#include <sys/vnode.h>
39
40#include <compat/linux/linux_util.h>
41
42const char linux_emul_path[] = "/compat/linux";
43
44/*
45 * Search an alternate path before passing pathname arguments on
46 * to system calls. Useful for keeping a seperate 'emulation tree'.
46 * to system calls. Useful for keeping a separate 'emulation tree'.
47 *
48 * If cflag is set, we check if an attempt can be made to create
49 * the named file, i.e. we check if the directory it should
50 * be in exists.
51 */
52int
53linux_emul_find(p, sgp, prefix, path, pbuf, cflag)
54 struct proc *p;

--- 132 unchanged lines hidden ---
47 *
48 * If cflag is set, we check if an attempt can be made to create
49 * the named file, i.e. we check if the directory it should
50 * be in exists.
51 */
52int
53linux_emul_find(p, sgp, prefix, path, pbuf, cflag)
54 struct proc *p;

--- 132 unchanged lines hidden ---