summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-08-17 22:09:15 +0000
committerdd <dd@FreeBSD.org>2001-08-17 22:09:15 +0000
commit0585574d9be6fe2dac8d7cb553396b85e52cc200 (patch)
treedda9375406d28c00830cc9b1981101e60e1639b6 /include
parent5e416567e18401664948a984b8208f0d39a1f0fd (diff)
downloadFreeBSD-src-0585574d9be6fe2dac8d7cb553396b85e52cc200.zip
FreeBSD-src-0585574d9be6fe2dac8d7cb553396b85e52cc200.tar.gz
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 8085cb9..0829adf 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -145,6 +145,7 @@ int getlogin_r __P((char *, int));
mode_t getmode __P((const void *, mode_t));
int getpagesize __P((void)) __pure2;
char *getpass __P((const char *));
+int getpeereid __P((int, uid_t *, gid_t *));
int getpgid __P((pid_t _pid));
int getresgid __P((gid_t *, gid_t *, gid_t *));
int getresuid __P((uid_t *, uid_t *, uid_t *));
OpenPOWER on IntegriCloud