mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
fs: Make the binary(no process) mode as the default
POSIX require file system shouldn't enable the \r and \n conversion by default Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
df0e9da1ba
commit
f1236da21c
@@ -126,7 +126,7 @@ void lib_stdsostream(FAR struct lib_stdsostream_s *outstream,
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
|
||||
if (stream->fs_bufstart != NULL && (stream->fs_oflags & O_BINARY) == 0)
|
||||
if (stream->fs_bufstart != NULL && (stream->fs_oflags & O_TEXT) != 0)
|
||||
{
|
||||
outstream->public.flush = stdsostream_flush;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user