Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/un.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/sys/un.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.36.12.3 retrieving revision 1.36.12.4 diff -u -p -r1.36.12.3 -r1.36.12.4 --- src/sys/sys/un.h 2006/12/30 20:50:56 1.36.12.3 +++ src/sys/sys/un.h 2007/09/03 14:46:42 1.36.12.4 @@ -1,4 +1,4 @@ -/* $NetBSD: un.h,v 1.36.12.3 2006/12/30 20:50:56 yamt Exp $ */ +/* $NetBSD: un.h,v 1.36.12.4 2007/09/03 14:46:42 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -36,6 +36,7 @@ #include #include +#include #ifndef sa_family_t typedef __sa_family_t sa_family_t; @@ -57,8 +58,18 @@ struct sockaddr_un { #if defined(_NETBSD_SOURCE) #define LOCAL_CREDS 0x0001 /* pass credentials to receiver */ #define LOCAL_CONNWAIT 0x0002 /* connects block until accepted */ +#define LOCAL_PEEREID 0x0003 /* get peer identification */ #endif +/* + * Data automatically stored inside connect() for use by LOCAL_PEEREID + */ +struct unpcbid { + pid_t unp_pid; /* process id */ + uid_t unp_euid; /* effective user id */ + gid_t unp_egid; /* effective group id */ +}; + #ifdef _KERNEL struct unpcb; struct socket;