Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: common/retarget.cpp
- Revision:
- 84:74871d7a38d9
- Parent:
- 63:5964504d61de
- Child:
- 85:4b017b08d507
diff -r a036322b8637 -r 74871d7a38d9 common/retarget.cpp --- a/common/retarget.cpp Mon Mar 07 10:00:14 2016 +0000 +++ b/common/retarget.cpp Tue Mar 08 08:00:24 2016 +0000 @@ -122,7 +122,7 @@ if (openmode & _LLIO_APPEND) posix |= O_APPEND; if (openmode & _LLIO_TRUNC ) posix |= O_TRUNC; #endif - return posix; + return posix & ~O_BINARY; } extern "C" FILEHANDLE PREFIX(_open)(const char* name, int openmode) {