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.
29 croak("%s not implemented on this architecture", s);
41 if (strnEQ(name, "F_", 2)) {
42 if (strEQ(name, "F_DUPFD"))
48 if (strEQ(name, "F_GETFD"))
54 if (strEQ(name, "F_GETLK"))
60 if (strEQ(name, "F_GETOWN"))
66 if (strEQ(name, "F_SETFD"))
72 if (strEQ(name, "F_GETFL"))
78 if (strEQ(name, "F_SETFL"))
84 if (strEQ(name, "F_SETLK"))
90 if (strEQ(name, "F_SETLKW"))
96 if (strEQ(name, "F_SETOWN"))
102 if (strEQ(name, "F_RDLCK"))
108 if (strEQ(name, "F_UNLCK"))
114 if (strEQ(name, "F_WRLCK"))
123 if (strEQ(name, "FD_CLOEXEC"))
131 if (strnEQ(name, "LOCK_", 5)) {
132 /* We support flock() on systems which don't have it, so
133 always supply the constants. */
134 if (strEQ(name, "LOCK_SH"))
140 if (strEQ(name, "LOCK_EX"))
146 if (strEQ(name, "LOCK_NB"))
152 if (strEQ(name, "LOCK_UN"))
162 if (strnEQ(name, "O_", 2)) {
163 if (strEQ(name, "O_CREAT"))
169 if (strEQ(name, "O_EXCL"))
175 if (strEQ(name, "O_NOCTTY"))
181 if (strEQ(name, "O_TRUNC"))
187 if (strEQ(name, "O_APPEND"))
193 if (strEQ(name, "O_NONBLOCK"))
199 if (strEQ(name, "O_NDELAY"))
205 if (strEQ(name, "O_RDONLY"))
211 if (strEQ(name, "O_RDWR"))
217 if (strEQ(name, "O_WRONLY"))
223 if (strEQ(name, "O_BINARY"))
229 if (strEQ(name, "O_EXLOCK"))
235 if (strEQ(name, "O_SHLOCK"))
241 if (strEQ(name, "O_ASYNC"))
247 if (strEQ(name, "O_DSYNC"))
253 if (strEQ(name, "O_RSYNC"))
259 if (strEQ(name, "O_SYNC"))
265 if (strEQ(name, "O_DEFER"))
284 MODULE = Fcntl PACKAGE = Fcntl