- unsigned int status = stream->status & ( _IONBF | _IOLBF | _IOFBF | _PDCLIB_FREEBUFFER | _PDCLIB_DELONCLOSE );
+ unsigned int status = stream->status &
+ ( _IONBF | _IOLBF | _IOFBF | _PDCLIB_FREEBUFFER
+ | _PDCLIB_DELONCLOSE | _PDCLIB_STATIC );
+
/* TODO: This function can change wide orientation of a stream */
if ( stream->status & _PDCLIB_FWRITE )
{
/* TODO: This function can change wide orientation of a stream */
if ( stream->status & _PDCLIB_FWRITE )
{
/* TODO: It is not nice to do this on a stream we just closed.
It does not matter with the current implementation of clearerr(),
but it might start to matter if someone replaced that implementation.
/* TODO: It is not nice to do this on a stream we just closed.
It does not matter with the current implementation of clearerr(),
but it might start to matter if someone replaced that implementation.