Lines Matching refs:cnt

134 	size_t cnt;  in socks_connect()  local
168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
169 if (cnt != 3) in socks_connect()
170 err(1, "write failed (%zu/3)", cnt); in socks_connect()
172 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
173 if (cnt != 2) in socks_connect()
174 err(1, "read failed (%zu/3)", cnt); in socks_connect()
221 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
222 if (cnt != wlen) in socks_connect()
223 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
225 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
226 if (cnt != 4) in socks_connect()
227 err(1, "read failed (%zu/4)", cnt); in socks_connect()
232 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
233 if (cnt != 6) in socks_connect()
234 err(1, "read failed (%zu/6)", cnt); in socks_connect()
237 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
238 if (cnt != 18) in socks_connect()
239 err(1, "read failed (%zu/18)", cnt); in socks_connect()
257 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
258 if (cnt != wlen) in socks_connect()
259 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
261 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
262 if (cnt != 8) in socks_connect()
263 err(1, "read failed (%zu/8)", cnt); in socks_connect()
287 cnt = atomicio(vwrite, proxyfd, buf, r); in socks_connect()
288 if (cnt != r) in socks_connect()
289 err(1, "write failed (%zu/%d)", cnt, r); in socks_connect()
306 if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) in socks_connect()
307 err(1, "write failed (%zu/%d)", cnt, r); in socks_connect()
311 if ((cnt = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) in socks_connect()
312 err(1, "write failed (%zu/2)", cnt); in socks_connect()