fcntl.h: define O_DIRECT directly

coreutils wants to undefine O_NOCACHE, this shouldn't affect O_DIRECT though.

Change-Id: Id00316a78eb91b2c7f692bb46eca65b3a7983c6f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3398
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Jérôme Duval 2020-11-18 18:43:37 +01:00
parent e6e0db9ef4
commit 2982d9819f

View File

@ -53,9 +53,9 @@
#define O_RSYNC 0x00020000 /* read synchronized I/O file integrity */
#define O_DSYNC 0x00040000 /* write synchronized I/O data integrity */
#define O_NOFOLLOW 0x00080000 /* fail on symlinks */
#define O_NOCACHE 0x00100000 /* do not use the file system cache if */
#define O_DIRECT 0x00100000 /* do not use the file system cache if */
/* possible */
#define O_DIRECT O_NOCACHE
#define O_NOCACHE O_DIRECT
#define O_DIRECTORY 0x00200000 /* fail if not a directory */
/* flags for the *at() functions */