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_GETLK64"))
81 if (strEQ(name, "F_GETOWN"))
87 if (strEQ(name, "F_POSIX"))
93 if (strEQ(name, "F_RDLCK"))
99 if (strEQ(name, "F_SETFD"))
105 if (strEQ(name, "F_SETFL"))
111 if (strEQ(name, "F_SETLK"))
117 if (strEQ(name, "F_SETLK64"))
123 if (strEQ(name, "F_SETLKW"))
129 if (strEQ(name, "F_SETLKW64"))
135 if (strEQ(name, "F_SETOWN"))
141 if (strEQ(name, "F_SHLCK"))
147 if (strEQ(name, "F_UNLCK"))
153 if (strEQ(name, "F_WRLCK"))
162 if (strEQ(name, "FAPPEND"))
168 if (strEQ(name, "FASYNC"))
174 if (strEQ(name, "FCREAT"))
180 if (strEQ(name, "FD_CLOEXEC"))
186 if (strEQ(name, "FDEFER"))
192 if (strEQ(name, "FEXCL"))
198 if (strEQ(name, "FNDELAY"))
204 if (strEQ(name, "FNONBLOCK"))
210 if (strEQ(name, "FSYNC"))
216 if (strEQ(name, "FTRUNC"))
224 if (strnEQ(name, "LOCK_", 5)) {
225 /* We support flock() on systems which don't have it, so
226 always supply the constants. */
227 if (strEQ(name, "LOCK_SH"))
233 if (strEQ(name, "LOCK_EX"))
239 if (strEQ(name, "LOCK_NB"))
245 if (strEQ(name, "LOCK_UN"))
255 if (strnEQ(name, "O_", 2)) {
256 if (strEQ(name, "O_ACCMODE"))
262 if (strEQ(name, "O_APPEND"))
268 if (strEQ(name, "O_ASYNC"))
274 if (strEQ(name, "O_BINARY"))
280 if (strEQ(name, "O_CREAT"))
286 if (strEQ(name, "O_DEFER"))
292 if (strEQ(name, "O_DSYNC"))
298 if (strEQ(name, "O_EXCL"))
304 if (strEQ(name, "O_EXLOCK"))
310 if (strEQ(name, "O_LARGEFILE"))
316 if (strEQ(name, "O_NDELAY"))
322 if (strEQ(name, "O_NOCTTY"))
328 if (strEQ(name, "O_NONBLOCK"))
334 if (strEQ(name, "O_RDONLY"))
340 if (strEQ(name, "O_RDWR"))
346 if (strEQ(name, "O_RSYNC"))
352 if (strEQ(name, "O_SHLOCK"))
358 if (strEQ(name, "O_SYNC"))
364 if (strEQ(name, "O_TEXT"))
370 if (strEQ(name, "O_TRUNC"))
376 if (strEQ(name, "O_WRONLY"))
395 MODULE = Fcntl PACKAGE = Fcntl