aboutsummaryrefslogtreecommitdiff
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h
index 340aed4..dc6b596 100644
--- a/winsup/cygwin/include/fcntl.h
+++ b/winsup/cygwin/include/fcntl.h
@@ -14,6 +14,13 @@ details. */
#define O_NDELAY _FNDELAY
+#ifdef __INSIDE_CYGWIN__
+#define F_WAIT 0x10 /* Wait until lock is granted */
+#define F_FLOCK 0x20 /* Use flock(2) semantics for lock */
+#define F_POSIX 0x40 /* Use POSIX semantics for lock */
+#define F_OFD 0x80 /* Use OFD semantics for lock */
+#endif
+
/* F_LCK_MANDATORY: Request mandatory locks for this file descriptor.
Cygwin extension to fcntl file locking mechanism. By default, fcntl file