Searched defs:pax (Results 1 - 25 of 26) sorted by relevance

12

/ast/src/cmd/pax/
H A Dpax-bzip.c23 * pax bzip format
29 bzip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
H A Dpax-compress.c23 * pax compress format
29 compress_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
H A Dpax-vczip.c23 * pax vczip format
29 vczip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
H A Dpax-gzip.c23 * pax gzip format
29 gzip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
H A Dpax-xz.c23 * pax xz format
29 xz_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
H A Dpax-ar.c23 * 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 Dpax-flash.c23 * pax solaris flash format
32 flash_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
65 if (!(buf = (unsigned char*)paxget(pax, ap, -PAX_DEFBUFFER * PAX_BLOCK, &n)))
74 if (paxseek(pax, ap, -(e - t - 1), SEEK_CUR, 0) < 0)
84 if (paxseek(pax, ap, -(e - s), SEEK_CUR, 0) < 0)
H A Dpax-mime.c23 * 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 Dpax-pds.c23 * pax pds format
48 pds_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
75 while ((b = (unsigned char*)paxget(pax, ap, -256, NiL)) && !b[0])
142 pds_done(Pax_t* pax, register Archive_t* ap) argument
153 pds_getheader(Pax_t* pax, register Archive_t* ap, register File_t* f) argument
176 pds_getdata(Pax_t* pax, register Archive_t* ap, register File_t* f, int wfd) argument
H A Dpax-tnef.c23 * 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 Dpax-vdb.c23 * pax vdb format
44 vdb_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
107 vdb_done(Pax_t* pax, register Archive_t* ap) argument
122 vdb_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument
164 paxsync(pax, ap, 0);
167 paxsync(pax, ap, 0);
175 vdb_putprologue(Pax_t* pax, register Archive_t* ap, int append) argument
188 paxwrite(pax, ap, sfstrbase(vdb->directory), sfstrtell(vdb->directory));
195 vdb_putheader(Pax_t* pax, Archive_t* ap, File_t* f) argument
205 paxwrite(pax, a
265 vdb_puttrailer(Pax_t* pax, Archive_t* ap, File_t* f) argument
273 vdb_putepilogue(Pax_t* pax, Archive_t* ap) argument
[all...]
H A Dpax-rpm.c23 * 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 Dpax-saveset.c23 * pax vmsbackup format
75 getsaveset(Pax_t* pax, register Archive_t* ap, register File_t* f, register Saveset_t* ss, int header) argument
90 if (paxread(pax, ap, ss->bp, (off_t)0, (off_t)state.blocksize, 0) <= 0)
120 t = f->name = paxstash(pax, &ap->stash.head, NiL, i);
183 vmsbackup_done(Pax_t* pax, register Archive_t* ap) argument
194 vmsbackup_getdata(Pax_t* pax, register Archive_t* ap, register File_t* f, int wfd) argument
213 while (getsaveset(pax, ap, f, ss, 0))
286 vmsbackup_getepilogue(Pax_t* pax, Archive_t* ap) argument
292 vmsbackup_validate(Pax_t* pax, Archive_t* ap, register File_t* f) argument
H A Dpaxlib.c24 * 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 Dpax-cpio.c23 * 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...]
H A Dpax-slt.c23 * pax slt format for ansi and ibm labeled tapes
107 getlabel(Pax_t* pax, register Archive_t* ap, register File_t* f) argument
118 if (slt->done || (c = paxread(pax, ap, slt->buf, (off_t)HDR_SIZE, (off_t)LABEL_MAX, 0)) < HDR_SIZE)
124 if (ap->io->blocked || paxread(pax, ap, slt->buf + HDR_SIZE, (off_t)0, (off_t)c, 1) != c)
150 putlabels(Pax_t* pax, register Archive_t* ap, register File_t* f, char* type) argument
158 paxwrite(pax, ap, slt->buf, 0);
166 paxwrite(pax, ap, slt->buf, HDR_SIZE);
168 paxwrite(pax, ap, slt->buf, HDR_SIZE);
169 paxwrite(pax, ap, slt->buf, 0);
180 slt_getprologue(Pax_t* pax, Format_ argument
249 slt_done(Pax_t* pax, register Archive_t* ap) argument
260 slt_getheader(Pax_t* pax, register Archive_t* ap, register File_t* f, int wfd) argument
364 slt_getdata(Pax_t* pax, register Archive_t* ap, register File_t* f, int wfd) argument
575 slt_getepilogue(Pax_t* pax, Archive_t* ap) argument
581 slt_backup(Pax_t* pax, Archive_t* ap) argument
601 slt_putprologue(Pax_t* pax, Archive_t* ap, int append) argument
655 slt_putheader(Pax_t* pax, Archive_t* ap, File_t* f) argument
664 recordout(Pax_t* pax, Archive_t* ap, File_t* f, Sfio_t* fp) argument
852 slt_putdata(Pax_t* pax, Archive_t* ap, File_t* f, int rfd) argument
938 slt_puttrailer(Pax_t* pax, Archive_t* ap, File_t* f) argument
945 slt_putepilogue(Pax_t* pax, Archive_t* ap) argument
962 slt_validate(Pax_t* pax, Archive_t* ap, register File_t* f) argument
1018 ibm_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
[all...]
H A Dpax-tar.c23 * pax { pax tar ustar } formats
533 tar_getheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument
546 if (paxread(pax, ap, &tar->header, (off_t)0, (off_t)TAR_HEADER, 0) <= 0)
578 paxunread(pax, ap, &tar->header, TAR_HEADER);
607 f->name = paxstash(pax, &ap->stash.head, NiL, TARSIZEOF(prefix) + TARSIZEOF(name) + 2);
624 f->linkpath = paxstash(pax, &ap->stash.link, tar->header.linkname, 0);
629 f->linkpath = paxstash(pax, &ap->stash.link, tar->header.linkname, 0);
660 if (!(s = paxget(pax, ap, f->st->st_size, NiL)))
677 if (!(s = paxget(pax, a
723 tar_getprologue(Pax_t* pax, Format_t* fp, register Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
742 tar_done(Pax_t* pax, register Archive_t* ap) argument
753 tar_putprologue(Pax_t* pax, register Archive_t* ap, int append) argument
761 tar_putheader(Pax_t* pax, Archive_t* ap, register File_t* f) argument
898 tar_putepilogue(Pax_t* pax, Archive_t* ap) argument
909 tar_lookup(Pax_t* pax, Archive_t* ap, File_t* f, int index, char** s, Sflong_t* n) argument
934 tar_event(Pax_t* pax, Archive_t* ap, File_t* f, void* data, unsigned long event) argument
955 pax_putprologue(Pax_t* pax, register Archive_t* ap, int append) argument
[all...]
/ast/src/cmd/paxlib/arj/
H A Darj.c23 * 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...]
/ast/src/cmd/paxlib/lha/
H A Dlha.c23 * 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...]
/ast/src/cmd/paxlib/rar/
H A Drar.c23 * 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...]
/ast/src/cmd/paxlib/ico/
H A Dico.c23 * 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...]
/ast/src/cmd/paxlib/tp/
H A Dtp.c23 * 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...]
/ast/src/cmd/paxlib/zoo/
H A Dzoo.c23 * 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...]
/ast/src/cmd/paxlib/calib/
H A Dcalib.c24 * 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/zip/
H A Dzip.c23 * 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...]

Completed in 27 milliseconds

12