Fix explorer build a bit more.
[reactos.git] / reactos / include / crt / fcntl.h
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #include <_mingw.h>
7
8 #include <io.h>
9
10 #ifndef _INC_FCNTL
11 #define _INC_FCNTL
12
13 #define _O_RDONLY 0x0000
14 #define _O_WRONLY 0x0001
15 #define _O_RDWR 0x0002
16
17 #define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
18 #define _O_APPEND 0x0008
19 #define _O_CREAT 0x0100
20 #define _O_TRUNC 0x0200
21 #define _O_EXCL 0x0400
22 #define _O_TEXT 0x4000
23 #define _O_BINARY 0x8000
24 #define _O_WTEXT 0x10000
25 #define _O_U16TEXT 0x20000
26 #define _O_U8TEXT 0x40000
27
28 #define _O_RAW _O_BINARY
29 #define _O_NOINHERIT 0x0080
30 #define _O_TEMPORARY 0x0040
31 #define _O_SHORT_LIVED 0x1000
32
33 #define _O_SEQUENTIAL 0x0020
34 #define _O_RANDOM 0x0010
35
36 #if !defined(NO_OLDNAMES) || defined(_POSIX)
37 #define O_RDONLY _O_RDONLY
38 #define O_WRONLY _O_WRONLY
39 #define O_RDWR _O_RDWR
40 #define O_ACCMODE _O_ACCMODE
41 #define O_APPEND _O_APPEND
42 #define O_CREAT _O_CREAT
43 #define O_TRUNC _O_TRUNC
44 #define O_EXCL _O_EXCL
45 #define O_TEXT _O_TEXT
46 #define O_BINARY _O_BINARY
47 #define O_RAW _O_BINARY
48 #define O_TEMPORARY _O_TEMPORARY
49 #define O_NOINHERIT _O_NOINHERIT
50 #define O_SEQUENTIAL _O_SEQUENTIAL
51 #define O_RANDOM _O_RANDOM
52 #endif
53 #endif