djbdnscurve6
38
djbdnscurve6
djbdnscurve6-38
src
tryshsgr.c
Go to the documentation of this file.
1
#include <sys/types.h>
2
#include <unistd.h>
3
#include <grp.h>
4
5
int
main
()
6
{
7
gid_t
x
[4];
8
9
x
[0] =
x
[1] = 1;
10
if
(getgroups(1,
x
) == 0)
if
(setgroups(1,
x
) == -1) _exit(1);
11
12
if
(getgroups(1,
x
) == -1) _exit(1);
13
if
(
x
[1] != 1) _exit(1);
14
x
[1] = 2;
15
if
(getgroups(1,
x
) == -1) _exit(1);
16
if
(
x
[1] != 2) _exit(1);
17
_exit(0);
18
}
x
struct line * x
main
int main()
Definition:
tryshsgr.c:5
Generated on Tue Aug 3 2021 23:28:57 for djbdnscurve6 by
1.9.1