OSDN Git Service

Use internal \*_strerror_r
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 8 Dec 2005 19:30:10 +0000 (19:30 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 8 Dec 2005 19:30:10 +0000 (19:30 -0000)
libc/misc/error/err.c
libc/stdio/old_vfprintf.c
libc/stdio/perror.c
libc/stdio/vfprintf.c

index 113c2d9..49e4fd7 100644 (file)
@@ -34,7 +34,7 @@ static void vwarn_work(const char *format, va_list args, int showerr)
        f = fmt + 11;                           /* At 11. */
        if (showerr) {
                f -= 4;                                 /* At 7. */
-               __xpg_strerror_r(errno, buf, sizeof(buf));
+               __xpg_strerror_r_internal(errno, buf, sizeof(buf));
        }
 
        __STDIO_AUTO_THREADLOCK(stderr);
index aafc4a1..a9e4528 100644 (file)
@@ -450,7 +450,7 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
                        if (*fmt == 'm') {
                                flag[FLAG_PLUS] = '\0';
                                flag[FLAG_0_PAD] = ' ';
-                               p = __glibc_strerror_r(errno, tmp, sizeof(tmp));
+                               p = __glibc_strerror_r_internal(errno, tmp, sizeof(tmp));
                                goto print;
                        }
 #endif
index d69ccd5..9edcf4e 100644 (file)
@@ -30,7 +30,7 @@ void attribute_hidden __perror(register const char *s)
        {
                char buf[64];
                fprintf(stderr, "%s%s%s\n", s, sep,
-                               __glibc_strerror_r(errno, buf, sizeof(buf)));
+                               __glibc_strerror_r_internal(errno, buf, sizeof(buf)));
        }
 #endif
 }
index 5275f53..793b991 100644 (file)
@@ -1736,7 +1736,7 @@ static int _do_one_spec(FILE * __restrict stream,
 
 #ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
                } else if (ppfs->conv_num == CONV_m) {
-                       s = __glibc_strerror_r(errno, buf, sizeof(buf));
+                       s = __glibc_strerror_r_internal(errno, buf, sizeof(buf));
                        goto SET_STRING_LEN;
 #endif
                } else {