Lines Matching defs:mode
142 int mode;
164 mode = saved_flags & O_ACCMODE;
167 * tty in non-blocking mode without affecting other processes that share it
170 * Example: `node | cat` - if we put our fd 0 in non-blocking mode, it also
177 /* Reopening a pty in master mode won't work either because the reopened
178 * pty will be in slave mode (*BSD) or reopening will allocate a new
183 r = uv__open_cloexec(path, mode | O_NOCTTY);
189 if (mode != O_RDONLY)
233 if (mode != O_WRONLY)
235 if (mode != O_RDONLY)
239 tty->mode = UV_TTY_MODE_NORMAL;
266 * for canonical mode processing. Because the EOF character needs to be
268 * switching to raw mode, this is interpreted as a MIN value of 4; i.e.,
281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) {
286 if (tty->mode == (int) mode)
290 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) {
308 switch (mode) {
327 tty->mode = mode;