8 #if defined(__GNUC__) && defined(__cplusplus) && defined(WIN32)
12 #if defined(__GNUC__) && defined(__cplusplus) && defined(WIN32)
17 /* This comment is a kludge to get metaconfig to see the symbols
22 and include the appropriate metaconfig unit
23 so that Configure will test how to turn on non-blocking I/O
24 for a file descriptor. See config.h for how to use these
27 While I'm at it, I'll have metaconfig look for HAS_POLL too.
34 croak("%s not implemented on this architecture", s);
39 constant(char *name, int arg)
44 if (strnEQ(name, "F_", 2)) {
45 if (strEQ(name, "F_DUPFD"))
51 if (strEQ(name, "F_EXLCK"))
57 if (strEQ(name, "F_GETFD"))
63 if (strEQ(name, "F_GETFL"))
69 if (strEQ(name, "F_GETLK"))
75 if (strEQ(name, "F_GETOWN"))
81 if (strEQ(name, "F_POSIX"))
87 if (strEQ(name, "F_RDLCK"))
93 if (strEQ(name, "F_SETFD"))
99 if (strEQ(name, "F_SETFL"))
105 if (strEQ(name, "F_SETLK"))
111 if (strEQ(name, "F_SETLKW"))
117 if (strEQ(name, "F_SETOWN"))
123 if (strEQ(name, "F_SHLCK"))
129 if (strEQ(name, "F_UNLCK"))
135 if (strEQ(name, "F_WRLCK"))
144 if (strEQ(name, "FAPPEND"))
150 if (strEQ(name, "FASYNC"))
156 if (strEQ(name, "FCREAT"))
162 if (strEQ(name, "FD_CLOEXEC"))
168 if (strEQ(name, "FDEFER"))
174 if (strEQ(name, "FEXCL"))
180 if (strEQ(name, "FNDELAY"))
186 if (strEQ(name, "FNONBLOCK"))
192 if (strEQ(name, "FSYNC"))
198 if (strEQ(name, "FTRUNC"))
206 if (strnEQ(name, "LOCK_", 5)) {
207 /* We support flock() on systems which don't have it, so
208 always supply the constants. */
209 if (strEQ(name, "LOCK_SH"))
215 if (strEQ(name, "LOCK_EX"))
221 if (strEQ(name, "LOCK_NB"))
227 if (strEQ(name, "LOCK_UN"))
237 if (strnEQ(name, "O_", 2)) {
238 if (strEQ(name, "O_ACCMODE"))
244 if (strEQ(name, "O_APPEND"))
250 if (strEQ(name, "O_ASYNC"))
256 if (strEQ(name, "O_BINARY"))
262 if (strEQ(name, "O_CREAT"))
268 if (strEQ(name, "O_DEFER"))
274 if (strEQ(name, "O_DSYNC"))
280 if (strEQ(name, "O_EXCL"))
286 if (strEQ(name, "O_EXLOCK"))
292 if (strEQ(name, "O_NDELAY"))
298 if (strEQ(name, "O_NOCTTY"))
304 if (strEQ(name, "O_NONBLOCK"))
310 if (strEQ(name, "O_RDONLY"))
316 if (strEQ(name, "O_RDWR"))
322 if (strEQ(name, "O_RSYNC"))
328 if (strEQ(name, "O_SHLOCK"))
334 if (strEQ(name, "O_SYNC"))
340 if (strEQ(name, "O_TEXT"))
346 if (strEQ(name, "O_TRUNC"))
352 if (strEQ(name, "O_WRONLY"))
371 MODULE = Fcntl PACKAGE = Fcntl