djbdnscurve6
45
djbdnscurve6
Loading...
Searching...
No Matches
djbdnscurve6-45
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 Fri Aug 30 2024 11:58:34 for djbdnscurve6 by
1.9.6