blob: 7f32faf33789361cec7e373fc082e53bdeeafc18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: GPL-3.0-or-later
#include "../libnetdata.h"
int os_getgrouplist(const char *username __maybe_unused, gid_t gid __maybe_unused, gid_t *supplementary_groups __maybe_unused, int *ngroups __maybe_unused) {
#if defined(OS_LINUX) || defined(OS_FREEBSD)
return getgrouplist(username, gid, supplementary_groups, ngroups);
#endif
#if defined(OS_MACOS)
return getgrouplist(username, gid, (int *)supplementary_groups, ngroups);
#endif
errno = ENOSYS;
return -1;
}
|