vfs: add nonconflicting values for O_PATH
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Mar 2011 07:09:27 +0000 (18:09 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Mar 2011 13:54:02 +0000 (09:54 -0400)
[AV: on architectures where default conflicts with existing
flags, that is]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/include/asm/fcntl.h
arch/parisc/include/asm/fcntl.h
arch/sparc/include/asm/fcntl.h

index 70145cbb21cb48ff27cbbe949d0c519f6bd55565..1b71ca70c9f679da3a0aeac5f62756e7fe918513 100644 (file)
@@ -31,6 +31,8 @@
 #define __O_SYNC       020000000
 #define O_SYNC         (__O_SYNC|O_DSYNC)
 
+#define O_PATH         040000000
+
 #define F_GETLK                7
 #define F_SETLK                8
 #define F_SETLKW       9
index f357fc693c89e2e8a51697310122b3fe7358a216..0304b92ccfeaf245f2f403b7163c70a8ec037b6c 100644 (file)
@@ -19,6 +19,8 @@
 #define O_NOFOLLOW     000000200 /* don't follow links */
 #define O_INVISIBLE    004000000 /* invisible I/O, for DMAPI/XDSM */
 
+#define O_PATH         020000000
+
 #define F_GETLK64      8
 #define F_SETLK64      9
 #define F_SETLKW64     10
index 38f37b333cc7f5b277ea29646e2a0f14cfcfe325..d0b83f66f356402a651249a2bed2079e98a85d76 100644 (file)
@@ -34,6 +34,8 @@
 #define __O_SYNC       0x800000
 #define O_SYNC         (__O_SYNC|O_DSYNC)
 
+#define O_PATH         0x1000000
+
 #define F_GETOWN       5       /*  for sockets. */
 #define F_SETOWN       6       /*  for sockets. */
 #define F_GETLK                7