public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS
@ 2018-02-23 20:02 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-02-23 20:02 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c70761df66d7313fd875c7a342304b07b1788889

commit c70761df66d7313fd875c7a342304b07b1788889
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Feb 23 21:00:17 2018 +0100

    Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/include/asm/socket.h    | 1 +
 winsup/cygwin/include/cygwin/socket.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/include/asm/socket.h b/winsup/cygwin/include/asm/socket.h
index 712a460..9aeb889 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 15e1327..79c9259 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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-23 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-23 20:02 [newlib-cygwin] Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).