Searched refs:avail (Results 1 – 2 of 2) sorted by relevance
727 uint32_t avail = -1; in HandleDataWithoutAgent() local728 res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in HandleDataWithoutAgent()733 } else if (avail < full_len) { in HandleDataWithoutAgent()735 << "Expected " << full_len << " bytes but only " << avail << " are readable. " in HandleDataWithoutAgent()788 uint32_t avail = -1; in PerformHandshake() local789 int res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in PerformHandshake()790 if (res < 0 || avail < sizeof(kJdwpHandshake)) { in PerformHandshake()
164 int avail; in ReadUpToMax() local165 int res = TEMP_FAILURE_RETRY(ioctl(read_fd_, FIONREAD, &avail)); in ReadUpToMax()170 size_t to_read = std::min(static_cast<size_t>(avail), ndata); in ReadUpToMax()