diff options
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/asm-generic/fcntl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h index 06632beaa6d5..05ac354e124d 100644 --- a/include/uapi/asm-generic/fcntl.h +++ b/include/uapi/asm-generic/fcntl.h | |||
| @@ -84,10 +84,14 @@ | |||
| 84 | #define O_PATH 010000000 | 84 | #define O_PATH 010000000 |
| 85 | #endif | 85 | #endif |
| 86 | 86 | ||
| 87 | #ifndef O_TMPFILE | 87 | #ifndef __O_TMPFILE |
| 88 | #define O_TMPFILE 020000000 | 88 | #define __O_TMPFILE 020000000 |
| 89 | #endif | 89 | #endif |
| 90 | 90 | ||
| 91 | /* a horrid kludge trying to make sure that this will fail on old kernels */ | ||
| 92 | #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY | O_RDWR) | ||
| 93 | #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT | O_ACCMODE) | ||
| 94 | |||
| 91 | #ifndef O_NDELAY | 95 | #ifndef O_NDELAY |
| 92 | #define O_NDELAY O_NONBLOCK | 96 | #define O_NDELAY O_NONBLOCK |
| 93 | #endif | 97 | #endif |
