Lines Matching refs:mode
142 int mode; in uv_tty_init() local
164 mode = saved_flags & O_ACCMODE; in uv_tty_init()
183 r = uv__open_cloexec(path, mode | O_NOCTTY); in uv_tty_init()
189 if (mode != O_RDONLY) in uv_tty_init()
233 if (mode != O_WRONLY) in uv_tty_init()
235 if (mode != O_RDONLY) in uv_tty_init()
239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init()
281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { in uv_tty_set_mode() argument
287 if (tty->mode == (int) mode) in uv_tty_set_mode()
291 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) { in uv_tty_set_mode()
313 switch (mode) { in uv_tty_set_mode()
332 tty->mode = mode; in uv_tty_set_mode()