diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-11-14 21:28:45 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-11-14 21:45:25 +0100 |
commit | 0aa99373c1d01b19a7f8ba53e8c7749358480f3e (patch) | |
tree | 9a9707136776c5995c01781b1f3587e1ada5a134 /newlib | |
parent | f94fe74aad9c69ed17e55468ce1044eafca34687 (diff) | |
download | newlib-0aa99373c1d01b19a7f8ba53e8c7749358480f3e.zip newlib-0aa99373c1d01b19a7f8ba53e8c7749358480f3e.tar.gz newlib-0aa99373c1d01b19a7f8ba53e8c7749358480f3e.tar.bz2 |
Cygwin: fcntl.h: Define O_TMPFILE and implement it
Difference to Linux: We can't create files which don't show up
in the filesystem due to OS restrictions. As a kludge, make a
(half-hearted) attempt to hide the file in the filesystem.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/_default_fcntl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h index ede90c4..0958075 100644 --- a/newlib/libc/include/sys/_default_fcntl.h +++ b/newlib/libc/include/sys/_default_fcntl.h @@ -52,6 +52,7 @@ extern "C" { #define _FNOFOLLOW 0x100000 #define _FDIRECTORY 0x200000 #define _FEXECSRCH 0x400000 +#define _FTMPFILE 0x800000 #define O_BINARY _FBINARY #define O_TEXT _FTEXT @@ -63,6 +64,7 @@ extern "C" { #define O_DIRECTORY _FDIRECTORY #define O_EXEC _FEXECSRCH #define O_SEARCH _FEXECSRCH +#define O_TMPFILE _FTMPFILE #endif #if __MISC_VISIBLE |