From cacc0d4421219bf48aca9ce3b0e13344c1ed753e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 30 Mar 2004 21:11:53 +0000 Subject: [PATCH] 2003-03-30 Thomas Pfaff * libc/stdio/findfp.c (__fp_lock_all): Add call to __sfp_lock_acquire. (__fp_unlock_all): Add call to __sfp_lock_release. --- newlib/ChangeLog | 6 ++++++ newlib/libc/stdio/findfp.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9f2f066e2..04832e559 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2003-03-30 Thomas Pfaff + + * libc/stdio/findfp.c (__fp_lock_all): Add call to + __sfp_lock_acquire. + (__fp_unlock_all): Add call to __sfp_lock_release. + 2004-03-25 Thomas Pfaff * libc/stdio/fclose.c (fclose): Protect file pointer list when diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 10f01b271..f8b67f76d 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -232,6 +232,8 @@ __fp_unlock (ptr) void __fp_lock_all () { + __sfp_lock_acquire (); + (void) _fwalk (_REENT, __fp_lock); } @@ -239,5 +241,7 @@ void __fp_unlock_all () { (void) _fwalk (_REENT, __fp_unlock); + + __sfp_lock_release (); } #endif