uclibc-ng: bump version from 1.0.6 to 1.0.8
[openwrt.git] / toolchain / uClibc / patches-0.9.33.2 / 350-use-fputs_unlocked.patch
1 commit 3e3ae40f053b22fbb9bef50067d6edad4c358c4c
2 Author: Mirko Vogt <dev@nanl.de>
3 Date:   Tue May 24 14:36:42 2011 +0200
4
5     use 'fputws_unlocked(S,F)' instead of 'fputws(S,F)'
6     
7     this eliminates a source of reproduceable freezes
8
9 --- a/libc/stdio/_vfprintf.c
10 +++ b/libc/stdio/_vfprintf.c
11 @@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, i
12  #define STRLEN  wcslen
13  #define _PPFS_init _ppwfs_init
14  /* Pulls in fseek: */
15 -#define OUTPUT(F,S)                    fputws(S,F)
16 +#define OUTPUT(F,S)                    fputws_unlocked(S,F)
17  /* TODO: #define OUTPUT(F,S)           _wstdio_fwrite((S),wcslen(S),(F)) */
18  #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
19  #define FP_OUT _fp_out_wide