Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/namei.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | struct nameidata { | ||||
*/ | */ | ||||
struct filecaps ni_filecaps; /* rights the *at base has */ | struct filecaps ni_filecaps; /* rights the *at base has */ | ||||
/* | /* | ||||
* Results: returned from/manipulated by lookup | * Results: returned from/manipulated by lookup | ||||
*/ | */ | ||||
struct vnode *ni_vp; /* vnode of result */ | struct vnode *ni_vp; /* vnode of result */ | ||||
struct vnode *ni_dvp; /* vnode of intermediate directory */ | struct vnode *ni_dvp; /* vnode of intermediate directory */ | ||||
/* | /* | ||||
* Results: flags returned from namei | |||||
*/ | |||||
u_int ni_resflags; | |||||
/* | |||||
* Shared between namei and lookup/commit routines. | * Shared between namei and lookup/commit routines. | ||||
*/ | */ | ||||
size_t ni_pathlen; /* remaining chars in path */ | size_t ni_pathlen; /* remaining chars in path */ | ||||
char *ni_next; /* next location in pathname */ | char *ni_next; /* next location in pathname */ | ||||
u_int ni_loopcnt; /* count of symlinks encountered */ | u_int ni_loopcnt; /* count of symlinks encountered */ | ||||
/* | /* | ||||
* Lookup parameters: this structure describes the subset of | * Lookup parameters: this structure describes the subset of | ||||
* information from the nameidata structure that is passed | * information from the nameidata structure that is passed | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
#define ISOPEN 0x00200000 /* caller is opening; return a real vnode. */ | #define ISOPEN 0x00200000 /* caller is opening; return a real vnode. */ | ||||
#define NOCROSSMOUNT 0x00400000 /* do not cross mount points */ | #define NOCROSSMOUNT 0x00400000 /* do not cross mount points */ | ||||
#define NOMACCHECK 0x00800000 /* do not perform MAC checks */ | #define NOMACCHECK 0x00800000 /* do not perform MAC checks */ | ||||
#define AUDITVNODE1 0x04000000 /* audit the looked up vnode information */ | #define AUDITVNODE1 0x04000000 /* audit the looked up vnode information */ | ||||
#define AUDITVNODE2 0x08000000 /* audit the looked up vnode information */ | #define AUDITVNODE2 0x08000000 /* audit the looked up vnode information */ | ||||
#define TRAILINGSLASH 0x10000000 /* path ended in a slash */ | #define TRAILINGSLASH 0x10000000 /* path ended in a slash */ | ||||
#define NOCAPCHECK 0x20000000 /* do not perform capability checks */ | #define NOCAPCHECK 0x20000000 /* do not perform capability checks */ | ||||
#define PARAMASK 0x3ffffe00 /* mask of parameter descriptors */ | #define PARAMASK 0x3ffffe00 /* mask of parameter descriptors */ | ||||
/* | |||||
* Namei results flags | |||||
*/ | |||||
#define NIRES_ABS 0x00000001 /* Path was absolute */ | |||||
/* | /* | ||||
* 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 */ | ||||
#define NI_LCF_BENEATH_ABS 0x0004 /* BENEATH with absolute path */ | #define NI_LCF_BENEATH_ABS 0x0004 /* BENEATH with absolute path */ | ||||
#define NI_LCF_BENEATH_LATCHED 0x0008 /* BENEATH_ABS traversed starting dir */ | #define NI_LCF_BENEATH_LATCHED 0x0008 /* BENEATH_ABS traversed starting dir */ | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |