4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-22 01:15:26 +08:00

[libc] Remove fcntl.h in newlib porting.

This commit is contained in:
Bernard Xiong 2018-02-25 15:09:45 +08:00
parent 32bd3b312f
commit ac811fe9c4
2 changed files with 6 additions and 18 deletions

View File

@ -108,6 +108,10 @@
#define DFS_O_EXCL O_EXCL
#define DFS_O_TRUNC O_TRUNC
#define DFS_O_APPEND O_APPEND
#ifndef O_DIRECTORY
#define O_DIRECTORY 0x0200000
#endif
#define DFS_O_DIRECTORY O_DIRECTORY
/* Seek flags */

View File

@ -1,16 +0,0 @@
#ifndef __RTT_FCNTL_H__
#define __RTT_FCNTL_H__
/* Operation flags */
#define O_RDONLY 0x0000000
#define O_WRONLY 0x0000001
#define O_RDWR 0x0000002
#define O_ACCMODE 0x0000003
#define O_CREAT 0x0000100
#define O_EXCL 0x0000200
#define O_TRUNC 0x0001000
#define O_APPEND 0x0002000
#define O_DIRECTORY 0x0200000
#define O_BINARY 0x0008000
#endif