mirror of
https://github.com/fluencelabs/musl
synced 2025-07-31 22:31:58 +00:00
add O_PATH/O_SEARCH support to fcntl.h
I'm not 100% sure that Linux's O_PATH meets the POSIX requirements for O_SEARCH, but it seems very close if not perfect. and old kernels ignore it, so O_SEARCH will still work as desired as long as the caller has read permissions to the directory.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#define O_NOFOLLOW 0400000
|
||||
#define O_NOATIME 01000000
|
||||
#define O_CLOEXEC 02000000
|
||||
#define O_PATH 010000000
|
||||
#define O_SEARCH 010000000
|
||||
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
|
||||
|
Reference in New Issue
Block a user