mirror of https://github.com/ARMmbed/mbed-os.git
commit
acd92ac35e
|
@ -121,8 +121,10 @@ static inline int openmode_to_posix(int openmode) {
|
||||||
if (openmode & _LLIO_CREAT ) posix |= O_CREAT;
|
if (openmode & _LLIO_CREAT ) posix |= O_CREAT;
|
||||||
if (openmode & _LLIO_APPEND) posix |= O_APPEND;
|
if (openmode & _LLIO_APPEND) posix |= O_APPEND;
|
||||||
if (openmode & _LLIO_TRUNC ) posix |= O_TRUNC;
|
if (openmode & _LLIO_TRUNC ) posix |= O_TRUNC;
|
||||||
|
#elif defined(TOOLCHAIN_GCC)
|
||||||
|
posix &= ~O_BINARY;
|
||||||
#endif
|
#endif
|
||||||
return posix & ~O_BINARY;
|
return posix;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" FILEHANDLE PREFIX(_open)(const char* name, int openmode) {
|
extern "C" FILEHANDLE PREFIX(_open)(const char* name, int openmode) {
|
||||||
|
|
Loading…
Reference in New Issue