Lines Matching refs:read

122 			syswarn(0, errno, "Failed open to read on %s", name);
142 syswarn(0, errno, "Failed open to read/write on %s",
205 * set default blksz on read. APPNDs writes rdblksz on the last volume
221 * multiple records in a single read. We really do not care
235 * block size, we use that to read. Under append, we must
406 "%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n",
409 "%s: %s vol %d, %ju files, %ju bytes read, %ju bytes written.\n",
419 * drain any archive format independent padding from an archive read
441 while ((res = read(arfd, drbuf, sizeof(drbuf))) > 0)
448 * Set up device right before switching from read to write in an append.
511 * read up to a specified number of bytes from the archive into the
513 * read what we want.
515 * Number of bytes in buffer. 0 for end of file, -1 for a read error.
530 * how we read must be based on device type
534 if ((res = read(arfd, buf, cnt)) > 0) {
549 * read). Watch out for record blocking that
572 if ((res = read(arfd, buf, cnt)) > 0) {
584 syswarn(1, errno, "Failed read on archive volume %d", arvol);
788 paxwarn(1, "Unable to recover from an archive read failure.");
791 paxwarn(0, "Attempting to recover from an archive read failure.");
822 * Safer to read forward on devices where it is hard to find the end of
825 * size at this point), so we must only read forward on tapes!
1006 * move to the file mark, and then back up one record and read it.
1012 * read()
1014 while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
1034 * move backwards so we are in front of the last record and read it to
1043 if ((phyblk = read(arfd, scbuf, sizeof(scbuf))) <= 0) {
1049 * read forward to the file mark, then back up in front of the filemark
1052 while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
1104 * read on tty input, we must quit pax.