getgroups: document portability issues
[gnulib.git] / doc / glibc-functions / initgroups.texi
1 @node initgroups
2 @subsection @code{initgroups}
3 @findex initgroups
4
5 Gnulib module: ---
6
7 Portability problems fixed by Gnulib:
8 @itemize
9 @end itemize
10
11 Portability problems not fixed by Gnulib:
12 @itemize
13 @item
14 This function is unsafe to call between @code{fork} and @code{exec} if
15 the parent process is multi-threaded.  Instead, use @code{getgroups} or
16 @code{getgrouplist} (or use the gnulib module @code{mgetgroups})
17 before forking, and @code{setgroups} in the child.
18 @item
19 This function is missing on some platforms:
20 mingw, MSVC 9, Interix 3.5, BeOS.
21 @end itemize