Lines Matching refs:res
389 register int res; in ar_drain() local
403 while ((res = read(arfd, drbuf, sizeof(drbuf))) > 0) in ar_drain()
405 lstrval = res; in ar_drain()
500 register int res = 0; local
513 if ((res = read(arfd, buf, cnt)) > 0) {
522 if (res != rdblksz) {
532 rdblksz = res;
536 return(res);
551 if ((res = read(arfd, buf, cnt)) > 0) {
553 return(res);
561 lstrval = res;
562 if (res < 0)
566 return(res);
590 register int res; local
600 if ((res = write(arfd, buf, bsz)) == bsz) {
609 if (res < 0)
610 lstrval = res;
616 if ((res > 0) && (res % BLKMULT)) {
624 cpos -= (off_t)res;
627 res = lstrval = 0;
630 if (res >= 0)
636 res = lstrval = 0;
641 if (res >= 0)
645 res = lstrval = 0;
653 res = lstrval = 0;
671 if (res >= 0) {
672 if (res > 0)
681 if (!wr_trail && (res <= 0)) {
683 return(res);
686 if (res == 0)
688 else if (res < 0)
690 else if (!frmt->blkalgn || ((res % frmt->blkalgn) == 0))
694 return(res);
1009 register int res; in get_phys() local
1023 while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0) in get_phys()
1024 padsz += res; in get_phys()
1025 if (res < 0) { in get_phys()
1061 while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0) in get_phys()
1063 if (res < 0) { in get_phys()