We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f944ea7 commit d60c968Copy full SHA for d60c968
components/libc/compilers/common/fcntl.h
@@ -12,13 +12,10 @@
12
13
#include <sys/types.h>
14
15
-#if defined(_WIN32)
16
-#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
17
-#endif
18
-
19
-#define O_RDONLY 00
20
-#define O_WRONLY 01
21
-#define O_RDWR 02
+#define O_RDONLY 0x0000 /* open for reading only */
+#define O_WRONLY 0x0001 /* open for writing only */
+#define O_RDWR 0x0002 /* open for reading and writing */
+#define O_ACCMODE 0x0003 /* mask for above modes */
22
23
#define O_CREAT 0100
24
#define O_EXCL 0200
@@ -43,8 +40,6 @@
43
40
#define O_SEARCH O_PATH
44
41
#define O_EXEC O_PATH
45
42
46
-#define O_ACCMODE (03|O_SEARCH)
47
48
#define F_DUPFD 0
49
#define F_GETFD 1
50
#define F_SETFD 2
0 commit comments