summaryrefslogtreecommitdiff
path: root/src/sysdeps/trygetpeereid.c
blob: 10a411ac031ce4456ae9ba5bb58c5ed4e7171667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE

#include <sys/types.h>
#include <unistd.h>

int main (void)
{
  uid_t uid ;
  gid_t gid ;
  int s = 0 ;
  return getpeereid(s, &uid, &gid) ;
}