source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/fcntl.h

Last change on this file was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.2 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#include <crtdefs.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#define _O_APPEND 0x0008
17#define _O_CREAT 0x0100
18#define _O_TRUNC 0x0200
19#define _O_EXCL 0x0400
20#define _O_TEXT 0x4000
21#define _O_BINARY 0x8000
22#define _O_WTEXT 0x10000
23#define _O_U16TEXT 0x20000
24#define _O_U8TEXT 0x40000
25#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
26
27#define _O_RAW _O_BINARY
28#define _O_NOINHERIT 0x0080
29#define _O_TEMPORARY 0x0040
30#define _O_SHORT_LIVED 0x1000
31
32#define _O_SEQUENTIAL 0x0020
33#define _O_RANDOM 0x0010
34
35#if !defined(NO_OLDNAMES) || defined(_POSIX)
36#define O_RDONLY _O_RDONLY
37#define O_WRONLY _O_WRONLY
38#define O_RDWR _O_RDWR
39#define O_APPEND _O_APPEND
40#define O_CREAT _O_CREAT
41#define O_TRUNC _O_TRUNC
42#define O_EXCL _O_EXCL
43#define O_TEXT _O_TEXT
44#define O_BINARY _O_BINARY
45#define O_RAW _O_BINARY
46#define O_TEMPORARY _O_TEMPORARY
47#define O_NOINHERIT _O_NOINHERIT
48#define O_SEQUENTIAL _O_SEQUENTIAL
49#define O_RANDOM _O_RANDOM
50#define O_ACCMODE _O_ACCMODE
51#endif
52#endif
Note: See TracBrowser for help on using the repository browser.