Cygwin: open: support Linux-specific O_PATH flag

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-07 19:33:11 +01:00
parent 91ca95ae4a
commit b93022a82d
8 changed files with 74 additions and 4 deletions

View File

@ -35,6 +35,7 @@ extern "C" {
#if defined (__CYGWIN__)
#define _FTMPFILE 0x800000
#define _FNOATIME 0x1000000
#define _FPATH 0x2000000
#endif
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
@ -80,6 +81,7 @@ extern "C" {
#if __GNU_VISIBLE
#define O_TMPFILE _FTMPFILE
#define O_NOATIME _FNOATIME
#define O_PATH _FPATH
#endif
#endif