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/i386/ibcs2/ibcs2_util.c 91406 2002-02-27 18:32:23Z jhb $
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/namei.h>
36#include <sys/malloc.h>
37#include <sys/vnode.h>
38
--- 22 unchanged lines hidden (view full) ---
61 struct nameidata nd;
62 struct nameidata ndroot;
63 struct vattr vat;
64 struct vattr vatroot;
65 int error;
66 char *ptr, *buf, *cp;
67 size_t sz, len;
68
69 buf = (char *) malloc(MAXPATHLEN, M_TEMP, M_WAITOK);
70 *pbuf = path;
71
72 for (ptr = buf; (*ptr = *prefix) != '\0'; ptr++, prefix++)
73 continue;
74
75 sz = MAXPATHLEN - (ptr - buf);
76
77 /*
--- 100 unchanged lines hidden ---
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/i386/ibcs2/ibcs2_util.c 91406 2002-02-27 18:32:23Z jhb $
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/namei.h>
36#include <sys/malloc.h>
37#include <sys/vnode.h>
38
--- 22 unchanged lines hidden (view full) ---
61 struct nameidata nd;
62 struct nameidata ndroot;
63 struct vattr vat;
64 struct vattr vatroot;
65 int error;
66 char *ptr, *buf, *cp;
67 size_t sz, len;
68
69 buf = (char *) malloc(MAXPATHLEN, M_TEMP, M_WAITOK);
70 *pbuf = path;
71
72 for (ptr = buf; (*ptr = *prefix) != '\0'; ptr++, prefix++)
73 continue;
74
75 sz = MAXPATHLEN - (ptr - buf);
76
77 /*
--- 100 unchanged lines hidden ---