Lines Matching refs:nread
344 int nread; in ensure_config_file_exists() local
373 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) { in ensure_config_file_exists()
374 if (nread < 0) { in ensure_config_file_exists()
381 TEMP_FAILURE_RETRY(write(destfd, buf, nread)); in ensure_config_file_exists()
655 size_t nread = buflen - 1; in wifi_wait_on_socket() local
664 result = wifi_ctrl_recv(buf, &nread); in wifi_wait_on_socket()
677 buf[nread] = '\0'; in wifi_wait_on_socket()
679 if (result == 0 && nread == 0) { in wifi_wait_on_socket()
703 nread -= (match2 - match); in wifi_wait_on_socket()
704 memmove(match + 1, match2 + 1, nread - (match - buf) + 1); in wifi_wait_on_socket()
713 nread -= (match + 1 - buf); in wifi_wait_on_socket()
714 memmove(buf, match + 1, nread + 1); in wifi_wait_on_socket()
722 return nread; in wifi_wait_on_socket()