1 | /*
|
---|
2 | * File definitions
|
---|
3 | *
|
---|
4 | * Derived from the mingw header written by Colin Peters.
|
---|
5 | * Modified for Wine use by Jon Griffiths and Francois Gouget.
|
---|
6 | * This file is in the public domain.
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
11 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
12 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
13 | * a choice of LGPL license versions is made available with the language indicating
|
---|
14 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
15 | * of the LGPL is applied is otherwise unspecified.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef __WINE_FCNTL_H
|
---|
19 | #define __WINE_FCNTL_H
|
---|
20 |
|
---|
21 | #include <crtdefs.h>
|
---|
22 |
|
---|
23 | #define _O_RDONLY 0
|
---|
24 | #define _O_WRONLY 1
|
---|
25 | #define _O_RDWR 2
|
---|
26 | #define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
|
---|
27 | #define _O_APPEND 0x0008
|
---|
28 | #define _O_RANDOM 0x0010
|
---|
29 | #define _O_SEQUENTIAL 0x0020
|
---|
30 | #define _O_TEMPORARY 0x0040
|
---|
31 | #define _O_NOINHERIT 0x0080
|
---|
32 | #define _O_CREAT 0x0100
|
---|
33 | #define _O_TRUNC 0x0200
|
---|
34 | #define _O_EXCL 0x0400
|
---|
35 | #define _O_SHORT_LIVED 0x1000
|
---|
36 | #define _O_TEXT 0x4000
|
---|
37 | #define _O_BINARY 0x8000
|
---|
38 | #define _O_RAW _O_BINARY
|
---|
39 |
|
---|
40 |
|
---|
41 | #define O_RDONLY _O_RDONLY
|
---|
42 | #define O_WRONLY _O_WRONLY
|
---|
43 | #define O_RDWR _O_RDWR
|
---|
44 | #define O_ACCMODE _O_ACCMODE
|
---|
45 | #define O_APPEND _O_APPEND
|
---|
46 | #define O_RANDOM _O_RANDOM
|
---|
47 | #define O_SEQENTIAL _O_SEQUENTIAL
|
---|
48 | #define O_TEMPORARY _O_TEMPORARY
|
---|
49 | #define O_NOINHERIT _O_NOINHERIT
|
---|
50 | #define O_CREAT _O_CREAT
|
---|
51 | #define O_TRUNC _O_TRUNC
|
---|
52 | #define O_EXCL _O_EXCL
|
---|
53 | #define O_TEXT _O_TEXT
|
---|
54 | #define O_BINARY _O_BINARY
|
---|
55 | #define O_RAW _O_BINARY
|
---|
56 |
|
---|
57 | #endif /* __WINE_FCNTL_H */
|
---|