comparison src/sysfile.h @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents cc15677e0335
children 74fd4e045ea6
comparison
equal deleted inserted replaced
379:76b7d63099ad 380:8626e4521993
53 #ifdef WINDOWSNT 53 #ifdef WINDOWSNT
54 #include <io.h> 54 #include <io.h>
55 #include <direct.h> 55 #include <direct.h>
56 #endif 56 #endif
57 57
58 #ifndef STDERR_FILENO
59 #define STDIN_FILENO 0
60 #define STDOUT_FILENO 1
61 #define STDERR_FILENO 2
62 #endif
63
58 #ifndef O_RDONLY 64 #ifndef O_RDONLY
59 #define O_RDONLY 0 65 #define O_RDONLY 0
60 #endif 66 #endif
61 67
62 #ifndef O_WRONLY 68 #ifndef O_WRONLY
111 #ifndef WRITE_BINARY 117 #ifndef WRITE_BINARY
112 #ifdef O_BINARY 118 #ifdef O_BINARY
113 #define WRITE_BINARY "wb" 119 #define WRITE_BINARY "wb"
114 #else 120 #else
115 #define WRITE_BINARY "w" 121 #define WRITE_BINARY "w"
122 #endif
123 #endif
124
125 #ifndef O_NONBLOCK
126 #ifdef O_NDELAY
127 #define O_NONBLOCK O_NDELAY
128 #else
129 #define O_NONBLOCK 04000
116 #endif 130 #endif
117 #endif 131 #endif
118 132
119 /* if system does not have symbolic links, it does not have lstat. 133 /* if system does not have symbolic links, it does not have lstat.
120 In that case, use ordinary stat instead. */ 134 In that case, use ordinary stat instead. */