@@ -117,16 +117,27 @@ pub const BUFSIZ: ::c_uint = 512;
117
117
pub const FOPEN_MAX : :: c_uint = 20 ;
118
118
pub const FILENAME_MAX : :: c_uint = 260 ;
119
119
120
- pub const O_RDONLY : :: c_int = 0 ;
121
- pub const O_WRONLY : :: c_int = 1 ;
122
- pub const O_RDWR : :: c_int = 2 ;
123
- pub const O_APPEND : :: c_int = 8 ;
124
- pub const O_CREAT : :: c_int = 256 ;
125
- pub const O_EXCL : :: c_int = 1024 ;
126
- pub const O_TEXT : :: c_int = 16384 ;
127
- pub const O_BINARY : :: c_int = 32768 ;
128
- pub const O_NOINHERIT : :: c_int = 128 ;
129
- pub const O_TRUNC : :: c_int = 512 ;
120
+ // fcntl.h
121
+ pub const O_RDONLY : :: c_int = 0x0000 ;
122
+ pub const O_WRONLY : :: c_int = 0x0001 ;
123
+ pub const O_RDWR : :: c_int = 0x0002 ;
124
+ pub const O_APPEND : :: c_int = 0x0008 ;
125
+ pub const O_CREAT : :: c_int = 0x0100 ;
126
+ pub const O_TRUNC : :: c_int = 0x0200 ;
127
+ pub const O_EXCL : :: c_int = 0x0400 ;
128
+ pub const O_TEXT : :: c_int = 0x4000 ;
129
+ pub const O_BINARY : :: c_int = 0x8000 ;
130
+ pub const _O_WTEXT: :: c_int = 0x10000 ;
131
+ pub const _O_U16TEXT: :: c_int = 0x20000 ;
132
+ pub const _O_U8TEXT: :: c_int = 0x40000 ;
133
+ pub const O_RAW : :: c_int = O_BINARY ;
134
+ pub const O_NOINHERIT : :: c_int = 0x0080 ;
135
+ pub const O_TEMPORARY : :: c_int = 0x0040 ;
136
+ pub const _O_SHORT_LIVED: :: c_int = 0x1000 ;
137
+ pub const _O_OBTAIN_DIR: :: c_int = 0x2000 ;
138
+ pub const O_SEQUENTIAL : :: c_int = 0x0020 ;
139
+ pub const O_RANDOM : :: c_int = 0x0010 ;
140
+
130
141
pub const S_IFCHR : :: c_int = 8192 ;
131
142
pub const S_IFDIR : :: c_int = 16384 ;
132
143
pub const S_IFREG : :: c_int = 32768 ;
0 commit comments