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