From 771721fa31623a821d46a82e04b39cdc217a9c3a Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 12 Sep 2002 10:32:59 +1000 Subject: - (djm) Added getpeereid() replacement. Properly implemented for systems with SO_PEERCRED support. Faked for systems which lack it. --- openbsd-compat/bsd-getpeereid.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openbsd-compat/bsd-getpeereid.h (limited to 'openbsd-compat/bsd-getpeereid.h') 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 @@ +/* $Id: bsd-getpeereid.h,v 1.1 2002/09/12 00:33:02 djm Exp $ */ + +#ifndef _BSD_GETPEEREID_H +#define _BSD_GETPEEREID_H + +#include "config.h" + +#include /* For uid_t, gid_t */ + +#ifndef HAVE_GETPEEREID +int getpeereid(int , uid_t *, gid_t *); +#endif /* HAVE_GETPEEREID */ + +#endif /* _BSD_GETPEEREID_H */ -- cgit v1.2.3