summaryrefslogtreecommitdiffstats
path: root/include/linux/namei.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-14 18:56:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-14 19:12:20 -0400
commitf52e0c11305aa09ed56cad97ffc8f0cdc3d78b5d (patch)
treeb04070034f8a941fe5d7e9e1b335a02784686bd5 /include/linux/namei.h
parent5fe0c2378884e68beb532f5890cc0e3539ac747b (diff)
downloadlinux-stable-f52e0c11305aa09ed56cad97ffc8f0cdc3d78b5d.tar.gz
linux-stable-f52e0c11305aa09ed56cad97ffc8f0cdc3d78b5d.tar.bz2
linux-stable-f52e0c11305aa09ed56cad97ffc8f0cdc3d78b5d.zip
New AT_... flag: AT_EMPTY_PATH
For name_to_handle_at(2) we'll want both ...at()-style syscall that would be usable for non-directory descriptors (with empty relative pathname). Introduce new flag (AT_EMPTY_PATH) to deal with that and corresponding LOOKUP_EMPTY; teach user_path_at() and path_init() to deal with the latter. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/namei.h')
-rw-r--r--include/linux/namei.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 83cd6e5cd7dc..9c8603872c36 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -64,6 +64,7 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND};
#define LOOKUP_JUMPED 0x1000
#define LOOKUP_ROOT 0x2000
+#define LOOKUP_EMPTY 0x4000
extern int user_path_at(int, const char __user *, unsigned, struct path *);