2004-09-16 Antony King <antony.king@st.com>
* libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT and only walk the reentrancy parameter. (_fwalk_reent): Ditto. * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
This commit is contained in:
parent
c77672c0fd
commit
7a0f696676
|
@ -1,3 +1,10 @@
|
||||||
|
2004-09-16 Antony King <antony.king@st.com>
|
||||||
|
|
||||||
|
* libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
|
||||||
|
and only walk the reentrancy parameter.
|
||||||
|
(_fwalk_reent): Ditto.
|
||||||
|
* libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
|
||||||
|
|
||||||
2004-09-16 Antony King <antony.king@st.com>
|
2004-09-16 Antony King <antony.king@st.com>
|
||||||
|
|
||||||
* libc/stdio64/freopen64.c: Remove casting of fp lock to
|
* libc/stdio64/freopen64.c: Remove casting of fp lock to
|
||||||
|
|
|
@ -82,13 +82,10 @@ _DEFUN(_fwalk, (ptr, function),
|
||||||
|
|
||||||
__sfp_lock_acquire ();
|
__sfp_lock_acquire ();
|
||||||
|
|
||||||
/* Must traverse given list for std streams. */
|
/* Must traverse given list for streams. Note that _GLOBAL_REENT
|
||||||
if (ptr != _GLOBAL_REENT)
|
only walked once in exit(). */
|
||||||
ret |= __fwalk (ptr, function);
|
ret |= __fwalk (ptr, function);
|
||||||
|
|
||||||
/* Must traverse global list for all other streams. */
|
|
||||||
ret |= __fwalk (_GLOBAL_REENT, function);
|
|
||||||
|
|
||||||
__sfp_lock_release ();
|
__sfp_lock_release ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -105,13 +102,10 @@ _DEFUN(_fwalk_reent, (ptr, reent_function),
|
||||||
|
|
||||||
__sfp_lock_acquire ();
|
__sfp_lock_acquire ();
|
||||||
|
|
||||||
/* Must traverse given list for std streams. */
|
/* Must traverse given list for streams. Note that _GLOBAL_REENT
|
||||||
if (ptr != _GLOBAL_REENT)
|
only walked once in exit(). */
|
||||||
ret |= __fwalk_reent (ptr, reent_function);
|
ret |= __fwalk_reent (ptr, reent_function);
|
||||||
|
|
||||||
/* Must traverse global list for all other streams. */
|
|
||||||
ret |= __fwalk_reent (_GLOBAL_REENT, reent_function);
|
|
||||||
|
|
||||||
__sfp_lock_release ();
|
__sfp_lock_release ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -50,8 +50,6 @@ Supporting OS subroutines required: <<_exit>>.
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
#include "atexit.h"
|
#include "atexit.h"
|
||||||
|
|
||||||
#ifndef _REENT_ONLY
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exit, flushing stdio buffers if necessary.
|
* Exit, flushing stdio buffers if necessary.
|
||||||
*/
|
*/
|
||||||
|
@ -66,5 +64,3 @@ _DEFUN (exit, (code),
|
||||||
(*_GLOBAL_REENT->__cleanup) (_GLOBAL_REENT);
|
(*_GLOBAL_REENT->__cleanup) (_GLOBAL_REENT);
|
||||||
_exit (code);
|
_exit (code);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue