/ast/src/cmd/pax/ |
H A D | Makefile | 7 pax :: RELEASE HISTORY PROMO.mm pax.1.posix \ 8 pax.h options.h \ 9 bio.c convert.c copy.c pax.c options.c \ 11 pax-ar.c pax-bzip.c pax-compress.c \ 12 pax-cpio.c pax-delta.c pax [all...] |
H A D | paxlib.c | 24 * pax pax external library support 27 #include "pax.h" 50 paxdata(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, int fd, void* b, off_t n) argument 56 paxget(Pax_t* pax, Paxarchive_t* ap, off_t n, off_t* p) argument 62 paxput(Pax_t* pax, Paxarchive_t* ap, off_t n) argument 69 paxread(Pax_t* pax, Paxarchive_t* ap, void* b, off_t n, off_t m, int must) argument 75 paxseek(Pax_t* pax, Paxarchive_t* ap, off_t pos, int op, int hard) argument 81 paxstash(Pax_t* pax, Value_t* v, const char* s, size_t z) argument 87 paxsync(Pax_t* pax, Paxarchive_ argument 97 paxunread(Pax_t* pax, Paxarchive_t* ap, void* b, off_t n) argument 104 paxwrite(Pax_t* pax, Paxarchive_t* ap, const void* b, off_t n) argument 111 paxnext(Pax_t* pax, Paxarchive_t* ap, size_t c, size_t n) argument 118 paxcorrupt(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, const char* msg) argument 125 paxchecksum(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, unsigned long expected, unsigned long value) argument 139 paxnospace(Pax_t* pax) argument 176 paxpart(Pax_t* pax, Paxarchive_t* ap, off_t n) argument 218 paxinit(register Pax_t* pax, const char* id) argument [all...] |
H A D | pax-mime.c | 23 * pax mime format 38 mime_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 46 if (paxread(pax, ap, s, (off_t)0, (off_t)MIME_HEADER, 0) <= 0) 48 paxunread(pax, ap, s, MIME_HEADER); 64 paxread(pax, ap, NiL, (off_t)0, n, 0); 69 mime_done(Pax_t* pax, register Archive_t* ap) argument 80 mime_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 91 if (paxread(pax, ap, s = state.tmp.buffer, mime->length + 2, mime->length + 2, 1) <= 0 || memcmp(s, mime->magic, mime->length)) 95 while (paxread(pax, ap, s, 1, 1, 1) > 0 && *s != '\n'); 99 paxunread(pax, a [all...] |
H A D | delta2patch.sh | 27 [+NAME?delta2patch - generate patch script from pax delta+base archives] 56 changes=$(pax --nosummary -f $delta 2>/dev/null | sed -e '/^\(update\|create\) /!d' -e 's/^[^ ]* //') 60 pax --nosummary -rf $base -s ",.*,$tmp/old/&," $changes 61 pax --nosummary -rf $delta -z $base -s ",.*,$tmp/new/&," $changes
|
H A D | rpm2cpio.sh | 20 : rpm2cpio wrapper for pax 73 $show pax $options -r -f "$input" -w -x cpio
|
H A D | pax-rpm.c | 23 * pax rpm format 74 rpm_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 98 paxread(pax, ap, NiL, (off_t)sizeof(magic), (off_t)sizeof(magic), 0); 99 if (paxread(pax, ap, &lead_old, (off_t)sizeof(lead_old), (off_t)sizeof(lead_old), 0) <= 0) 103 if (paxseek(pax, ap, (off_t)lead_old.archoff, SEEK_SET, 0) != (off_t)lead_old.archoff) 113 paxread(pax, ap, NiL, (off_t)sizeof(magic), (off_t)sizeof(magic), 0); 114 if (paxread(pax, ap, &lead, (off_t)sizeof(lead), (off_t)sizeof(lead), 0) <= 0) 133 if (paxread(pax, ap, NiL, (off_t)num, (off_t)num, 0) <= 0) 142 if (paxread(pax, ap, zip, (off_t)sizeof(zip), (off_t)sizeof(zip), 0) <= 0) 149 paxunread(pax, a [all...] |
H A D | pax-ar.c | 23 * pax ar library format 37 ar_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, register File_t* f, unsigned char* buf, size_t size) argument 57 ar_done(Pax_t* pax, register Archive_t* ap) argument 72 ar_getheader(Pax_t* pax, register Archive_t* ap, register File_t* f) argument 80 return (pos < 0 || paxseek(pax, ap, pos, SEEK_SET, 0) != pos) ? -1 : 0; 100 ar_getdata(Pax_t* pax, register Archive_t* ap, register File_t* f, int wfd) argument 123 ar_getepilogue(Pax_t* pax, Archive_t* ap) argument
|
H A D | pax-tnef.c | 23 * pax tnef format 39 tnef_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 47 if ((ap->swap = swapop(&magic, buf, 4)) < 0 || paxread(pax, ap, NiL, (off_t)6, (off_t)6, 0) != 6) 57 tnef_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 74 *(f->name = paxstash(pax, &ap->stash.head, NiL, PATH_MAX)) = 0; 84 while (paxread(pax, ap, s = state.tmp.buffer, (off_t)0, (off_t)9, 0) > 0) 101 tnef->offset = paxseek(pax, ap, (off_t)0, SEEK_CUR, 0); 109 if (!(s = paxget(pax, ap, part, NiL))) 117 if (!(s = paxget(pax, ap, size + 2, NiL))) 132 tnef->offset = paxseek(pax, a 219 tnef_done(Pax_t* pax, register Archive_t* ap) argument 230 tnef_gettrailer(Pax_t* pax, Archive_t* ap, File_t* f) argument [all...] |
H A D | pax-cpio.c | 23 * pax { asc aschk binary cpio } formats 165 putxops(Pax_t* pax, Archive_t* ap, register File_t* f) argument 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) argument 250 cpio_common(Pax_t* pax, register Archive_t* ap, register File_t* f, int align, int header) argument 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, 342 cpio_done(Pax_t* pax, register Archive_t* ap) argument 353 cpio_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 389 cpio_getepilogue(Pax_t* pax, register Archive_t* ap) argument 402 cpio_putprologue(Pax_t* pax, Archive_t* ap, int append) argument 408 cpio_putheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 469 cpio_putepilogue(Pax_t* pax, Archive_t* ap) argument 478 cpio_event(Pax_t* pax, Archive_t* ap, File_t* f, void* data, unsigned long event) argument 513 asc_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 523 asc_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 563 asc_putheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 595 aschk_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 605 aschk_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 645 aschk_checksum(Pax_t* pax, Archive_t* ap, File_t* f, void* ab, size_t n, register unsigned long sum) argument 704 binary_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument 718 binary_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 749 binary_putheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument 785 binary_validate(Pax_t* pax, Archive_t* ap, File_t* f) argument [all...] |
/ast/src/cmd/paxlib/zip/ |
H A D | zip.c | 23 * pax zip format 89 Pax_t* pax; member in struct:Ar_s 109 zip_done(Pax_t* pax, register Paxarchive_t* ap) argument 121 zip_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 136 return paxnospace(pax); 140 return paxnospace(pax); 145 if (paxseek(pax, ap, -(off_t)ZIP_END_HEADER, SEEK_END, 1) > 0 && 146 (hdr = paxget(pax, ap, ZIP_END_HEADER, NiL)) && 151 zip_done(pax, ap); 152 return paxnospace(pax); 212 zip_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 305 zip_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |
H A D | Makefile | 7 zip 2.1 plugin=pax :LIBRARY: zip.c -lcodex
|
/ast/src/cmd/paxlib/ico/ |
H A D | ico.c | 23 * pax ico format 72 ico_done(Pax_t* pax, register Paxarchive_t* ap) argument 88 ico_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, register unsigned char* p, size_t size) argument 98 if (paxseek(pax, ap, ICO_HEADER, SEEK_SET, 1) != ICO_HEADER) 103 return paxnospace(pax); 107 if (paxread(pax, ap, ico->dir, n, n, 0) <= 0) 118 ico_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 143 f->st->st_uid = pax->uid; 144 f->st->st_gid = pax->gid; 148 if (paxseek(pax, a 154 ico_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument 186 ico_putprologue(Pax_t* pax, register Paxarchive_t* ap, int append) argument 205 ico_putheader(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f) argument 211 ico_putdata(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, int fd) argument 284 ico_putepilogue(Pax_t* pax, Paxarchive_t* ap) argument [all...] |
H A D | Makefile | 7 ico plugin=pax :LIBRARY: ico.c
|
/ast/src/cmd/paxlib/zoo/ |
H A D | zoo.c | 23 * pax zoo format 40 Pax_t* pax; member in struct:Ar_s 53 zoo_done(Pax_t* pax, register Paxarchive_t* ap) argument 65 zoo_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 75 return paxnospace(pax); 77 ar->pax = pax; 85 zoo_done(pax, ap); 86 return paxcorrupt(pax, ap, NiL, "unexpected EOF"); 88 codexinit(&ar->codexdisc, pax 93 zoo_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 256 zoo_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |
H A D | Makefile | 7 zoo 2.10 plugin=pax :LIBRARY: zoo.c -lcodex
|
/ast/src/cmd/paxlib/arj/ |
H A D | arj.c | 23 * pax arj format 38 Pax_t* pax; member in struct:Ar_s 50 arj_done(Pax_t* pax, register Paxarchive_t* ap) argument 64 arj_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 76 return paxnospace(pax); 77 ar->pax = pax; 80 codexinit(&ar->codexdisc, pax->errorf); 95 if (paxseek(pax, ap, n + 8, SEEK_SET, 0) < 0) 97 while ((s = paxget(pax, a 107 arj_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 194 arj_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |
H A D | Makefile | 7 arj 3.10 plugin=pax :LIBRARY: arj.c -lcodex
|
/ast/src/cmd/paxlib/rar/ |
H A D | rar.c | 23 * pax rar format 36 Pax_t* pax; member in struct:Ar_s 47 rar_done(Pax_t* pax, register Paxarchive_t* ap) argument 61 rar_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 71 return paxnospace(pax); 74 ar->pax = pax; 76 codexinit(&ar->codexdisc, pax->errorf); 77 ar->codexdisc.passphrase = pax->passphrase; 81 rar_done(pax, a 88 rar_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 207 rar_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |
H A D | Makefile | 7 rar 3.0 plugin=pax :LIBRARY: rar.c -lcodex
|
/ast/src/cmd/paxlib/lha/ |
H A D | lha.c | 23 * pax lha format 37 Pax_t* pax; member in struct:Ar_s 54 lha_done(Pax_t* pax, register Paxarchive_t* ap) argument 66 lha_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 83 return paxnospace(pax); 85 ar->pax = pax; 87 codexinit(&ar->codexdisc, pax->errorf); 97 lha_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument 110 if (paxread(pax, a 196 lha_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |
H A D | Makefile | 7 lha plugin=pax :LIBRARY: lha.c -lcodex
|
/ast/src/cmd/paxlib/calib/ |
H A D | Makefile | 7 calib 2.1 plugin=pax :LIBRARY: calib.c -lcodex
|
H A D | calib.c | 24 * pax calib format 261 calib_done(Pax_t* pax, register Paxarchive_t* ap) argument 278 calib_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 294 else if (paxread(pax, ap, hdr, (off_t)sizeof(hdr), (off_t)sizeof(hdr), 0) <= 0) 297 paxunread(pax, ap, hdr, sizeof(hdr)); 302 paxnospace(pax); 313 if (paxseek(pax, ap, n, SEEK_SET, 1) != n) 314 (*pax->errorf)(NiL, pax, 3, "%s: %s format block header seek error", ap->name, ap->format->name); 315 if (paxread(pax, a 359 calib_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int wfd) argument 736 calib_getheader(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f) argument [all...] |
/ast/src/cmd/paxlib/tp/ |
H A D | Makefile | 7 tp plugin=pax :LIBRARY: tp.c
|
H A D | tp.c | 23 * pax tp format 55 Pax_t* pax; member in struct:Ar_s 64 tp_done(Pax_t* pax, register Paxarchive_t* ap) argument 77 tp_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size) argument 97 return paxnospace(pax); 98 if (paxread(pax, ap, NiL, PAX_BLOCK, 0, 0) != PAX_BLOCK || paxread(pax, ap, ar->dir, n, 0, 0) != n) 106 ar->pax = pax; 113 tp_getheader(Pax_t* pax, registe argument 151 tp_getdata(Pax_t* pax, register Paxarchive_t* ap, register Paxfile_t* f, int fd) argument [all...] |