Lines Matching refs:total
203 static void wait_for_ack(int fd, int timeout, size_t total) in wait_for_ack() argument
219 if ((size_t)queued > total) in wait_for_ack()
220 xerror("TIOCOUTQ %u, but only %zu expected\n", queued, total); in wait_for_ack()
237 size_t len, i, total, sent; in connect_one_server() local
272 total = rand() % (16 * 1024 * 1024); in connect_one_server()
273 total += (1 * 1024 * 1024); in connect_one_server()
274 sent = total; in connect_one_server()
276 ret = write(unixfd, &total, sizeof(total)); in connect_one_server()
277 assert(ret == (ssize_t)sizeof(total)); in connect_one_server()
281 while (total > 0) { in connect_one_server()
282 if (total > sizeof(buf)) in connect_one_server()
285 len = total; in connect_one_server()
290 total -= ret; in connect_one_server()