Lines Matching defs:mode
157 int mode;
165 mode = fcntl(fd, F_GETFL);
166 while (mode == -1 && errno == EINTR);
168 if (mode == -1)
181 mode &= O_ACCMODE;
182 if (mode != O_WRONLY)
184 if (mode != O_RDONLY)
344 int uv_pipe_chmod(uv_pipe_t* handle, int mode) {
354 if (mode != UV_READABLE &&
355 mode != UV_WRITABLE &&
356 mode != (UV_WRITABLE | UV_READABLE))
382 if (mode & UV_READABLE)
384 if (mode & UV_WRITABLE)
387 /* Exit early if pipe already has desired mode. */