Constantin Stefanov wrote:
> NGROUPS_MAX - define
В Linux -- не define. Цитируя getgroups(2):
The maximum number of supplementary group IDs can be found
using sysconf(3):
long ngroups_max;
ngroups_max = sysconf(_SC_NGROUPS_MAX);
В моём случае этот sysconf возвращает 65536. Лучше, наверное, getgrent
всё-таки.