Cygwin: Define SO_PASSCRED and SCM_CREDENTIALS

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2018-02-23 21:00:17 +01:00
parent 7f7532fafb
commit c70761df66
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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 */