Browse Source

add definitions for O_PATH

Only alpha, hppa and sparc need non-default value.
Waldemar Brodkorb 8 years ago
parent
commit
0739a3e166

+ 4 - 3
libc/sysdeps/linux/alpha/bits/fcntl.h

@@ -47,9 +47,10 @@
 #ifdef __USE_GNU
 # define O_DIRECTORY	0100000	/* Must be a directory.  */
 # define O_NOFOLLOW	0200000	/* Do not follow links.  */
-# define O_DIRECT	02000000 /* Direct disk access.  */
-# define O_NOATIME	04000000 /* Do not set atime.  */
-# define O_CLOEXEC      010000000 /* Set close_on_exec.  */
+# define O_DIRECT      02000000 /* Direct disk access.  */
+# define O_NOATIME     04000000 /* Do not set atime.  */
+# define O_CLOEXEC    010000000 /* Set close_on_exec.  */
+# define O_PATH       040000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/arc/bits/fcntl.h

@@ -37,6 +37,7 @@
 # define O_NOFOLLOW    0400000	/* Do not follow links.	 */
 # define O_NOATIME    01000000	/* Do not set atime.  */
 # define O_CLOEXEC    02000000	/* Set close_on_exec.  */
+# define O_PATH	     010000000  /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/arm/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_DIRECT	0200000	/* Direct disk access.	*/
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 2 - 1
libc/sysdeps/linux/avr32/bits/fcntl.h

@@ -30,7 +30,8 @@
 # define O_DIRECTORY	00200000	/* direct disk access */
 # define O_NOFOLLOW	00400000	/* don't follow links */
 # define O_NOATIME	01000000	/* don't set atime */
-# define O_CLOEXEC	02000000	/* set close_on_exec */
+# define O_CLOEXEC      02000000	/* set close_on_exec */
+# define O_PATH        010000000	/* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/bfin/bits/fcntl.h

@@ -49,6 +49,7 @@
 # define O_DIRECT	0200000	/* Direct disk access.	*/
 # define O_NOATIME	01000000	/* don't set atime */
 # define O_CLOEXEC	02000000	/* set close_on_exec */
+# define O_PATH        010000000	/* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/c6x/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* don't follow links */
 # define O_NOATIME      01000000
 # define O_CLOEXEC	02000000/* set close on exec */
+# define O_PATH        010000000/* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/cris/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME	01000000 /* Do not set atime.  */
 # define O_CLOEXEC	02000000 /* set close_on_exec */
+# define O_PATH        010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/frv/bits/fcntl.h

@@ -46,6 +46,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.  */
 # define O_NOATIME	01000000 /* don't set atime */
 # define O_CLOEXEC	02000000 /* set close_on_exec */
+# define O_PATH        010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/h8300/bits/fcntl.h

@@ -49,6 +49,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/hppa/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	00000200 /* Do not follow links. */
 # define O_NOATIME	04000000 /* Do not set atime. */
 # define O_CLOEXEC	010000000 /* set close_on_exec */
+# define O_PATH		020000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/i386/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/ia64/bits/fcntl.h

@@ -49,6 +49,7 @@
 # define O_NOFOLLOW	0400000 /* don't follow links */
 # define O_NOATIME	01000000 /* Do not set atime.  */
 # define O_CLOEXEC	02000000 /* Set close_on_exec.  */
+# define O_PATH        010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/lm32/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_DIRECT	040000	/* Direct disk access.	*/
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* set close_on_exec */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/m68k/bits/fcntl.h

@@ -49,6 +49,7 @@
 # define O_DIRECT	0200000	/* Direct disk access.	*/
 # define O_NOATIME	01000000 /* Do not set atime.  */
 # define O_CLOEXEC	02000000 /* set close_on_exec */
+# define O_PATH        010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/metag/bits/fcntl.h

@@ -51,6 +51,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/microblaze/bits/fcntl.h

@@ -49,6 +49,7 @@
 # define O_DIRECT	040000	/* Direct disk access.	*/
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* set close_on_exec */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 2 - 1
libc/sysdeps/linux/mips/bits/fcntl.h

@@ -50,7 +50,8 @@
 # define O_DIRECT	0x8000	/* Direct disk access hint.  */
 # define O_DIRECTORY	0x10000	/* Must be a directory.	 */
 # define O_NOATIME	0x40000	/* Do not set atime.  */
-# define O_CLOEXEC	02000000 /* set close_on_exec */
+# define O_CLOEXEC     02000000 /* set close_on_exec */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has no synchronisity options for data and read operations.

+ 3 - 2
libc/sysdeps/linux/nios2/bits/fcntl.h

@@ -47,8 +47,9 @@
 # define O_DIRECTORY	 040000	/* Must be a directory.	 */
 # define O_NOFOLLOW	0100000	/* Do not follow links.	 */
 # define O_DIRECT	0200000	/* Direct disk access.	*/
-# define O_NOATIME	01000000 /* Do not set atime.  */
-# define O_CLOEXEC	02000000 /* set close_on_exec */
+# define O_NOATIME     01000000 /* Do not set atime.  */
+# define O_CLOEXEC     02000000 /* set close_on_exec */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/or1k/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 3 - 2
libc/sysdeps/linux/powerpc/bits/fcntl.h

@@ -48,8 +48,9 @@
 # define O_DIRECT	0400000	/* Direct disk access.	*/
 # define O_DIRECTORY	 040000	/* Must be a directory.	 */
 # define O_NOFOLLOW	0100000	/* Do not follow links.	 */
-# define O_NOATIME	01000000 /* Do not set atime.  */
-# define O_CLOEXEC	02000000 /* Set close_on_exec.  */
+# define O_NOATIME     01000000 /* Do not set atime.  */
+# define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/sh/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 4 - 3
libc/sysdeps/linux/sparc/bits/fcntl.h

@@ -46,9 +46,10 @@
 #ifdef __USE_GNU
 # define O_DIRECTORY	0x10000 /* must be a directory */
 # define O_NOFOLLOW	0x20000 /* don't follow links */
-# define O_DIRECT	0x100000 /* direct disk access hint */
-# define O_NOATIME	0x200000 /* Do not set atime.  */
-# define O_CLOEXEC	0x400000 /* Set close_on_exit.  */
+# define O_DIRECT      0x100000 /* direct disk access hint */
+# define O_NOATIME     0x200000 /* Do not set atime.  */
+# define O_CLOEXEC     0x400000 /* Set close_on_exit.  */
+# define O_PATH       0x1000000 /* Resolve pathname but do not open file.  */
 #endif
 
 #ifdef __USE_LARGEFILE64

+ 1 - 0
libc/sysdeps/linux/x86_64/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* Set close_on_exec.  */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.

+ 1 - 0
libc/sysdeps/linux/xtensa/bits/fcntl.h

@@ -50,6 +50,7 @@
 # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
 # define O_NOATIME     01000000 /* Do not set atime.  */
 # define O_CLOEXEC     02000000 /* set close_on_exec */
+# define O_PATH       010000000 /* Resolve pathname but do not open file.  */
 #endif
 
 /* For now Linux has synchronisity options for data and read operations.