Lines Matching defs:mode
54 int mode;
65 OK(mode = fcntl(fd, F_GETFL, NULL)); /*%< side effect: validate fd. */
68 * if the application already had it in O_NONBLOCK mode and if so, all
79 if (mode & PORT_NONBLOCK)
86 OK(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK));
160 int mode, eventmask;
171 /* Get the mode. Unless the file has been closed, errors are bad. */
172 mode = fcntl(del->fd, F_GETFL, NULL);
173 if (mode == -1 && errno != EBADF)
194 * and if !EV_WASNONBLOCK, and if we got no EBADF when we got the mode
199 mode != -1) {
209 (void) fcntl(del->fd, F_SETFL, mode & ~PORT_NONBLOCK);