view modules/xgetgroups @ 14644:157bb0cdd13a

hash, mgetgroups: drop xalloc dependency Rely on the new xalloc-oversized module to avoid requiring xalloc-die for functions documented as returning NULL on potential allocation overflow. * lib/hash.c (includes): Adjust includes. * lib/mgetgroups.c (includes): Likewise. (xgetgroups): Move... * lib/xgetgroups.c: ...to new file. * modules/xgetgroups: New file, split from... * modules/mgetgroups: ...here. (Depends-on): Add xalloc-oversized. * modules/hash (Depends-on): Likewise. * modules/hash-tests (Depends-on): Drop xalloc. (test_hash_LDADD): Drop unused library. * tests/test-hash.c (main): Break xalloc dependency. (includes): Drop unused include. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 27 Apr 2011 16:23:45 -0600
parents
children
line wrap: on
line source

Description:
Return the group IDs of a user or current process in malloc'd storage, with
out-of-memory checking.

Files:
lib/xgetgroups.c

Depends-on:
mgetgroups
xalloc

configure.ac:
gl_MODULE_INDICATOR([xgetgroups])

Makefile.am:
lib_SOURCES += xgetgroups.c

Include:
"mgetgroups.h"

License:
GPL

Maintainer:
Jim Meyering, Eric Blake