Lines Matching refs:ret
1324 ssize_t ret; in hap_PROXY_recv() local
1329 ret = recv(fd, hdr, sizeof(*hdr), MSG_PEEK|MSG_DONTWAIT|MSG_NOSIGNAL); in hap_PROXY_recv()
1330 } while (-1 == ret && errno == EINTR); in hap_PROXY_recv()
1332 if (-1 == ret) in hap_PROXY_recv()
1341 if (ret >= 16 && 0 == memcmp(&hdr->v2, v2sig, 12) in hap_PROXY_recv()
1345 if ((size_t)ret < sz) in hap_PROXY_recv()
1354 else if (ret >= 8 && 0 == memcmp(hdr->v1.line, "PROXY", 5)) { in hap_PROXY_recv()
1355 const char *end = memchr(hdr->v1.line, '\r', ret - 1); in hap_PROXY_recv()
1373 ret = recv(fd, hdr, sz, MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL); in hap_PROXY_recv()
1374 if (ret >= 0 || errno != EINVAL) continue; in hap_PROXY_recv()
1377 ret = recv(fd, hdr, sz, MSG_DONTWAIT|MSG_NOSIGNAL); in hap_PROXY_recv()
1378 } while (-1 == ret && errno == EINTR); in hap_PROXY_recv()
1379 if (ret < 0) return -1; in hap_PROXY_recv()
1380 if (ret != (ssize_t)sz) { in hap_PROXY_recv()