utime: Fix a test failure on macOS 10.13.
[gnulib.git] / doc / glibc-functions / initgroups.texi
blob056fe5d68acd04dd8d4d41f24983d18e7f514f68
1 @node initgroups
2 @subsection @code{initgroups}
3 @findex initgroups
5 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-initgroups-3.html}
7 Documentation:
8 @itemize
9 @item
10 @ifinfo
11 @ref{Setting Groups,,Setting the Group IDs,libc},
12 @end ifinfo
13 @ifnotinfo
14 @url{https://www.gnu.org/software/libc/manual/html_node/Setting-Groups.html},
15 @end ifnotinfo
16 @item
17 @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/initgroups.3.html,,man initgroups}.
18 @end itemize
20 Gnulib module: ---
22 Portability problems fixed by Gnulib:
23 @itemize
24 @end itemize
26 Portability problems not fixed by Gnulib:
27 @itemize
28 @item
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.
33 @item
34 This function is missing on some platforms:
35 mingw, MSVC 14.
36 @end itemize