annotate doc/glibc-functions/getnetbyname_r.texi @ 12280:39be377f1765

getgroups: don't expose GETGROUPS_T to user These days, most systems already declare getgroups with gid_t*. But in the rare case that GETGROUPS_T is still int but gid_t is short, the user should not have to uglify their code; let the replacement hide all the magic. Tested by configuring with ac_cv_type_getgroups=uint64_t on a platform with 32-bit gid_t, and ignoring compiler warnings. However, since we don't replace setgroups, the GETGROUPS_T workaround is still needed there for now. * lib/getgroups.c (rpl_getgroups): Change signature. Copy array an element at a time if GETGROUPS_T is wrong size. * lib/getugroups.h (getugroups): Change signature. * lib/unistd.in.h (getgroups): Likewise. * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if signature needs fixing. * m4/getugroups.m4 (gl_GETUGROUPS): No longer need AC_TYPE_GETGROUPS. * modules/group-member (Depends-on): Add getgroups. * lib/group-member.c (group_info, get_group_info): Use gid_t. (group_member): Rely on getgroups replacement. * lib/getugroups.c (getugroups): Use gid_t. * tests/test-getgroups.c (main): Likewise. * NEWS: Mention the signature change. * doc/posix-functions/getgroups.texi (getgroups): Mention the problem with signature. * doc/glibc-functions/setgroups.texi (setgroups): Mention that GETGROUPS_T is still useful for setgroups. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Thu, 12 Nov 2009 10:19:39 -0700
parents cde9c9b93afe
children c65fd41437cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9635
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 @node getnetbyname_r
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 @subsection @code{getnetbyname_r}
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 @findex getnetbyname_r
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 Gnulib module: ---
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 Portability problems fixed by Gnulib:
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 @itemize
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 @end itemize
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 Portability problems not fixed by Gnulib:
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 @itemize
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 @item
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 This function is missing on some platforms:
10464
cde9c9b93afe Add info about functions missing on IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 9635
diff changeset
15 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, HP-UX 11, IRIX 5.3, Cygwin, mingw, Interix 3.5, BeOS.
9635
3a9052fb8e95 New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 @end itemize