view doc/posix-functions/getgroups.texi @ 39934:57d3bf2ca96d

fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define STAT_STATFS2_FS_DATA. * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define MOUNTED_GETMNT. * lib/mountlist.c: Remove MOUNTED_GETMNT case. * lib/getloadavg.c (decstation): Remove definition and case. * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix. * lib/getgroups.c: Likewise. * doc/posix-functions/getgroups.texi: Likewise. * lib/time.in.h: Update comments.
author Bruno Haible <bruno@clisp.org>
date Tue, 16 Oct 2018 21:25:00 +0200
parents b8576602c861
children
line wrap: on
line source

@node getgroups
@section @code{getgroups}
@findex getgroups

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getgroups.html}

Gnulib module: getgroups

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw, MSVC 14.
@item
On some platforms, this function fails to reject a negative count,
even though that is less than the size that would be returned:
FreeBSD 7.2.
@item
On NeXTstep 3.2, @code{getgroups (0, NULL)} always fails.  See macro
@samp{AC_FUNC_GETGROUPS}.
@item
On very old systems, this function operated on an array of @samp{int},
even though that was a different size than an array of @samp{gid_t}.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is unsafe to call between @code{fork} and @code{exec} if
the parent process is multi-threaded.
@item
It is unspecified whether the effective group id will be included in
the returned list, nor whether the list will be sorted in any
particular order.  For that matter, some platforms include the
effective group id twice, if it is also a member of the current
supplemental group ids.
@end itemize

The Gnulib module @code{mgetgroups} provides a similar API.