Fix __sFILE::_lock initialization
The __sFILE::_lock member is present if __SINGLE_THREAD__ is not defined. In this case, it is initialized in __sfp(). It is a bug to do it sometimes also in std().
This commit is contained in:
parent
1b86dd7d8c
commit
382550072b
|
@ -97,14 +97,6 @@ std (FILE *ptr,
|
||||||
#else /* _STDIO_CLOSE_STD_STREAMS */
|
#else /* _STDIO_CLOSE_STD_STREAMS */
|
||||||
ptr->_close = NULL;
|
ptr->_close = NULL;
|
||||||
#endif /* _STDIO_CLOSE_STD_STREAMS */
|
#endif /* _STDIO_CLOSE_STD_STREAMS */
|
||||||
#if !defined(__SINGLE_THREAD__) && !(defined(_REENT_SMALL) && !defined(_REENT_GLOBAL_STDIO_STREAMS))
|
|
||||||
__lock_init_recursive (ptr->_lock);
|
|
||||||
/*
|
|
||||||
* #else
|
|
||||||
* lock is already initialized in __sfp
|
|
||||||
*/
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __SCLE
|
#ifdef __SCLE
|
||||||
if (__stextmode (ptr->_file))
|
if (__stextmode (ptr->_file))
|
||||||
ptr->_flags |= __SCLE;
|
ptr->_flags |= __SCLE;
|
||||||
|
|
Loading…
Reference in New Issue