Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/namei.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | |||||
#define NC_NOMAKEENTRY 0x0001 /* name must not be added to cache */ | #define NC_NOMAKEENTRY 0x0001 /* name must not be added to cache */ | ||||
#define NC_KEEPPOSENTRY 0x0002 /* don't evict a positive entry */ | #define NC_KEEPPOSENTRY 0x0002 /* don't evict a positive entry */ | ||||
#define NOCACHE NC_NOMAKEENTRY /* for compatibility with older code */ | #define NOCACHE NC_NOMAKEENTRY /* for compatibility with older code */ | ||||
#define LOCKLEAF 0x0004 /* lock vnode on return */ | #define LOCKLEAF 0x0004 /* lock vnode on return */ | ||||
#define LOCKPARENT 0x0008 /* want parent vnode returned locked */ | #define LOCKPARENT 0x0008 /* want parent vnode returned locked */ | ||||
#define WANTPARENT 0x0010 /* want parent vnode returned unlocked */ | #define WANTPARENT 0x0010 /* want parent vnode returned unlocked */ | ||||
#define FAILIFEXISTS 0x0020 /* return EEXIST if found */ | #define FAILIFEXISTS 0x0020 /* return EEXIST if found */ | ||||
#define FOLLOW 0x0040 /* follow symbolic links */ | #define FOLLOW 0x0040 /* follow symbolic links */ | ||||
#define EMPTYPATH 0x0080 /* Allow empty path for *at */ | |||||
#define LOCKSHARED 0x0100 /* Shared lock leaf */ | #define LOCKSHARED 0x0100 /* Shared lock leaf */ | ||||
#define NOFOLLOW 0x0000 /* do not follow symbolic links (pseudo) */ | #define NOFOLLOW 0x0000 /* do not follow symbolic links (pseudo) */ | ||||
#define RBENEATH 0x100000000ULL /* No escape, even tmp, from start dir */ | #define RBENEATH 0x100000000ULL /* No escape, even tmp, from start dir */ | ||||
#define MODMASK 0xf000001ffULL /* mask of operational modifiers */ | #define MODMASK 0xf000001ffULL /* mask of operational modifiers */ | ||||
/* | /* | ||||
* Namei parameter descriptors. | * Namei parameter descriptors. | ||||
* | * | ||||
* SAVENAME may be set by either the callers of namei or by VOP_LOOKUP. | * SAVENAME may be set by either the callers of namei or by VOP_LOOKUP. | ||||
* If the caller of namei sets the flag (for example execve wants to | * If the caller of namei sets the flag (for example execve wants to | ||||
* know the name of the program that is being executed), then it must | * know the name of the program that is being executed), then it must | ||||
* free the buffer. If VOP_LOOKUP sets the flag, then the buffer must | * free the buffer. If VOP_LOOKUP sets the flag, then the buffer must | ||||
* be freed by either the commit routine or the VOP_ABORT routine. | * be freed by either the commit routine or the VOP_ABORT routine. | ||||
Show All 34 Lines | #define NAMEI_INTERNAL_FLAGS \ | ||||
(HASBUF | NOEXECCHECK | MAKEENTRY | ISSYMLINK | ISLASTCN | ISDOTDOT | \ | (HASBUF | NOEXECCHECK | MAKEENTRY | ISSYMLINK | ISLASTCN | ISDOTDOT | \ | ||||
TRAILINGSLASH) | TRAILINGSLASH) | ||||
/* | /* | ||||
* Namei results flags | * Namei results flags | ||||
*/ | */ | ||||
#define NIRES_ABS 0x00000001 /* Path was absolute */ | #define NIRES_ABS 0x00000001 /* Path was absolute */ | ||||
#define NIRES_STRICTREL 0x00000002 /* Restricted lookup result */ | #define NIRES_STRICTREL 0x00000002 /* Restricted lookup result */ | ||||
#define NIRES_EMPTYPATH 0x00000004 /* EMPTYPATH used */ | |||||
/* | /* | ||||
* Flags in ni_lcf, valid for the duration of the namei call. | * Flags in ni_lcf, valid for the duration of the namei call. | ||||
*/ | */ | ||||
#define NI_LCF_STRICTRELATIVE 0x0001 /* relative lookup only */ | #define NI_LCF_STRICTRELATIVE 0x0001 /* relative lookup only */ | ||||
#define NI_LCF_CAP_DOTDOT 0x0002 /* ".." in strictrelative case */ | #define NI_LCF_CAP_DOTDOT 0x0002 /* ".." in strictrelative case */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |