update comment.
[ruby-svn.git] / wince / fcntl.h
blob5a6bdc71e647b1055128a088f30ba2cf2962a540
2 #ifndef FCNTL_H
3 #define FCNTL_H 1
6 #define F_SETFL 1
7 #define F_SETFD 2
8 #define F_GETFL 3
10 #define _O_RDONLY 0x0000 /* open for reading only */
11 #define _O_WRONLY 0x0001 /* open for writing only */
12 #define _O_RDWR 0x0002 /* open for reading and writing */
14 #define _O_NONBLOCK 0x0004
16 #define _O_APPEND 0x0008 /* writes done at eof */
17 #define _O_CREAT 0x0100 /* create and open file */
18 #define _O_TRUNC 0x0200 /* open and truncate */
19 #define _O_EXCL 0x0400 /* open only if file doesn't already exist */
20 #define _O_TEXT 0x4000 /* file mode is text (translated) */
21 #define _O_BINARY 0x8000 /* file mode is binary (untranslated) */
22 #define _O_ACCMODE 0x10000
24 #define _O_NOINHERIT 0
25 #define O_NOINHERIT _O_NOINHERIT
27 #define O_RDONLY _O_RDONLY
28 #define O_WRONLY _O_WRONLY
29 #define O_RDWR _O_RDWR
31 #define O_NONBLOCK _O_NONBLOCK
33 #define O_APPEND _O_APPEND
34 #define O_CREAT _O_CREAT
35 #define O_TRUNC _O_TRUNC
36 #define O_EXCL _O_EXCL
37 #define O_TEXT _O_TEXT
38 #define O_BINARY _O_BINARY
39 #define O_ACCMODE _O_ACCMODE
42 #endif