Re: Like Topsy, UNIX growed uids and gids, as is the Chibi Scheme SRFI-170 implementation Arthur A. Gleckler 29 Jul 2019 03:22 UTC

John Cowan <> writes:

|  * Call count = getgroups(0, NULL) to get the actual count.
|  * Then call getgroups(count, gid_array);
| I prefer this strategy.

It looks like one still has to account for a race
condition with this approach.