Lines Matching refs:sent
478 ssize_t sent = 0;
513 for (count = 0; count < sizeof(buf); count += sent)
524 sent = ((unsigned)sys_random()%(20))+ 1;
525 if (sent > sizeof(buf) - count)
527 sent = sizeof(buf) - count;
530 if (cli_write(c, fnum, 0, buf+count, count, (size_t)sent) != sent) {
537 sent = cli_read(c, fnum, buf_rd+count, count,
539 if (sent < 0)
545 sent = 0;
547 if (sent > 0)
549 if (memcmp(buf_rd+count, buf+count, sent) != 0)
552 printf("offset: %d req %ld recvd %ld\n", count, (unsigned long)sizeof(buf)-count, (unsigned long)sent);