Searched refs:tty_bytes (Results 1 – 1 of 1) sorted by relevance
65 int tty_bytes = 0; in initialize() local66 if (TEMP_FAILURE_RETRY(ioctl(fd, FIONREAD, &tty_bytes))) in initialize()68 ALOGV("%s:tty_bytes = %d", __func__, tty_bytes); in initialize()70 uint8_t* tmp_buffer = new uint8_t[tty_bytes]; in initialize()71 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, tmp_buffer, tty_bytes)); in initialize()72 CHECK(static_cast<int>(bytes_read) == tty_bytes); in initialize()74 TEMP_FAILURE_RETRY(write(shim_fd, tmp_buffer, tty_bytes)); in initialize()75 CHECK(static_cast<int>(bytes_written) == tty_bytes); in initialize()