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:
Xiang Xiao
2022-06-03 00:23:24 +08:00
committed by Petro Karashchenko
parent df0e9da1ba
commit f1236da21c
13 changed files with 29 additions and 33 deletions
+1 -1
View File
@@ -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;
}