[DFS] Add fcntl API (same with ioctl in RT-Thread).

This commit is contained in:
BernardXiong
2017-12-31 14:46:24 +08:00
parent 8246da645d
commit 5a95d35626
4 changed files with 56 additions and 9 deletions

View File

@@ -16,6 +16,13 @@
#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
#endif
#ifndef F_GETFL
#define F_GETFL 3
#endif
#ifndef F_SETFL
#define F_SETFL 4
#endif
#else
#define O_RDONLY 00
#define O_WRONLY 01