From: Roland McGrath Date: Mon, 9 Dec 2002 02:03:28 +0000 (+0000) Subject: * misc/error.c (strerror_r): Do not declare unless [!_LIBC]. X-Git-Tag: upstream/2.30~20556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=531da978ceb31fdb28c5f0fdd9604004b765d9b1;p=external%2Fglibc.git * 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. --- diff --git a/ChangeLog b/ChangeLog index e73e17c..d60719f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2001-10-20 Paul Eggert + + * 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. + 2002-12-07 Carlos O'Donell * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.