diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-13 20:56:25 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-13 20:56:25 -0400 |
commit | b238b37a0f9d12f87dc9b7ce1ece4bcde566a45f (patch) | |
tree | b6cb7b8118f355e77046eb388c2163b1d1d267c6 /include/fcntl.h | |
parent | cfc09b1ecf0c6981494fd73dffe234416f66af10 (diff) | |
download | musl-b238b37a0f9d12f87dc9b7ce1ece4bcde566a45f.tar.gz musl-b238b37a0f9d12f87dc9b7ce1ece4bcde566a45f.tar.bz2 musl-b238b37a0f9d12f87dc9b7ce1ece4bcde566a45f.tar.xz musl-b238b37a0f9d12f87dc9b7ce1ece4bcde566a45f.zip |
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.
Diffstat (limited to 'include/fcntl.h')
-rw-r--r-- | include/fcntl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index cbaec5da..b06c276f 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -37,7 +37,7 @@ 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_ACCMODE 03 +#define O_ACCMODE (O_RDWR|O_SEARCH) #define O_RDONLY 00 #define O_WRONLY 01 #define O_RDWR 02 |