From 5a95d356264ab1ef20729aa45887ad641114a9ae Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Sun, 31 Dec 2017 14:46:24 +0800 Subject: [DFS] Add fcntl API (same with ioctl in RT-Thread). --- include/libc/libc_fcntl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 -- cgit v1.3.1