From e6063dd1a65aeb2444dd2f002c376af2dc859c19 Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Fri, 17 Aug 2001 22:09:15 +0000 Subject: 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. --- include/unistd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index 8085cb9cbc9e..0829adf3cd26 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 *)); -- cgit v1.3