This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/argp argp-help.c
- From: drepper at sources dot redhat dot com
- To: glibc-cvs at sources dot redhat dot com
- Date: 2 Oct 2003 22:53:15 -0000
- Subject: libc/argp argp-help.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.org 2003-10-02 22:53:15
Modified files:
argp : argp-help.c
Log message:
Don't include malloc.h, some platforms
complain and it doesn't appear to be used.
[!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
strerror_r.
[!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
strerror.
(hol_entry_long_iterate): Change __attribute to __attribute__.
(_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
&& HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
(__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
modifed after comments from Ulrich Drepper.
(__argp_short_program_name): Ditto.
(__argp_state_help, __argp_error, __argp_failure): Use it.
(__argp_failure): Use strerror when necessary.