diff options
| author | BernardXiong <[email protected]> | 2017-12-31 14:46:24 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2017-12-31 14:46:24 +0800 |
| commit | 5a95d356264ab1ef20729aa45887ad641114a9ae (patch) | |
| tree | be1f9cf39ff4160ba2b7d539a8017f26535bfa60 /include/libc | |
| parent | 8246da645d4569ca8d29c6b54efefaf4c313b343 (diff) | |
[DFS] Add fcntl API (same with ioctl in RT-Thread).
Diffstat (limited to 'include/libc')
| -rw-r--r-- | include/libc/libc_fcntl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libc/libc_fcntl.h b/include/libc/libc_fcntl.h index fd61b44273..f8dd66c7fd 100644 --- a/include/libc/libc_fcntl.h +++ b/include/libc/libc_fcntl.h @@ -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 |
