Lines Matching refs:bytes
34 #define BYTES2TBLKS(bytes) HOWMANY(bytes, Tblock) argument
314 unsigned bytes = Tblock * nblock; in refill() local
325 n = eread(arname, ar, bufs, bytes); in refill()
336 bytes = n; in refill()
338 } else if (justhdr && seekable && nexthdr - blkoff >= bytes) { in refill()
340 if (seek(ar, bytes, 1) < 0) in refill()
342 n = bytes; in refill()
344 n = ereadn(arname, ar, bufs, bytes); in refill()
351 if (n != bytes) { in refill()
353 memset(bufs + n, 0, bytes - n); in refill()
410 unsigned bytes = Tblock * nblock; in putlastblk() local
415 ewrite(arname, ar, tpblk, bytes); in putlastblk()
802 long bytes, blksread; in addtoar() local
850 bytes = blksread * Tblock; in addtoar()
851 n = ereadn(file, fd, hbp->data, bytes); in addtoar()
858 memset(hbp->data + n, 0, bytes - n); in addtoar()
873 Off bytes; in skip() local
875 bytes = arsize(hp); in skip()
876 for (blksleft = BYTES2TBLKS(bytes); blksleft > 0; blksleft -= blksread) { in skip()
1101 copyfromar(int ar, int fd, char *fname, ulong blksleft, Off bytes) in copyfromar() argument
1107 if (blksleft == 0 || bytes < 0) in copyfromar()
1108 bytes = 0; in copyfromar()
1121 assert(bytes >= 0); in copyfromar()
1122 if(wrbytes > bytes) in copyfromar()
1123 wrbytes = bytes; in copyfromar()
1128 bytes -= wrbytes; in copyfromar()
1129 assert(bytes >= 0); in copyfromar()
1131 if (bytes > 0) in copyfromar()
1133 "%s not fully extracted\n", argv0, bytes, arname, fname); in copyfromar()
1165 Off bytes = hdrsize(hp); /* for printing */ in extract1() local
1195 mode, bytes, cp+4, cp+24, fname); in extract1()
1199 copyfromar(ar, fd, fname, blksleft, bytes); in extract1()