Deleted Added
full compact
linux_getcwd.c (122861) linux_getcwd.c (133816)
1/* $OpenBSD: linux_getcwd.c,v 1.2 2001/05/16 12:50:21 ho Exp $ */
2/* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */
3/*-
4 * Copyright (c) 1999 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Bill Sommerfeld.

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

32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
1/* $OpenBSD: linux_getcwd.c,v 1.2 2001/05/16 12:50:21 ho Exp $ */
2/* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */
3/*-
4 * Copyright (c) 1999 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Bill Sommerfeld.

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

32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/compat/linux/linux_getcwd.c 122861 2003-11-17 18:57:20Z rwatson $");
40__FBSDID("$FreeBSD: head/sys/compat/linux/linux_getcwd.c 133816 2004-08-16 07:28:16Z tjr $");
41
42#include "opt_compat.h"
43#include "opt_mac.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/namei.h>
48#include <sys/filedesc.h>

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

54#include <sys/mount.h>
55#include <sys/proc.h>
56#include <sys/uio.h>
57#include <sys/mac.h>
58#include <sys/malloc.h>
59#include <sys/dirent.h>
60#include <ufs/ufs/dir.h> /* XXX only for DIRBLKSIZ */
61
41
42#include "opt_compat.h"
43#include "opt_mac.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/namei.h>
48#include <sys/filedesc.h>

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

54#include <sys/mount.h>
55#include <sys/proc.h>
56#include <sys/uio.h>
57#include <sys/mac.h>
58#include <sys/malloc.h>
59#include <sys/dirent.h>
60#include <ufs/ufs/dir.h> /* XXX only for DIRBLKSIZ */
61
62#include "opt_compat.h"
63
64#if !COMPAT_LINUX32
62#include <machine/../linux/linux.h>
63#include <machine/../linux/linux_proto.h>
65#include <machine/../linux/linux.h>
66#include <machine/../linux/linux_proto.h>
67#else
68#include <machine/../linux32/linux.h>
69#include <machine/../linux32/linux32_proto.h>
70#endif
64#include <compat/linux/linux_util.h>
65
66static int
67linux_getcwd_scandir(struct vnode **, struct vnode **,
68 char **, char *, struct thread *);
69static int
70linux_getcwd_common(struct vnode *, struct vnode *,
71 char **, char *, int, int, struct thread *);

--- 403 unchanged lines hidden ---
71#include <compat/linux/linux_util.h>
72
73static int
74linux_getcwd_scandir(struct vnode **, struct vnode **,
75 char **, char *, struct thread *);
76static int
77linux_getcwd_common(struct vnode *, struct vnode *,
78 char **, char *, int, int, struct thread *);

--- 403 unchanged lines hidden ---