1 /* $Cambridge: exim/test/src/showids.c,v 1.1 2006/02/06 16:24:05 ph10 Exp $ */
12 printf("uid=%d gid=%d euid=%d egid=%d\n",
13 getuid(), getgid(), geteuid(), getegid());
15 /* Can no longer use this because on different systems, the supplemental
16 groups will be different. */
19 printf("supplemental groups: ");
20 count = getgroups(100, grouplist);
21 for (i = 0; i < count; i++) printf("%d ", grouplist[i]);