~steve-sk2/mingw-w64/oneiric

« back to all changes in this revision

Viewing changes to mingw-w64-headers/crt/fcntl.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-11-18 00:04:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101118000446-xe24b423su55onyl
Tags: 1.0+20101003-1
* New maintainer. (Closes: #594371.)
* New upstream snapshot:
  - Includes getopt.h. (Closes: #569914.)
* Build g++ for Win64. (Closes: #600451.)
* Standards-Version 3.9.1 (new packaging).
* Include patch from
  http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64?view=revision&revision=3715
  as suggested by Rafaël Carré.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.PD 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
 
#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