Lines Matching refs:mode
196 int mode; in uv_pipe_open() local
204 mode = fcntl(fd, F_GETFL); in uv_pipe_open()
205 while (mode == -1 && errno == EINTR); in uv_pipe_open()
207 if (mode == -1) in uv_pipe_open()
220 mode &= O_ACCMODE; in uv_pipe_open()
221 if (mode != O_WRONLY) in uv_pipe_open()
223 if (mode != O_RDONLY) in uv_pipe_open()
447 int uv_pipe_chmod(uv_pipe_t* handle, int mode) { in uv_pipe_chmod() argument
457 if (mode != UV_READABLE && in uv_pipe_chmod()
458 mode != UV_WRITABLE && in uv_pipe_chmod()
459 mode != (UV_WRITABLE | UV_READABLE)) in uv_pipe_chmod()
473 if (mode & UV_READABLE) in uv_pipe_chmod()
475 if (mode & UV_WRITABLE) in uv_pipe_chmod()