فهرست منبع

move O_PATH definition back to arch bits

while it's the same for all presently supported archs, it differs at
least on sparc, and conceptually it's no less arch-specific than the
other O_* macros. O_SEARCH and O_EXEC are still defined in terms of
O_PATH in the main fcntl.h.
Rich Felker 10 سال پیش
والد
کامیت
fd427c4eae

+ 1 - 0
arch/arm/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT    0200000
 #define O_LARGEFILE 0400000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020040000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/i386/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/microblaze/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/mips/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT    0100000
 #define O_LARGEFILE  020000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/or1k/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/powerpc/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT    0400000
 #define O_LARGEFILE 0200000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020040000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/sh/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/x32/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE       0
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 1 - 0
arch/x86_64/bits/fcntl.h

@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE       0
 #define O_NOATIME  01000000
+#define O_PATH    010000000
 #define O_TMPFILE 020200000
 #define O_NDELAY O_NONBLOCK
 

+ 2 - 3
include/fcntl.h

@@ -37,9 +37,8 @@ int openat(int, const char *, int, ...);
 int posix_fadvise(int, off_t, off_t, int);
 int posix_fallocate(int, off_t, off_t);
 
-#define O_SEARCH  010000000
-#define O_EXEC    010000000
-#define O_PATH    010000000
+#define O_SEARCH  O_PATH
+#define O_EXEC    O_PATH
 
 #define O_ACCMODE (03|O_SEARCH)
 #define O_RDONLY  00