[newlib-cygwin/main] Cygwin: fcntl: define F_OFD flag

Corinna Vinschen via Cygwin-cvs <[email protected]> Mon, 4 Aug 2025 18:54:13 +0000 (GMT)
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a6c59223014e3feadd0abba2d083b51e5c41ed67

commit a6c59223014e3feadd0abba2d083b51e5c41ed67
Author:     Corinna Vinschen <[email protected]>
AuthorDate: Mon Aug 4 20:16:20 2025 +0200
Commit:     Corinna Vinschen <[email protected]>
CommitDate: Mon Aug 4 20:51:03 2025 +0200

    Cygwin: fcntl: define F_OFD flag
    
    This will be used by a followup patch to denote OFD locks per POSIX.
    
    Signed-off-by: Corinna Vinschen <[email protected]>

Diff:
---
 winsup/cygwin/include/fcntl.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h
index 0c1c66d674a9..dc6b596b160f 100644
--- a/winsup/cygwin/include/fcntl.h
+++ b/winsup/cygwin/include/fcntl.h
@@ -18,6 +18,7 @@ details. */
 #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.