summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2018-02-23 21:00:17 +0100
committerCorinna Vinschen <corinna@vinschen.de>2018-02-23 21:00:43 +0100
commitc70761df66d7313fd875c7a342304b07b1788889 (patch)
tree2edd72992fcc3226179d6a63038bed7cf806a137
parent7f7532fafb0e9787bc9c789f14e9344b8da16244 (diff)
downloadcygnal-c70761df66d7313fd875c7a342304b07b1788889.tar.gz
cygnal-c70761df66d7313fd875c7a342304b07b1788889.tar.bz2
cygnal-c70761df66d7313fd875c7a342304b07b1788889.zip
Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/include/asm/socket.h1
-rw-r--r--winsup/cygwin/include/cygwin/socket.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/asm/socket.h b/winsup/cygwin/include/asm/socket.h
index 712a46092..9aeb889b8 100644
--- a/winsup/cygwin/include/asm/socket.h
+++ b/winsup/cygwin/include/asm/socket.h
@@ -58,6 +58,7 @@ details. */
#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */
#define SO_DONTLINGER (unsigned int)(~SO_LINGER)
#define SO_PEERCRED 0x0200 /* same as getpeereid */
+#define SO_PASSCRED 0x0400 /* enable receiving of credentials */
/*
* Additional options.
diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h
index 15e132738..79c925948 100644
--- a/winsup/cygwin/include/cygwin/socket.h
+++ b/winsup/cygwin/include/cygwin/socket.h
@@ -107,7 +107,8 @@ struct cmsghdr
((unsigned char *) ((struct cmsghdr *)(cmsg) + 1))
/* "Socket"-level control message types: */
-#define SCM_RIGHTS 0x01 /* access rights (array of int) */
+#define SCM_RIGHTS 0x01 /* descriptor passing (array of int) */
+#define SCM_CREDENTIALS 0x02 /* credential passing (struct ucred) */
#ifdef __INSIDE_CYGWIN__
/* Definition of struct msghdr up to release 1.5.18 */