add O_EXEC open mode
authorRich Felker <dalias@aerifal.cx>
Sun, 16 Sep 2012 03:45:41 +0000 (23:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 16 Sep 2012 03:45:41 +0000 (23:45 -0400)
the linux O_PATH mode provides the necessary semantics for both the
O_SEARCH and O_EXEC modes defined and required by POSIX 2008.

arch/arm/bits/fcntl.h
arch/i386/bits/fcntl.h
arch/mips/bits/fcntl.h
arch/x86_64/bits/fcntl.h

index 7e74602..c0afa61 100644 (file)
@@ -11,6 +11,7 @@
 #define O_NOFOLLOW  0100000
 #define O_CLOEXEC  02000000
 #define O_SEARCH  010000000
+#define O_EXEC    010000000
 
 #define O_ASYNC      020000
 #define O_DIRECT    0200000
index 6325a33..04b7484 100644 (file)
@@ -11,6 +11,7 @@
 #define O_NOFOLLOW  0400000
 #define O_CLOEXEC  02000000
 #define O_SEARCH  010000000
+#define O_EXEC    010000000
 
 #define O_ASYNC      020000
 #define O_DIRECT     040000
index 6f912fb..ad847f0 100644 (file)
@@ -16,6 +16,7 @@
 #define O_CLOEXEC  02000000
 #define O_PATH    010000000
 #define O_SEARCH  010000000
+#define O_EXEC    010000000
 
 #define O_NDELAY O_NONBLOCK
 
index c02b0b5..e8db7ae 100644 (file)
@@ -11,6 +11,7 @@
 #define O_NOFOLLOW  0400000
 #define O_CLOEXEC  02000000
 #define O_SEARCH  010000000
+#define O_EXEC    010000000
 
 #define O_ASYNC      020000
 #define O_DIRECT     040000