aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-15 13:42:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-15 13:42:32 +0000
commit3ea4b6ba915e39213ae182a1ed287a8c4e6087b2 (patch)
treeca225c164be58493aa2b9c9eae5dcd0ca469b895 /toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch
parentd98c2d542cfae2572f8f97965ebe1bfb2e110bd6 (diff)
downloadupstream-3ea4b6ba915e39213ae182a1ed287a8c4e6087b2.tar.gz
upstream-3ea4b6ba915e39213ae182a1ed287a8c4e6087b2.tar.bz2
upstream-3ea4b6ba915e39213ae182a1ed287a8c4e6087b2.zip
uClibc: update to 0.9.33.2, fixes #4420
SVN-Revision: 31740
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch b/toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch
new file mode 100644
index 0000000000..58b03ec7d9
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.33.2/350-use-fputs_unlocked.patch
@@ -0,0 +1,19 @@
+commit 3e3ae40f053b22fbb9bef50067d6edad4c358c4c
+Author: Mirko Vogt <dev@nanl.de>
+Date: Tue May 24 14:36:42 2011 +0200
+
+ use 'fputws_unlocked(S,F)' instead of 'fputws(S,F)'
+
+ this eliminates a source of reproduceable freezes
+
+--- a/libc/stdio/_vfprintf.c
++++ b/libc/stdio/_vfprintf.c
+@@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, i
+ #define STRLEN wcslen
+ #define _PPFS_init _ppwfs_init
+ /* Pulls in fseek: */
+-#define OUTPUT(F,S) fputws(S,F)
++#define OUTPUT(F,S) fputws_unlocked(S,F)
+ /* TODO: #define OUTPUT(F,S) _wstdio_fwrite((S),wcslen(S),(F)) */
+ #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
+ #define FP_OUT _fp_out_wide