summaryrefslogtreecommitdiff
path: root/src/unistd/getgroups.c
blob: 1e1dd58463d73690487fc45dca611764b3885c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "errno.h"
#include "nonstd/syscall.h"
#include "nonstd/assert.h"

int getgroups(int gidsetsize, gid_t grouplist[])
{
	if (gidsetsize != 0) {
		ASSERT_NONNULL(grouplist);
	}
	SC(int, gidsetsize, grouplist);
}
/*
POSIX(1)
*/