Lines Matching refs:tty
27 /* Make sure we have an FD that refers to a tty */
41 return open("/dev/tty", O_RDONLY, 0);
54 uv_tty_t tty;
108 r = uv_tty_init(loop, &tty, tty_fd, 0);
110 ASSERT(uv_is_readable((uv_stream_t*) &tty));
111 ASSERT(!uv_is_writable((uv_stream_t*) &tty));
112 r = uv_fileno((uv_handle_t*) &tty, &fd);
114 uv_close((uv_handle_t*) &tty, NULL);
115 r = uv_fileno((uv_handle_t*) &tty, &fd);
117 ASSERT(!uv_is_readable((uv_stream_t*) &tty));
118 ASSERT(!uv_is_writable((uv_stream_t*) &tty));