426835021d887c1eed4c1d7d28ffd684fc7e5694
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0047-_vfprintf.c-use-fputws_unlocked-S-F-instead-of-fputw.patch
1 From 543460903545b59903bc83221a6cea02afd0e04f Mon Sep 17 00:00:00 2001
2 From: Mirko Vogt <dev@nanl.de>
3 Date: Fri, 21 Sep 2012 17:29:15 +0200
4 Subject: [PATCH] _vfprintf.c: use 'fputws_unlocked(S, F)' instead of
5  'fputws(S, F)'
6
7 This eliminates a source of reproduceable freezes
8
9 Signed-off-by: Mirko Vogt <dev@nanl.de>
10 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
11 ---
12  libc/stdio/_vfprintf.c |    2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c
16 index 3db8cdf..069db16 100644
17 --- a/libc/stdio/_vfprintf.c
18 +++ b/libc/stdio/_vfprintf.c
19 @@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf
20  #define STRLEN  wcslen
21  #define _PPFS_init _ppwfs_init
22  /* Pulls in fseek: */
23 -#define OUTPUT(F,S)                    fputws(S,F)
24 +#define OUTPUT(F,S)                    fputws_unlocked(S,F)
25  /* TODO: #define OUTPUT(F,S)           _wstdio_fwrite((S),wcslen(S),(F)) */
26  #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
27  #define FP_OUT _fp_out_wide
28 -- 
29 1.7.10.4
30