summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/fcntl.h')
-rw-r--r--winsup/cygwin/include/fcntl.h9
1 files changed, 8 insertions, 1 deletions
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 */