diff options
author | Roland McGrath <roland@gnu.org> | 2002-09-05 18:51:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-09-05 18:51:42 +0000 |
commit | 43e3d6e3e2a33853b45d0ac770cb91426f944423 (patch) | |
tree | 8d00cb5b892611d3df2e77796594f97f1cb97a9d | |
parent | a8a20be0d3f1ccf25fc438dc4a70d0f2b7d2b695 (diff) | |
download | glibc-43e3d6e3e2a33853b45d0ac770cb91426f944423.tar.gz glibc-43e3d6e3e2a33853b45d0ac770cb91426f944423.tar.xz glibc-43e3d6e3e2a33853b45d0ac770cb91426f944423.zip |
2002-09-04 Bruno Haible <bruno@clisp.org>
* sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove default definitions. (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist, _sys_nerr_internal instead of _sys_nerr.
-rw-r--r-- | sysdeps/generic/_strerror.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sysdeps/generic/_strerror.c b/sysdeps/generic/_strerror.c index f19217fdeb..f6f16ff2af 100644 --- a/sysdeps/generic/_strerror.c +++ b/sysdeps/generic/_strerror.c @@ -22,11 +22,6 @@ #include <sys/param.h> #include <stdio-common/_itoa.h> -#ifndef HAVE_GNU_LD -# define _sys_errlist sys_errlist -# define _sys_nerr sys_nerr -#endif - /* It is critical here that we always use the `dcgettext' function for the message translation. Since <libintl.h> only defines the macro `dgettext' to use `dcgettext' for optimizing programs this is not @@ -40,8 +35,8 @@ char * __strerror_r (int errnum, char *buf, size_t buflen) { - if (errnum < 0 || errnum >= INTUSE(_sys_nerr) - || INTUSE(_sys_errlist)[errnum] == NULL) + if (errnum < 0 || errnum >= _sys_nerr_internal + || _sys_errlist_internal[errnum] == NULL) { /* Buffer we use to print the number in. For a maximum size for `int' of 8 bytes we never need more than 20 digits. */ @@ -66,7 +61,7 @@ __strerror_r (int errnum, char *buf, size_t buflen) return buf; } - return (char *) _(INTUSE(_sys_errlist)[errnum]); + return (char *) _(_sys_errlist_internal[errnum]); } weak_alias (__strerror_r, strerror_r) libc_hidden_def (__strerror_r) |