diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-12 10:32:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-12 10:32:59 +1000 |
commit | 771721fa31623a821d46a82e04b39cdc217a9c3a (patch) | |
tree | b96de2f9b45566294423c5b8dc2665c6600496c3 /openbsd-compat/bsd-getpeereid.h | |
parent | e1a49817078a22056be87cde74467d52583e9ea1 (diff) |
- (djm) Added getpeereid() replacement. Properly implemented for systems
with SO_PEERCRED support. Faked for systems which lack it.
Diffstat (limited to 'openbsd-compat/bsd-getpeereid.h')
-rw-r--r-- | openbsd-compat/bsd-getpeereid.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-getpeereid.h b/openbsd-compat/bsd-getpeereid.h new file mode 100644 index 000000000..2e9f077f9 --- /dev/null +++ b/openbsd-compat/bsd-getpeereid.h | |||
@@ -0,0 +1,14 @@ | |||
1 | /* $Id: bsd-getpeereid.h,v 1.1 2002/09/12 00:33:02 djm Exp $ */ | ||
2 | |||
3 | #ifndef _BSD_GETPEEREID_H | ||
4 | #define _BSD_GETPEEREID_H | ||
5 | |||
6 | #include "config.h" | ||
7 | |||
8 | #include <sys/types.h> /* For uid_t, gid_t */ | ||
9 | |||
10 | #ifndef HAVE_GETPEEREID | ||
11 | int getpeereid(int , uid_t *, gid_t *); | ||
12 | #endif /* HAVE_GETPEEREID */ | ||
13 | |||
14 | #endif /* _BSD_GETPEEREID_H */ | ||