Lines Matching defs:pax
23 * pax { asc aschk binary cpio } formats
165 putxops(Pax_t* pax, Archive_t* ap, register File_t* f)
171 paxwrite(pax, ap, f->name, f->namesize -= n);
173 paxwrite(pax, ap, cpio->ops = cpio->opsbuf, n);
240 cpio_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size)
250 cpio_common(Pax_t* pax, register Archive_t* ap, register File_t* f, int align, int header)
280 f->name = paxstash(pax, &ap->stash.head, NiL, f->namesize + align);
281 paxread(pax, ap, f->name, (off_t)0, (off_t)(f->namesize + align), 1);
284 paxunread(pax, ap, &f->name[f->namesize - 1], 1);
319 f->linkpath = paxstash(pax, &ap->stash.link, NiL, f->st->st_size);
322 while (paxread(pax, ap, s, (off_t)1, (off_t)1, 1) > 0)
342 cpio_done(Pax_t* pax, register Archive_t* ap)
353 cpio_getheader(Pax_t* pax, Archive_t* ap, register File_t* f)
357 if (paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)CPIO_HEADER, 0) <= 0)
382 return cpio_common(pax, ap, f, CPIO_ALIGN, CPIO_HEADER);
384 paxunread(pax, ap, state.tmp.buffer, CPIO_HEADER);
389 cpio_getepilogue(Pax_t* pax, register Archive_t* ap)
402 cpio_putprologue(Pax_t* pax, Archive_t* ap, int append)
408 cpio_putheader(Pax_t* pax, Archive_t* ap, register File_t* f)
452 paxwrite(pax, ap, state.tmp.buffer, CPIO_HEADER);
454 putxops(pax, ap, f);
456 paxwrite(pax, ap, f->name, f->namesize);
462 paxwrite(pax, ap, f->linkpath, f->linkpathsize);
469 cpio_putepilogue(Pax_t* pax, Archive_t* ap)
478 cpio_event(Pax_t* pax, Archive_t* ap, File_t* f, void* data, unsigned long event)
486 * compensate for a pre 19951031 pax bug
490 if (f->st->st_size == f->linkpathsize && paxread(pax, ap, state.tmp.buffer, (off_t)0, n = f->st->st_size + 6, 0) > 0)
492 paxunread(pax, ap, state.tmp.buffer, n);
513 asc_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size)
523 asc_getheader(Pax_t* pax, Archive_t* ap, register File_t* f)
527 if (paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)ASC_HEADER, 0) <= 0)
556 return cpio_common(pax, ap, f, ASC_ALIGN, ASC_HEADER);
558 paxunread(pax, ap, state.tmp.buffer, ASC_HEADER);
563 asc_putheader(Pax_t* pax, Archive_t* ap, register File_t* f)
586 paxwrite(pax, ap, state.tmp.buffer, ASC_HEADER);
587 paxwrite(pax, ap, f->name, f->namesize);
590 paxwrite(pax, ap, "", 1);
595 aschk_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size)
605 aschk_getheader(Pax_t* pax, Archive_t* ap, register File_t* f)
609 if (paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)ASC_HEADER, 0) <= 0)
638 return cpio_common(pax, ap, f, ASC_ALIGN, ASC_HEADER);
640 paxunread(pax, ap, state.tmp.buffer, ASC_HEADER);
645 aschk_checksum(Pax_t* pax, Archive_t* ap, File_t* f, void* ab, size_t n, register unsigned long sum)
704 binary_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size)
718 binary_getheader(Pax_t* pax, Archive_t* ap, register File_t* f)
722 if (paxread(pax, ap, &hdr, (off_t)BINARY_HEADER, (off_t)BINARY_HEADER, 0) <= 0)
742 return cpio_common(pax, ap, f, CPIO_ALIGN, CPIO_HEADER);
744 paxunread(pax, ap, state.tmp.buffer, CPIO_HEADER);
749 binary_putheader(Pax_t* pax, Archive_t* ap, register File_t* f)
769 paxwrite(pax, ap, &hdr, BINARY_HEADER);
770 paxwrite(pax, ap, f->name, f->namesize);
773 paxwrite(pax, ap, "", 1);
778 paxwrite(pax, ap, f->linkpath, f->linkpathsize);
785 binary_validate(Pax_t* pax, Archive_t* ap, File_t* f)