view modules/getgroups @ 40164:b973ad598121

Fix build error when building a shared libunistring on Android. * tests/uninorm/test-nfc.c (n): Don't define on Android. (main): Add 'volatile', to defeat a GCC optimization that would eliminate the reference. * tests/uninorm/test-nfd.c (n): Don't define on Android. (main): Add 'volatile', to defeat a GCC optimization that would eliminate the reference. * tests/uninorm/test-nfkc.c (n): Don't define on Android. (main): Add 'volatile', to defeat a GCC optimization that would eliminate the reference. * tests/uninorm/test-nfkd.c (n): Don't define on Android. (main): Add 'volatile', to defeat a GCC optimization that would eliminate the reference.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 Jan 2019 21:14:08 +0100
parents f397e0c78a14
children
line wrap: on
line source

Description:
getgroups() function: return the supplementary group IDs of the current process.

Files:
lib/getgroups.c
m4/getgroups.m4

Depends-on:
unistd
malloc-posix    [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
stdint          [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]

configure.ac:
gl_FUNC_GETGROUPS
if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
  AC_LIBOBJ([getgroups])
fi
gl_UNISTD_MODULE_INDICATOR([getgroups])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Jim Meyering, Eric Blake