Mercurial > hg > octave-shane > gnulib-hg
annotate doc/glibc-functions/err.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 | 3a9052fb8e95 |
children | 6355dc4626b5 |
rev | line source |
---|---|
9635
3a9052fb8e95
New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 @node err |
3a9052fb8e95
New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 @subsection @code{err} |
3a9052fb8e95
New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 @findex err |
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: |
3a9052fb8e95
New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, BeOS. |
3a9052fb8e95
New documentation of GNU libc functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 @end itemize |