Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include "spinlock.h"
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <termios.h>
#include <errno.h>
#include <sys/ioctl.h>
Go to the source code of this file.
Functions | |
static int | uv__tty_is_slave (const int fd) |
int | uv_tty_init (uv_loop_t *loop, uv_tty_t *tty, int fd, int unused) |
static void | uv__tty_make_raw (struct termios *tio) |
int | uv_tty_set_mode (uv_tty_t *tty, uv_tty_mode_t mode) |
int | uv_tty_get_winsize (uv_tty_t *tty, int *width, int *height) |
uv_handle_type | uv_guess_handle (uv_file file) |
int | uv_tty_reset_mode (void) |
void | uv_tty_set_vterm_state (uv_tty_vtermstate_t state) |
int | uv_tty_get_vterm_state (uv_tty_vtermstate_t *state) |
Variables | |
static int | orig_termios_fd = -1 |
static struct termios | orig_termios |
static uv_spinlock_t | termios_spinlock = UV_SPINLOCK_INITIALIZER |
Definition at line 69 of file tty.c.
References fd, fstat, ioctl, major, NULL, sb, and TIOCGPTN.
Referenced by uv_tty_init().
|
static |
Definition at line 231 of file tty.c.
References assert(), BRKINT, termios::c_cflag, termios::c_iflag, termios::c_lflag, termios::c_oflag, CS8, CSIZE, ECHO, ECHONL, ICANON, ICRNL, IEXTEN, IGNBRK, IGNCR, IMAXBEL, INLCR, ISIG, ISTRIP, IXON, NULL, OPOST, PARENB, and PARMRK.
Referenced by uv_tty_set_mode().
uv_handle_type uv_guess_handle | ( | uv_file | file | ) |
Definition at line 315 of file tty.c.
Referenced by uv_tty_init().
int uv_tty_get_vterm_state | ( | uv_tty_vtermstate_t * | state | ) |
Definition at line 297 of file tty.c.
Definition at line 123 of file tty.c.
int uv_tty_set_mode | ( | uv_tty_t * | tty, |
uv_tty_mode_t | mode | ||
) |
Definition at line 250 of file tty.c.
void uv_tty_set_vterm_state | ( | uv_tty_vtermstate_t | state | ) |
|
static |
Definition at line 65 of file tty.c.
Referenced by uv_tty_reset_mode(), and uv_tty_set_mode().
|
static |
Definition at line 65 of file tty.c.
Referenced by uv_tty_reset_mode(), and uv_tty_set_mode().
|
static |
Definition at line 67 of file tty.c.
Referenced by uv_tty_reset_mode(), and uv_tty_set_mode().