Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5229645b authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Al Viro
Browse files

vfs: add nonconflicting values for O_PATH



[AV: on architectures where default conflicts with existing
flags, that is]

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0e794589
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -31,6 +31,8 @@
#define __O_SYNC	020000000
#define __O_SYNC	020000000
#define O_SYNC		(__O_SYNC|O_DSYNC)
#define O_SYNC		(__O_SYNC|O_DSYNC)


#define O_PATH		040000000

#define F_GETLK		7
#define F_GETLK		7
#define F_SETLK		8
#define F_SETLK		8
#define F_SETLKW	9
#define F_SETLKW	9
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,8 @@
#define O_NOFOLLOW	000000200 /* don't follow links */
#define O_NOFOLLOW	000000200 /* don't follow links */
#define O_INVISIBLE	004000000 /* invisible I/O, for DMAPI/XDSM */
#define O_INVISIBLE	004000000 /* invisible I/O, for DMAPI/XDSM */


#define O_PATH		020000000

#define F_GETLK64	8
#define F_GETLK64	8
#define F_SETLK64	9
#define F_SETLK64	9
#define F_SETLKW64	10
#define F_SETLKW64	10
+2 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,8 @@
#define __O_SYNC	0x800000
#define __O_SYNC	0x800000
#define O_SYNC		(__O_SYNC|O_DSYNC)
#define O_SYNC		(__O_SYNC|O_DSYNC)


#define O_PATH		0x1000000

#define F_GETOWN	5	/*  for sockets. */
#define F_GETOWN	5	/*  for sockets. */
#define F_SETOWN	6	/*  for sockets. */
#define F_SETOWN	6	/*  for sockets. */
#define F_GETLK		7
#define F_GETLK		7