2 @subsection @code{initgroups}
5 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-initgroups-3.html}
11 @ref{Setting Groups,,Setting the Group IDs,libc},
14 @url{https://www.gnu.org/software/libc/manual/html_node/Setting-Groups.html},
17 @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/initgroups.3.html,,man initgroups}.
22 Portability problems fixed by Gnulib:
26 Portability problems not fixed by Gnulib:
29 This function is unsafe to call between @code{fork} and @code{exec} if
30 the parent process is multi-threaded. Instead, use @code{getgroups} or
31 @code{getgrouplist} (or use the gnulib module @code{mgetgroups})
32 before forking, and @code{setgroups} in the child.
34 This function is missing on some platforms: