diff mbox

[8/9] fcntl: Add AT_EMPTY_PATH for all and O_PATH for arm

Message ID 1446316540-10027-3-git-send-email-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Oct. 31, 2015, 6:34 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 include/fcntl.h                     | 3 +++
 libc/sysdeps/linux/arm/bits/fcntl.h | 1 +
 2 files changed, 4 insertions(+)
diff mbox

Patch

diff --git a/include/fcntl.h b/include/fcntl.h
index 11000dd..8a7ad9b 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -65,6 +65,9 @@  __BEGIN_DECLS
 # define AT_SYMLINK_FOLLOW	0x400	/* Follow symbolic links.  */
 # define AT_EACCESS		0x200	/* Test access permitted for
 					   effective IDs, not real IDs.  */
+# ifdef __USE_GNU
+#  define AT_EMPTY_PATH         0x1000  /* Allow empty relative pathname.  */
+# endif
 #endif
 
 /* Do the file control operation described by CMD on FD.
diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h
index aedc154..c6ba958 100644
--- a/libc/sysdeps/linux/arm/bits/fcntl.h
+++ b/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.