Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7f7532fafb
commit
c70761df66
|
@ -58,6 +58,7 @@ details. */
|
||||||
#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */
|
#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */
|
||||||
#define SO_DONTLINGER (unsigned int)(~SO_LINGER)
|
#define SO_DONTLINGER (unsigned int)(~SO_LINGER)
|
||||||
#define SO_PEERCRED 0x0200 /* same as getpeereid */
|
#define SO_PEERCRED 0x0200 /* same as getpeereid */
|
||||||
|
#define SO_PASSCRED 0x0400 /* enable receiving of credentials */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Additional options.
|
* Additional options.
|
||||||
|
|
|
@ -107,7 +107,8 @@ struct cmsghdr
|
||||||
((unsigned char *) ((struct cmsghdr *)(cmsg) + 1))
|
((unsigned char *) ((struct cmsghdr *)(cmsg) + 1))
|
||||||
|
|
||||||
/* "Socket"-level control message types: */
|
/* "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__
|
#ifdef __INSIDE_CYGWIN__
|
||||||
/* Definition of struct msghdr up to release 1.5.18 */
|
/* Definition of struct msghdr up to release 1.5.18 */
|
||||||
|
|
Loading…
Reference in New Issue