diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-03-30 21:11:53 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-03-30 21:11:53 +0000 |
commit | cacc0d4421219bf48aca9ce3b0e13344c1ed753e (patch) | |
tree | 150fb890de2ae3f9e92a1d59655a656bfd7b5664 /newlib/libc/stdio/findfp.c | |
parent | e9db9325428cd78d3af6a01a14257e97b5d0920d (diff) | |
download | cygnal-cacc0d4421219bf48aca9ce3b0e13344c1ed753e.tar.gz cygnal-cacc0d4421219bf48aca9ce3b0e13344c1ed753e.tar.bz2 cygnal-cacc0d4421219bf48aca9ce3b0e13344c1ed753e.zip |
2003-03-30 Thomas Pfaff <tpfaff@gmx.net>
* libc/stdio/findfp.c (__fp_lock_all): Add call to
__sfp_lock_acquire.
(__fp_unlock_all): Add call to __sfp_lock_release.
Diffstat (limited to 'newlib/libc/stdio/findfp.c')
-rw-r--r-- | newlib/libc/stdio/findfp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |