This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/misc error.c
- From: roland at sources dot redhat dot com
- To: glibc-cvs at sources dot redhat dot com
- Date: 9 Dec 2002 02:03:16 -0000
- Subject: libc/misc error.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sourceware.org 2002-12-08 18:03:16
Modified files:
misc : error.c
Log message:
2001-10-20 Paul Eggert <eggert@twinsun.com>
* misc/error.c (strerror_r): Do not declare unless [!_LIBC].
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
Use strerror_r that is only a macro, even if it is not a function.
(strerror): Check for HAVE_DECL_STRERROR before declaring.
(private_strerror): Use prototypes, not old-style function definition.
(print_errno_message): New function.
Support the POSIX 'int'-flavored strerror_r, as well as the traditional
char*-flavored one.
(error_tail, error, error_at_line): Use it.