This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Cygwin: sys/socket.h: define MSG_CMSG_CLOEXEC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]