ucspi-ssl  0.12.7
ucspi-ssl
tryshsgr.c
Go to the documentation of this file.
1 /* Public domain. */
2 
3 int main()
4 {
5  short x[4];
6 
7  x[0] = x[1] = 1;
8  if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
9 
10  if (getgroups(1,x) == -1) _exit(1);
11  if (x[1] != 1) _exit(1);
12  x[1] = 2;
13  if (getgroups(1,x) == -1) _exit(1);
14  if (x[1] != 2) _exit(1);
15  _exit(0);
16 }
void _exit()
int main()
Definition: tryshsgr.c:3