diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-07-18 12:05:46 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-07-18 12:05:46 +0800 |
commit | 5289d9c979092878f2bf741d8b365ef7565fb6db (patch) | |
tree | 845756bb908fddedb3d88515fe0b8d7ad04fc567 /include/linux/fcntl.h | |
parent | 91e52df3ad8b9c84c4f6f050e0f14127894dd8ce (diff) | |
parent | 9e0499d7d30c6a91eb381e604c31519af88737d7 (diff) |
Merge tag 'v4.4.77' into linux-linaro-lsk-v4.4lsk-v4.4-17.07
This is the 4.4.77 stable release
Diffstat (limited to 'include/linux/fcntl.h')
-rw-r--r-- | include/linux/fcntl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fcntl.h b/include/linux/fcntl.h index 76ce329e656d..1b48d9c9a561 100644 --- a/include/linux/fcntl.h +++ b/include/linux/fcntl.h @@ -3,6 +3,12 @@ #include <uapi/linux/fcntl.h> +/* list of all valid flags for the open/openat flags argument: */ +#define VALID_OPEN_FLAGS \ + (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \ + O_APPEND | O_NDELAY | O_NONBLOCK | O_NDELAY | __O_SYNC | O_DSYNC | \ + FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \ + O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE) #ifndef force_o_largefile #define force_o_largefile() (BITS_PER_LONG != 32) |