[newlib-cygwin] Cygwin: sys/socket.h: define MSG_CMSG_CLOEXEC
Corinna Vinschen
corinna@sourceware.org
Tue Mar 6 18:11:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f6ce72e623b18fffde3e99735c9252005ea62e32
commit f6ce72e623b18fffde3e99735c9252005ea62e32
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Tue Mar 6 18:23:48 2018 +0100
Cygwin: sys/socket.h: define MSG_CMSG_CLOEXEC
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/include/cygwin/socket.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h
index 2958852..0360e71 100644
--- a/winsup/cygwin/include/cygwin/socket.h
+++ b/winsup/cygwin/include/cygwin/socket.h
@@ -204,6 +204,9 @@ struct OLD_msghdr
/* Windows-specific flag values returned by recvmsg. */
#define MSG_BCAST 0x0400 /* Broadcast datagram */
#define MSG_MCAST 0x0800 /* Multicast datagram */
+/* AF_UNIX specific */
+#define MSG_CMSG_CLOEXEC 0x1000 /* Set O_CLOEXEC on fd's passed via
+ SCM_RIGHTS */
/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */
#define SOL_IP 0
More information about the Cygwin-cvs
mailing list