Deleted Added
full compact
linux_util.c (177785) linux_util.c (177997)
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 177785 2008-03-31 12:01:21Z kib $");
33__FBSDID("$FreeBSD: head/sys/compat/linux/linux_util.c 177997 2008-04-08 09:45:49Z kib $");
34
35#include "opt_compat.h"
36
37#include <sys/param.h>
38#include <sys/bus.h>
39#include <sys/fcntl.h>
40#include <sys/lock.h>
41#include <sys/malloc.h>

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

61/*
62 * Search an alternate path before passing pathname arguments on to
63 * system calls. Useful for keeping a separate 'emulation tree'.
64 *
65 * If cflag is set, we check if an attempt can be made to create the
66 * named file, i.e. we check if the directory it should be in exists.
67 */
68int
34
35#include "opt_compat.h"
36
37#include <sys/param.h>
38#include <sys/bus.h>
39#include <sys/fcntl.h>
40#include <sys/lock.h>
41#include <sys/malloc.h>

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

61/*
62 * Search an alternate path before passing pathname arguments on to
63 * system calls. Useful for keeping a separate 'emulation tree'.
64 *
65 * If cflag is set, we check if an attempt can be made to create the
66 * named file, i.e. we check if the directory it should be in exists.
67 */
68int
69linux_emul_convpath(td, path, pathseg, pbuf, cflag)
69linux_emul_convpath(td, path, pathseg, pbuf, cflag, dfd)
70 struct thread *td;
70 struct thread *td;
71 char *path;
71 const char *path;
72 enum uio_seg pathseg;
73 char **pbuf;
74 int cflag;
72 enum uio_seg pathseg;
73 char **pbuf;
74 int cflag;
75 int dfd;
75{
76
77 return (kern_alternate_path(td, linux_emul_path, path, pathseg, pbuf,
76{
77
78 return (kern_alternate_path(td, linux_emul_path, path, pathseg, pbuf,
78 cflag));
79 cflag, dfd));
79}
80
81void
82linux_msg(const struct thread *td, const char *fmt, ...)
83{
84 va_list ap;
85 struct proc *p;
86

--- 140 unchanged lines hidden ---
80}
81
82void
83linux_msg(const struct thread *td, const char *fmt, ...)
84{
85 va_list ap;
86 struct proc *p;
87

--- 140 unchanged lines hidden ---