namei.h (9804) | namei.h (10358) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)namei.h 8.2 (Berkeley) 1/4/94 | 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)namei.h 8.2 (Berkeley) 1/4/94 |
34 * $Id: namei.h,v 1.6 1995/07/29 11:42:49 bde Exp $ | 34 * $Id: namei.h,v 1.7 1995/07/31 00:35:58 bde Exp $ |
35 */ 36 37#ifndef _SYS_NAMEI_H_ 38#define _SYS_NAMEI_H_ 39 40#include <sys/queue.h> 41 42/* --- 86 unchanged lines hidden (view full) --- 129#define RDONLY 0x00200 /* lookup with read-only semantics */ 130#define HASBUF 0x00400 /* has allocated pathname buffer */ 131#define SAVENAME 0x00800 /* save pathanme buffer */ 132#define SAVESTART 0x01000 /* save starting directory */ 133#define ISDOTDOT 0x02000 /* current component name is .. */ 134#define MAKEENTRY 0x04000 /* entry is to be added to name cache */ 135#define ISLASTCN 0x08000 /* this is last component of pathname */ 136#define ISSYMLINK 0x10000 /* symlink needs interpretation */ | 35 */ 36 37#ifndef _SYS_NAMEI_H_ 38#define _SYS_NAMEI_H_ 39 40#include <sys/queue.h> 41 42/* --- 86 unchanged lines hidden (view full) --- 129#define RDONLY 0x00200 /* lookup with read-only semantics */ 130#define HASBUF 0x00400 /* has allocated pathname buffer */ 131#define SAVENAME 0x00800 /* save pathanme buffer */ 132#define SAVESTART 0x01000 /* save starting directory */ 133#define ISDOTDOT 0x02000 /* current component name is .. */ 134#define MAKEENTRY 0x04000 /* entry is to be added to name cache */ 135#define ISLASTCN 0x08000 /* this is last component of pathname */ 136#define ISSYMLINK 0x10000 /* symlink needs interpretation */ |
137#define WILLBEDIR 0x20000 /* new files will be dirs; allow trailing / */ | 137#define WILLBEDIR 0x20000 /* new files will be dirs; allow trailing / */ 138#define ISUNICODE 0x40000 /* current component name is unicode*/ |
138#define PARAMASK 0xfff00 /* mask of parameter descriptors */ 139/* 140 * Initialization of an nameidata structure. 141 */ 142#define NDINIT(ndp, op, flags, segflg, namep, p) { \ 143 (ndp)->ni_cnd.cn_nameiop = op; \ 144 (ndp)->ni_cnd.cn_flags = flags; \ 145 (ndp)->ni_segflg = segflg; \ --- 61 unchanged lines hidden --- | 139#define PARAMASK 0xfff00 /* mask of parameter descriptors */ 140/* 141 * Initialization of an nameidata structure. 142 */ 143#define NDINIT(ndp, op, flags, segflg, namep, p) { \ 144 (ndp)->ni_cnd.cn_nameiop = op; \ 145 (ndp)->ni_cnd.cn_flags = flags; \ 146 (ndp)->ni_segflg = segflg; \ --- 61 unchanged lines hidden --- |