svn commit: trunk/uClibc/libc: misc/error stdio

psm at uclibc.org psm at uclibc.org
Thu Dec 8 19:31:05 UTC 2005


Author: psm
Date: 2005-12-08 11:30:10 -0800 (Thu, 08 Dec 2005)
New Revision: 12758

Log:
Use internal \*_strerror_r

Modified:
   trunk/uClibc/libc/misc/error/err.c
   trunk/uClibc/libc/stdio/old_vfprintf.c
   trunk/uClibc/libc/stdio/perror.c
   trunk/uClibc/libc/stdio/vfprintf.c


Changeset:
Modified: trunk/uClibc/libc/misc/error/err.c
===================================================================
--- trunk/uClibc/libc/misc/error/err.c	2005-12-08 19:27:39 UTC (rev 12757)
+++ trunk/uClibc/libc/misc/error/err.c	2005-12-08 19:30:10 UTC (rev 12758)
@@ -34,7 +34,7 @@
 	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);

Modified: trunk/uClibc/libc/stdio/old_vfprintf.c
===================================================================
--- trunk/uClibc/libc/stdio/old_vfprintf.c	2005-12-08 19:27:39 UTC (rev 12757)
+++ trunk/uClibc/libc/stdio/old_vfprintf.c	2005-12-08 19:30:10 UTC (rev 12758)
@@ -450,7 +450,7 @@
 			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

Modified: trunk/uClibc/libc/stdio/perror.c
===================================================================
--- trunk/uClibc/libc/stdio/perror.c	2005-12-08 19:27:39 UTC (rev 12757)
+++ trunk/uClibc/libc/stdio/perror.c	2005-12-08 19:30:10 UTC (rev 12758)
@@ -30,7 +30,7 @@
 	{
 		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
 }

Modified: trunk/uClibc/libc/stdio/vfprintf.c
===================================================================
--- trunk/uClibc/libc/stdio/vfprintf.c	2005-12-08 19:27:39 UTC (rev 12757)
+++ trunk/uClibc/libc/stdio/vfprintf.c	2005-12-08 19:30:10 UTC (rev 12758)
@@ -1736,7 +1736,7 @@
 
 #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 {




More information about the uClibc-cvs mailing list