Lines Matching refs:nbytes
314 size_t nbytes; in proc_child() local
349 nbytes = 0; in proc_child()
360 nbytes += ret; in proc_child()
362 ret = write(bfd, &nbytes, sizeof(nbytes)); in proc_child()
363 assert(ret == sizeof(nbytes)); in proc_child()
494 size_t nbytes; in proc_parent() local
564 nbytes = 0; in proc_parent()
565 ret = read(bfd, &nbytes, sizeof(nbytes)); in proc_parent()
566 assert(ret == sizeof(nbytes)); in proc_parent()
579 if (nbytes > 0 && retries > 0) in proc_parent()
585 assert(nbytes > 0); in proc_parent()
586 ret = read(fd, buf, MIN(sizeof(buf), nbytes)); in proc_parent()
588 nbytes -= ret; in proc_parent()
590 assert(nbytes == 0); in proc_parent()