Searched refs:PZ_WRITE (Results 1 - 11 of 11) sorted by relevance
/ast/src/cmd/pzip/ |
H A D | pzip.c | 236 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 D | pop.c | 570 flags |= PZ_WRITE;
|
/ast/src/lib/libpz/ |
H A D | sfdcpzip.c | 192 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 D | pzopen.c | 108 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 D | pzsync.c | 146 else if ((pz->flags & PZ_WRITE) && sfsync(op))
|
H A D | pzconvert.c | 475 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 D | pzip.h | 62 #define PZ_WRITE 0x00000002 /* open for write */ macro
|
H A D | pzhead.c | 67 if (!(pz->flags & (PZ_READ|PZ_WRITE|PZ_STAT)) && (m = pz->prefix.count))
|
H A D | pzwrite.c | 47 if (!(pz->flags & PZ_WRITE))
|
H A D | pzpart.c | 363 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 D | pzdeflate.c | 53 if (!(pz->flags & PZ_WRITE))
|
Completed in 23 milliseconds