mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:53:33 +08:00
Disable line buffering if the file is opened in binary mode; Also fix a couple of fopen/fdopen bugs
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4630 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2663,4 +2663,11 @@
|
||||
initial check-in is just a stm3210e-eval driver with renaming).
|
||||
* sched/sched_setscheduler.c: Correct successful return value (Contributed
|
||||
by Richard Cochran).
|
||||
* include/fcntl.h and lib/stdio: Ignore CONFIG_STDIO_LINEBUFFER is the
|
||||
file was opened in binary mode.
|
||||
* lib/stdio/lib_fopen.c: Correct an error in parsing open mode string. The
|
||||
plus sign may not appear right after the basic mode. For example, "r+", "rb+",
|
||||
and "r+b" are all value open strings and mean the same thing.
|
||||
* lib/stdio/lib_fopen.c: Correct return errno value from f_open() and
|
||||
f_fdopen() if the open mode string is invalid.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user