Mercurial > hg > octave-kai > gnulib-hg
view modules/getgroups-tests @ 12278:0a3dcff9559e
getgroups: avoid calling exit
rpl_getgroups should be a library function, comparable to glibc.
* modules/getgroups (Depends-on): Add malloc-posix and unistd,
drop xalloc.
* modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
dependencies.
* lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
exiting, in the rare case of malloc failure.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 12 Nov 2009 09:30:38 -0700 |
parents | 502247708da6 |
children | 33ab12a7cea2 |
line wrap: on
line source
Files: tests/test-getgroups.c Depends-on: configure.ac: Makefile.am: TESTS += test-getgroups check_PROGRAMS += test-getgroups