Deleted Added
full compact
namei.h (228952) namei.h (241896)
1/*-
2 * Copyright (c) 1985, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)namei.h 8.5 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1985, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)namei.h 8.5 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/sys/namei.h 228952 2011-12-29 12:28:05Z pluknet $
30 * $FreeBSD: head/sys/sys/namei.h 241896 2012-10-22 17:50:54Z kib $
31 */
32
33#ifndef _SYS_NAMEI_H_
34#define _SYS_NAMEI_H_
35
36#include <sys/queue.h>
37#include <sys/uio.h>
38

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

139#define ISSYMLINK 0x00010000 /* symlink needs interpretation */
140#define ISWHITEOUT 0x00020000 /* found whiteout */
141#define DOWHITEOUT 0x00040000 /* do whiteouts */
142#define WILLBEDIR 0x00080000 /* new files will be dirs; allow trailing / */
143#define ISUNICODE 0x00100000 /* current component name is unicode*/
144#define ISOPEN 0x00200000 /* caller is opening; return a real vnode. */
145#define NOCROSSMOUNT 0x00400000 /* do not cross mount points */
146#define NOMACCHECK 0x00800000 /* do not perform MAC checks */
31 */
32
33#ifndef _SYS_NAMEI_H_
34#define _SYS_NAMEI_H_
35
36#include <sys/queue.h>
37#include <sys/uio.h>
38

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

139#define ISSYMLINK 0x00010000 /* symlink needs interpretation */
140#define ISWHITEOUT 0x00020000 /* found whiteout */
141#define DOWHITEOUT 0x00040000 /* do whiteouts */
142#define WILLBEDIR 0x00080000 /* new files will be dirs; allow trailing / */
143#define ISUNICODE 0x00100000 /* current component name is unicode*/
144#define ISOPEN 0x00200000 /* caller is opening; return a real vnode. */
145#define NOCROSSMOUNT 0x00400000 /* do not cross mount points */
146#define NOMACCHECK 0x00800000 /* do not perform MAC checks */
147#define MPSAFE 0x01000000 /* namei() must acquire Giant if needed. */
148#define GIANTHELD 0x02000000 /* namei() is holding giant. */
149#define AUDITVNODE1 0x04000000 /* audit the looked up vnode information */
150#define AUDITVNODE2 0x08000000 /* audit the looked up vnode information */
151#define TRAILINGSLASH 0x10000000 /* path ended in a slash */
152#define PARAMASK 0x1ffffe00 /* mask of parameter descriptors */
153
147#define AUDITVNODE1 0x04000000 /* audit the looked up vnode information */
148#define AUDITVNODE2 0x08000000 /* audit the looked up vnode information */
149#define TRAILINGSLASH 0x10000000 /* path ended in a slash */
150#define PARAMASK 0x1ffffe00 /* mask of parameter descriptors */
151
154#define NDHASGIANT(NDP) (((NDP)->ni_cnd.cn_flags & GIANTHELD) != 0)
155
156/*
157 * Initialization of a nameidata structure.
158 */
159#define NDINIT(ndp, op, flags, segflg, namep, td) \
160 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, NULL, 0, td)
161#define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \
162 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, 0, td)
163#define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rights, td) \

--- 61 unchanged lines hidden ---
152/*
153 * Initialization of a nameidata structure.
154 */
155#define NDINIT(ndp, op, flags, segflg, namep, td) \
156 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, NULL, 0, td)
157#define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \
158 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, 0, td)
159#define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rights, td) \

--- 61 unchanged lines hidden ---