summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
-rw-r--r--winsup/cygwin/include/fcntl.h9
2 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index db65e43a4..048b06e9d 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -282,12 +282,13 @@ details. */
for this?
147: Eliminate problematic d_ino from dirent structure. unsetenv now returns
int, as per linux.
+ 148: Add open(2) flags O_SYNC, O_RSYNC, O_DSYNC and O_DIRECT.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 147
+#define CYGWIN_VERSION_API_MINOR 148
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible
diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h
index 774966e9a..33b0692b3 100644
--- a/winsup/cygwin/include/fcntl.h
+++ b/winsup/cygwin/include/fcntl.h
@@ -1,6 +1,6 @@
/* fcntl.h
- Copyright 1996, 1998, 2001 Red Hat, Inc.
+ Copyright 1996, 1998, 2001, 2005 Red Hat, Inc.
This file is part of Cygwin.
@@ -14,4 +14,11 @@ details. */
#include <sys/fcntl.h>
#define O_NDELAY _FNDELAY
+/* sys/fcntl defines values up to 0x40000 (O_NOINHERIT). */
+#define _FDIRECT 0x80000
+
+#define O_DIRECT _FDIRECT
+#define O_DSYNC _FSYNC
+#define O_RSYNC _FSYNC
+
#endif /* _FCNTL_H */