From 082e680bd54e999f2bb4eb77141958938b1e9ee9 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Wed, 11 Feb 2004 23:48:50 +0000 Subject: New stdio core. Should be more maintainable. Fixes a couple of bugs. Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen. --- libc/string/wstring.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libc/string') diff --git a/libc/string/wstring.c b/libc/string/wstring.c index ef6e5cdf5..efe41c37a 100644 --- a/libc/string/wstring.c +++ b/libc/string/wstring.c @@ -36,7 +36,6 @@ * mapping of signal strings (alpha, mips, hppa, sparc). */ -#define _STDIO_UTILITY #define _GNU_SOURCE #include #include @@ -48,6 +47,7 @@ #include #include #include +#include #ifdef WANT_WIDE #include @@ -2326,14 +2326,7 @@ void psignal(int signum, register const char *message) message = (sep += 2); /* or passed an empty string. */ } -#if 1 fprintf(stderr, "%s%s%s\n", message, sep, strsignal(signum)); -#else - /* Note: Assumes stderr not closed or buffered. */ - __STDIO_THREADLOCK(stderr); - _stdio_fdout(STDERR_FILENO, message, sep, strsignal(signum)); - __STDIO_THREADUNLOCK(stderr); -#endif } #endif -- cgit v1.2.3