Lines Matching refs:ar
111 register Ar_t* ar = (Ar_t*)ap->data;
113 if (!ar || !ar->vm)
115 vmclose(ar->vm);
123 register Ar_t* ar;
137 if (!(ar = vmnewof(vm, 0, Ar_t, 1, 0)))
142 ap->data = ar;
143 ar->vm = vm;
144 ar->memdisc.key = offsetof(Mem_t, name);
149 if (!(ar->mem = dtnew(ar->vm, &ar->memdisc, Dtset)))
161 ar->end = pos;
165 if (!(mem = vmnewof(ar->vm, 0, Mem_t, 1, n)))
196 dtinsert(ar->mem, mem);
205 ar->pax = pax;
206 ar->ap = ap;
207 codexinit(&ar->codexdisc, pax->errorf);
214 register Ar_t* ar = (Ar_t*)ap->data;
263 if (ar->mem && (mem = (Mem_t*)dtmatch(ar->mem, f->name)))
267 ar->checksum = mem->checksum;
273 ar->checksum = swapget(3, &hdr[ZIP_LOC_CRC], 4);
277 i += sfsprintf(ar->method, sizeof(ar->method), "crypt-zip+SIZE=%I*u|", sizeof(f->st->st_size), f->st->st_size);
279 i += sfsprintf(ar->method + i, sizeof(ar->method) - i, "copy");
281 i += sfsprintf(ar->method + i, sizeof(ar->method) - i, "zip-%u+SIZE=%I*u", m, sizeof(f->uncompressed), f->uncompressed);
282 sfsprintf(ar->method + i, sizeof(ar->method) - i, "|%s", SUM);
284 (*pax->errorf)(NiL, pax, -1, "archive=%s name=%s method=%s", ap->name, f->name, ar->method);
296 if (paxseek(pax, ap, (off_t)0, SEEK_CUR, 0) == ar->end)
307 register Ar_t* ar = (Ar_t*)ap->data;
323 if ((pop = codex(sp, NiL, ar->method, 0, &ar->codexdisc, NiL)) < 0)
324 (*pax->errorf)(NiL, pax, 2, "%s: %s: cannot decode method %s", ap->name, f->name, ar->method);
338 else if (!paxchecksum(pax, ap, f, ar->checksum, sum.num))