summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-10-12 13:10:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-10-12 13:11:48 -0700
commit4af1990a0902f5914f582bade9d1aa843a291f5a (patch)
tree070a23ac1bd000bbed18610baf97b7f0bf3bcd8c /ChangeLog
parent0b95481ce5bd62e3150f0e94a1e3ce3a38fc5b0a (diff)
downloadgnulib-4af1990a0902f5914f582bade9d1aa843a291f5a.tar.gz
group-member: omit unnecessary dependencies
This is for Emacs, which has its own allocator and where we don't want to use xalloc. * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h, since we no longer use xmalloc. Do not include stdbool.h, since the changes below happen to remove the only use of bool. (GROUPBUF_SIZE): New constant. (struct group_info): Remove n_groups member. Add groupbuf member. This lets us get the groups without using malloc, usually. (free_group_info, get_group_info): Adjust to this. (get_group_info): Return the number of groups found, or -1 on error. Use plain malloc not xmalloc, and treat its failure as if there are no groups, as the user already loses in case of error. (group_member): Simplify, based on changes to get_group_info. * modules/group-member (Depends-on): Remove dependencies on xalloc and stdbool. Add dependency on xalloc-oversized.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog19
1 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a102bc5a4..3f38799b16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2012-10-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ group-member: omit unnecessary dependencies
+ This is for Emacs, which has its own allocator and where we
+ don't want to use xalloc.
+ * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
+ since we no longer use xmalloc. Do not include stdbool.h, since
+ the changes below happen to remove the only use of bool.
+ (GROUPBUF_SIZE): New constant.
+ (struct group_info): Remove n_groups member. Add groupbuf member.
+ This lets us get the groups without using malloc, usually.
+ (free_group_info, get_group_info): Adjust to this.
+ (get_group_info): Return the number of groups found, or -1 on error.
+ Use plain malloc not xmalloc, and treat its failure as if there
+ are no groups, as the user already loses in case of error.
+ (group_member): Simplify, based on changes to get_group_info.
+ * modules/group-member (Depends-on): Remove dependencies on
+ xalloc and stdbool. Add dependency on xalloc-oversized.
+
2012-10-08 Alexandre Duret-Lutz <adl@lrde.epita.fr> (tiny change)
gethrxtime: port to C++