提交 484b667d 编写于 作者: B Bernard Xiong

[libc] Add O_BINARY definition

上级 84a44e58
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-02-07 Bernard Add O_DIRECTORY definition in NEWLIB mode. * 2018-02-07 Bernard Add O_DIRECTORY definition in NEWLIB mode.
* 2018-02-09 Bernard Add O_BINARY definition
*/ */
#ifndef LIBC_FCNTL_H__ #ifndef LIBC_FCNTL_H__
...@@ -47,6 +48,14 @@ ...@@ -47,6 +48,14 @@
#define O_DIRECTORY 0x200000 #define O_DIRECTORY 0x200000
#endif #endif
#ifndef O_BINARY
#ifdef _O_BINARY
#define O_BINARY _O_BINARY
#else
#define O_BINARY 0
#endif
#endif
#else #else
#define O_RDONLY 00 #define O_RDONLY 00
#define O_WRONLY 01 #define O_WRONLY 01
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册