summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2004-08-30 14:36:51 +0000
committerdsl <dsl@NetBSD.org>2004-08-30 14:36:51 +0000
commitd55b8a219009ead8fd52bed03a6f9559595c9fd8 (patch)
tree3f13caafcd7949260bc659e907b5251a8c7960f8 /sys/dev
parent97f53cf022f6b2af34ac1ff40301b23498773222 (diff)
Redo suffix handling so that gunzip xxx.tgx => xxx.tar
Rework logic of gz_{un}compress to make it much less likely to leak fds (at least 2 non-error paths leaked them!) Make -S ".xyz" and -S "" both do something sensible. Make in-situ compression work - only lose the file on error. Pass an open fd to zopen (renamed zdopen) to avoid fd leakage (was badly borked) Write header into first 64k output block to writes are aligned. (more efficient and might avoid some problem with code that doesn't like receiving partial buffers) Check file size on compression - double checks against fs full. Remove some pointless casts, and otherwise simplify some logic.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions