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_GETFD"))
51 if (strEQ(name, "F_GETLK"))
57 if (strEQ(name, "F_GETOWN"))
63 if (strEQ(name, "F_SETFD"))
69 if (strEQ(name, "F_GETFL"))
75 if (strEQ(name, "F_POSIX"))
81 if (strEQ(name, "F_SETFL"))
87 if (strEQ(name, "F_SETLK"))
93 if (strEQ(name, "F_SETLKW"))
99 if (strEQ(name, "F_SETOWN"))
105 if (strEQ(name, "F_RDLCK"))
111 if (strEQ(name, "F_UNLCK"))
117 if (strEQ(name, "F_WRLCK"))
126 if (strEQ(name, "FAPPEND"))
132 if (strEQ(name, "FASYNC"))
138 if (strEQ(name, "FCREAT"))
144 if (strEQ(name, "FD_CLOEXEC"))
150 if (strEQ(name, "FEXCL"))
156 if (strEQ(name, "FNDELAY"))
162 if (strEQ(name, "FNONBLOCK"))
168 if (strEQ(name, "FSYNC"))
174 if (strEQ(name, "FTRUNC"))
182 if (strnEQ(name, "LOCK_", 5)) {
183 /* We support flock() on systems which don't have it, so
184 always supply the constants. */
185 if (strEQ(name, "LOCK_SH"))
191 if (strEQ(name, "LOCK_EX"))
197 if (strEQ(name, "LOCK_NB"))
203 if (strEQ(name, "LOCK_UN"))
213 if (strnEQ(name, "O_", 2)) {
214 if (strEQ(name, "O_CREAT"))
220 if (strEQ(name, "O_EXCL"))
226 if (strEQ(name, "O_NOCTTY"))
232 if (strEQ(name, "O_TRUNC"))
238 if (strEQ(name, "O_APPEND"))
244 if (strEQ(name, "O_NONBLOCK"))
250 if (strEQ(name, "O_NDELAY"))
256 if (strEQ(name, "O_RDONLY"))
262 if (strEQ(name, "O_RDWR"))
268 if (strEQ(name, "O_WRONLY"))
274 if (strEQ(name, "O_BINARY"))
280 if (strEQ(name, "O_EXLOCK"))
286 if (strEQ(name, "O_SHLOCK"))
292 if (strEQ(name, "O_ASYNC"))
298 if (strEQ(name, "O_DSYNC"))
304 if (strEQ(name, "O_RSYNC"))
310 if (strEQ(name, "O_SYNC"))
316 if (strEQ(name, "O_DEFER"))
335 MODULE = Fcntl PACKAGE = Fcntl