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