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_SETFD"))
66 if (strEQ(name, "F_GETFL"))
72 if (strEQ(name, "F_SETFL"))
78 if (strEQ(name, "F_SETLK"))
84 if (strEQ(name, "F_SETLKW"))
90 if (strEQ(name, "F_RDLCK"))
96 if (strEQ(name, "F_UNLCK"))
102 if (strEQ(name, "F_WRLCK"))
111 if (strEQ(name, "FD_CLOEXEC"))
119 if (strnEQ(name, "LOCK_", 5)) {
120 /* We support flock() on systems which don't have it, so
121 always supply the constants. */
122 if (strEQ(name, "LOCK_SH"))
128 if (strEQ(name, "LOCK_EX"))
134 if (strEQ(name, "LOCK_NB"))
140 if (strEQ(name, "LOCK_UN"))
150 if (strnEQ(name, "O_", 2)) {
151 if (strEQ(name, "O_CREAT"))
157 if (strEQ(name, "O_EXCL"))
163 if (strEQ(name, "O_NOCTTY"))
169 if (strEQ(name, "O_TRUNC"))
175 if (strEQ(name, "O_APPEND"))
181 if (strEQ(name, "O_NONBLOCK"))
187 if (strEQ(name, "O_NDELAY"))
193 if (strEQ(name, "O_RDONLY"))
199 if (strEQ(name, "O_RDWR"))
205 if (strEQ(name, "O_WRONLY"))
211 if (strEQ(name, "O_BINARY"))
230 MODULE = Fcntl PACKAGE = Fcntl