include string_unprinting() in COMPILE_UTILITY cases.
[exim.git] / test / src / showids.c
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <sys/types.h>
4
5 int main(void)
6 {
7 int count, i;
8 gid_t grouplist[100];
9
10 printf("uid=%d gid=%d euid=%d egid=%d\n",
11 getuid(), getgid(), geteuid(), getegid());
12
13 /* Can no longer use this because on different systems, the supplemental
14 groups will be different. */
15
16 #ifdef NEVER
17 printf("supplemental groups: ");
18 count = getgroups(100, grouplist);
19 for (i = 0; i < count; i++) printf("%d ", grouplist[i]);
20 printf("\n");
21 #endif
22
23 return 0;
24 }