Searched refs:avail (Results 1 – 2 of 2) sorted by relevance
688 uint32_t avail = -1; in HandleDataWithoutAgent() local689 res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in HandleDataWithoutAgent()694 } else if (avail < full_len) { in HandleDataWithoutAgent()696 << "Expected " << full_len << " bytes but only " << avail << " are readable. " in HandleDataWithoutAgent()749 uint32_t avail = -1; in PerformHandshake() local750 int res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in PerformHandshake()751 if (res < 0 || avail < sizeof(kJdwpHandshake)) { in PerformHandshake()
175 int avail; in ReadUpToMax() local176 int res = TEMP_FAILURE_RETRY(ioctl(read_fd_, FIONREAD, &avail)); in ReadUpToMax()181 size_t to_read = std::min(static_cast<size_t>(avail), ndata); in ReadUpToMax()