Skip to content

Commit 5229645

Browse files
sfrothwellAl Viro
authored andcommitted
vfs: add nonconflicting values for O_PATH
[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>
1 parent 0e79458 commit 5229645

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/alpha/include/asm/fcntl.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#define __O_SYNC 020000000
3232
#define O_SYNC (__O_SYNC|O_DSYNC)
3333

34+
#define O_PATH 040000000
35+
3436
#define F_GETLK 7
3537
#define F_SETLK 8
3638
#define F_SETLKW 9

‎arch/parisc/include/asm/fcntl.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#define O_NOFOLLOW 000000200 /* don't follow links */
2020
#define O_INVISIBLE 004000000 /* invisible I/O, for DMAPI/XDSM */
2121

22+
#define O_PATH 020000000
23+
2224
#define F_GETLK64 8
2325
#define F_SETLK64 9
2426
#define F_SETLKW64 10

‎arch/sparc/include/asm/fcntl.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#define __O_SYNC 0x800000
3535
#define O_SYNC (__O_SYNC|O_DSYNC)
3636

37+
#define O_PATH 0x1000000
38+
3739
#define F_GETOWN 5 /* for sockets. */
3840
#define F_SETOWN 6 /* for sockets. */
3941
#define F_GETLK 7

0 commit comments

Comments
 (0)