Searched refs:bread (Results 1 - 7 of 7) sorted by relevance

/ast/src/cmd/pax/
H A Dformat.c74 if ((n = bread(ap, (char*)buf, (off_t)0, (off_t)sizeof(buf), 0)) <= MINID && !bcount(ap))
142 if ((n = bread(ap, (char*)buf, (off_t)0, (off_t)sizeof(buf), 0)) <= MINID && !bcount(ap))
179 if (!state.keepgoing || ap->io->eof || bread(ap, buf, (off_t)0, (off_t)1, 0) < 1)
389 if (!(n = roundof(ap->io->count, BLOCKSIZE) - ap->io->count) || bread(ap, buf, (off_t)0, (off_t)n, 0) > 0)
416 } while (bread(ap, buf, (off_t)0, n, 0) > 0);
803 bread(ap, state.tmp.buffer, (off_t)0, n, 1);
H A Dpaxlib.c71 return bread(ap, b, n, m, must);
H A Dcopy.c84 * if rfd<0 && st_size>0 then input from bread()
134 else if (bread(f->ap, ap->io->next, (off_t)0, (off_t)n, 1) <= 0)
340 if ((!ap->format->getdata || !(*ap->format->getdata)(&state, ap, f, -1)) && ((n = f->st->st_size) > 0 && f->type == X_IFREG || (n = f->datasize)) && bread(ap, NiL, (off_t)0, n, 1) < 0)
H A Ddelta.c49 while (f->st->st_size > 0 && bread(ap, &c, (off_t)1, (off_t)1, 1) > 0)
111 if (f->st->st_size <= 0 || bread(ap, &c, (off_t)1, (off_t)1, 1) <= 0)
123 if (bread(ap, s, (off_t)n, (off_t)n, 1) > 0)
392 if ((n = state.ordered ? bread(ap, state.tmp.buffer, n, n, 1) : read(ap->delta->base->io->fd, state.tmp.buffer, n)) <= 0)
694 if (bread(ip, state.tmp.buffer, n, n, 1) <= 0)
1009 n = (dp->op & DELTA_BIO) ? bread(dp->bp, buf, (off_t)0, (off_t)n, 1) : read(dp->fd, buf, n);
1247 if (bread(data[op].bp, data[op].vd.data, data[op].vd.size, data[op].vd.size, 1) != data[op].vd.size)
1248 error(3, "%s: delta bread error", f->name);
1294 if (bread(data[op].bp, data[op].vd.data, data[op].vd.size, data[op].vd.size, 1) != data[op].vd.size)
1295 error(3, "%s: delta bread erro
[all...]
H A Dpax.h670 extern off_t bread(Archive_t*, void*, off_t, off_t, int);
H A Dbio.c404 * sum and convert a bread()/bget() chunk
436 bread(register Archive_t* ap, void* ob, off_t n, off_t m, int must) function
447 message((-7, "bread(%s,%I*d,%I*d) %s", ap->name, sizeof(n), n, sizeof(m), m, bstatus(ap->io)));
522 message((-7, "bread(%s,%I*d@%I*d) %s: %s", ap->name, sizeof(r), r, sizeof(ap->io->count), ap->io->count, bstatus(ap->io), show(b, r)));
524 message((-7, "bread(%s) skip(%I*d@%I*d) %s", ap->name, sizeof(r), r, sizeof(ap->io->count), ap->io->count, bstatus(ap->io)));
530 * pushback for next bread()
552 * O_RDONLY bread() n chars and return a pointer to the char buffer
770 if ((u = lseek(ap->io->fd, ap->io->offset + pos, op)) < 0 && (op != SEEK_SET || (u = pos - ap->io->count) < 0 || u > 0 && bread(ap, NiL, u, u, 1) != u || !(u += ap->io->count + ap->io->offset)))
H A Dfile.c1421 bread(ap, NiL, z, z, 0);

Completed in 104 milliseconds