mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Revision 84:74871d7a38d9, committed 2016-03-08
- Comitter:
- mbed_official
- Date:
- Tue Mar 08 08:00:24 2016 +0000
- Parent:
- 83:a036322b8637
- Child:
- 85:4b017b08d507
- Commit message:
- Synchronized with git revision 165d2536fe0b24e6c3370866e91b34a497efed10
Full URL: https://github.com/mbedmicro/mbed/commit/165d2536fe0b24e6c3370866e91b34a497efed10/
LocalFileSystem fails to open binary files
Changed in this revision
common/retarget.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {