Searched refs:ucred (Results 1 - 1 of 1) sorted by relevance

/dovecot/src/lib/
H A Dnet.c3 #define _GNU_SOURCE /* For Linux's struct ucred */
14 # include <ucred.h> /* for getpeerucred() */
16 # include <sys/ucred.h> /* for FreeBSD struct xucred */
748 struct sockpeercred ucred; local
751 struct ucred ucred;
753 socklen_t len = sizeof(ucred);
755 if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &ucred, &len) < 0) {
759 cred_r->uid = ucred.uid;
760 cred_r->gid = ucred
[all...]

Completed in 11 milliseconds