13.25.5 initgroups
¶
LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-initgroups-3.html
Documentation:
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
- This function is unsafe to call between
fork
and exec
if
the parent process is multi-threaded. Instead, use getgroups
or
getgrouplist
(or use the gnulib module mgetgroups
)
before forking, and setgroups
in the child.
- This function is missing on some platforms:
mingw, MSVC 14.