Searched refs:PZ_WRITE (Results 1 - 11 of 11) sorted by relevance

/ast/src/cmd/pzip/
H A Dpzip.c236 flags &= ~(PZ_READ|PZ_WRITE|PZ_FORCE);
248 flags |= PZ_WRITE;
325 flags &= ~PZ_WRITE;
341 if ((*method)((flags & PZ_WRITE) ? sfstdout : sfstdin, 0) < 0)
351 if (testwrite && (flags & PZ_WRITE))
367 return ((flags & PZ_WRITE) && pzdeflate(pz, sfstdout) || (flags & PZ_READ) && pzinflate(pz, sfstdout)) || pzclose(pz) || error_info.errors;
H A Dpop.c570 flags |= PZ_WRITE;
/ast/src/lib/libpz/
H A Dsfdcpzip.c192 flags &= ~(PZ_READ|PZ_WRITE|PZ_STAT|PZ_STREAM|PZ_INTERNAL);
193 flags |= PZ_PUSHED|PZ_STREAM|((sfset(sp, 0, 0) & SF_READ) ? PZ_READ : PZ_WRITE);
194 if (oz && (oz->flags & PZ_WRITE))
215 if (flags & PZ_WRITE)
H A Dpzopen.c108 if (!(pz = vmnewof(vm, 0, Pz_t, 1, 0)) || !(pz->tmp = sfstropen()) || !(pz->str = sfstropen()) || (flags & PZ_WRITE) && !(pz->det = sfstropen()))
174 else if (!(pz->flags & PZ_POP) && (!(pz->flags & PZ_WRITE) && sfdcgzip(pz->io, (pz->flags & PZ_CRC) ? 0 : SFGZ_NOCRC) > 0 || (pz->flags & (PZ_PUSHED|PZ_WRITE)) == PZ_WRITE && sfdcpzip((Sfio_t*)pz, pz->path, pz->flags|PZ_FORCE|PZ_PUSHED|PZ_HANDLE, disc) > 0))
272 if ((pz->flags & PZ_WRITE) && (pz->flags & (PZ_DUMP|PZ_VERBOSE|PZ_SUMMARY)) && pz->disc->errorf && pz->count.records)
370 (*pz->disc->errorf)(pz, pz->disc, ERROR_SYSTEM|2, (pz->flags & PZ_WRITE) ? "write error" : "read error");
H A Dpzsync.c146 else if ((pz->flags & PZ_WRITE) && sfsync(op))
H A Dpzconvert.c475 vp = (pz->flags & PZ_WRITE) ? &state->from : &state->to;
488 else if (pz->flags & PZ_WRITE)
506 if (pz->flags & PZ_WRITE)
604 (*disc->errorf)(pz, disc, 0, "%s: %s checksum", pz->path, (pz->flags & PZ_WRITE) ? "generating" : "verifying");
H A Dpzip.h62 #define PZ_WRITE 0x00000002 /* open for write */ macro
H A Dpzhead.c67 if (!(pz->flags & (PZ_READ|PZ_WRITE|PZ_STAT)) && (m = pz->prefix.count))
H A Dpzwrite.c47 if (!(pz->flags & PZ_WRITE))
H A Dpzpart.c363 if (pz->flags & PZ_WRITE)
367 if (pz->flags & PZ_WRITE)
370 if (m && !(pz->flags & PZ_WRITE) && !(pz->wrk = vmnewof(pz->vm, pz->wrk, unsigned char, m, 0)))
H A Dpzdeflate.c53 if (!(pz->flags & PZ_WRITE))

Completed in 23 milliseconds