summaryrefslogtreecommitdiff
path: root/usr.bin/compress
AgeCommit message (Collapse)Author
2003-08-05spacingTheo de Raadt
2003-08-03gnu gzip dir is now bye byeTheo de Raadt
2003-08-03protosTheo de Raadt
2003-08-02A new, BSD licensed znew(1). Some suggestions from krw@ and millert@.Otto Moerbeek
ok millert@ krw@
2003-08-02Manual page for a new, BSD licensed znew(1).Otto Moerbeek
ok jmc@ millert@ krw@
2003-08-02Better description of how uncompressed file name is generated.Todd C. Miller
OK jmc@
2003-08-01cleanup;Jason McIntyre
ok millert@
2003-07-31Wrap a long lineOtto Moerbeek
ok deraadt@
2003-07-31Welcome BSD gzexe(1).Otto Moerbeek
ok deraadt@
2003-07-31A new, BSD licensed gzexe(1).Otto Moerbeek
ok millert@ krw@
2003-07-31The manual page for the new, BSD licensed gzexe(1).Otto Moerbeek
ok jmc@ millert@ krw@
2003-07-29Instead of checking for "stdout" in decompress(), just do the checkTodd C. Miller
in list_stats(). Looks cleaner and we don't have to rely on any special flags being set.
2003-07-29Bye bye GNU zforce(1), welcome BSD zforce(1).Otto Moerbeek
2003-07-29BSD licensed manual page for zforce(1). Some suggestions by jmc@.Otto Moerbeek
ok jmc@
2003-07-29Add $OpenBSD$Otto Moerbeek
ok millert@
2003-07-29A new, BSD licensed version of the zforce(1) script.Otto Moerbeek
ok millert@ deraadt@
2003-07-29Check cat, not pipin when deciding whether or not to make useTodd C. Miller
"stdout" as the filename in -l mode. Fixes "gzip -lN < foo.gz"
2003-07-27Return FAILURE for "file would grow" case so the .gz file gets removed.Todd C. Miller
Problem noticed by otto@
2003-07-25o deal with the case where -N was specified but no saved mtime in the gz fileTodd C. Miller
o a filename in the header should turn off cat mode if -N o make setmode() be smart about pipin and not set outfile based on /dev/stdin. mickey@ OK
2003-07-20document exit valuesTodd C. Miller
2003-07-18Previously, "cat" mode (ie: zcat) was set if no input file was specified,Todd C. Miller
and input was read from the standard input. However, if the -o option is specified, we don't need (or want) cat mode since the user has told us where the output should go.
2003-07-18Change "nosave" back into a boolean for improved grokability.Todd C. Miller
It is now initialized to -1 and, if the user did not specify the -n or -N flags, is set equal to "decomp". In other words, unless overridden via -n/-N, it is false when compressing, and true when decompressing (which is what we want).
2003-07-17two calls is less than a loop for two; millert@ okMichael Shalayeff
2003-07-17o implement -l, -n and -N (including setting outfile + mtime)Todd C. Miller
o make -v behave like GNU gzip for compress/decompress stats o write a full gzip header w/ mtime and file name o for -t/-l just don't write data instead of writing to /dev/null o exit code is now more consistent with GNU gzip o a crc error on decompress no longer causes unlink(outfile) mickey@ OK
2003-07-15Don't compress a file that already has a known compression prefix.Todd C. Miller
This matches GNU gzip behavior.
2003-07-14Improved (and cleaner) suffix handling code. Now "gunzip foo.tgz"Todd C. Miller
works as expected. mickey@ OK
2003-07-14-t and implied -c due to piped in input is a legal combination of flagsMichael Shalayeff
2003-07-13Small tweaks from jmc@Todd C. Miller
o correct filename for stdin o fix "the the" o remove width from dash list (unused) o -compact for FILES list
2003-07-13Install zdiff.1; noted by marc@Todd C. Miller
2003-07-12Add zdiffTodd C. Miller
2003-07-11No longer need to assume -g when reading from stdin.Todd C. Miller
2003-07-11Move magic number checking into main.c and make it work whenTodd C. Miller
decompressing from a pipe. Currently assumes that magic numbers are 2 bytes but this is relatively easy to change as needed in the future. Discussed w/ mickey@
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-07-08fix fd closing logicand close in gzopen(); found by wilfried@ and millert@ okMichael Shalayeff
2003-06-30Make usage() take the exit val are an argument and have the -h flagTodd C. Miller
use this to exit(0), not exit(1). Some configure/install sqcripts check for the existence of gzip by running "gzip -h" and checking the subshell's exit value. Noticed by naddy@
2003-06-29Return EINVAL on crc failure for gzip and make the driver programTodd C. Miller
interpret this correctly. Makes "gzip -t" more useful. Discussed with deraadt@
2003-06-27Fix bug in put_int32() on big endian cpus; deraadt@ OKTodd C. Miller
2003-06-27Fix -t mode; it needs to set decomp=1 tooTodd C. Miller
2003-06-23some cleanupsTheo de Raadt
2003-06-23- further document differences between compress and gzipJason McIntyre
- document -[1-9] mode for gzip - add relevant RFCs to SEE ALSO ok mickey@ deraadt@ millert@
2003-06-23sort .Xr's in SEE ALSO;Jason McIntyre
2003-06-23Fix a typo in my last commit and convert file "-" to /dev/stdin likeTodd C. Miller
GNU gzip does.
2003-06-23install zmoreTodd C. Miller
2003-06-23Make zmore read from stdin when no files are specified and try toTodd C. Miller
ascertain wether or not we have a tty. Also add a skeleton manual page.
2003-06-23When trying to cat a non-file, say "foo not a regular file" instead ofTodd C. Miller
"foo not a regular file: unchanged" since we never change the file in cat mode.
2003-06-23Add a simple zmore; man page and Makefile changes to be added laterTodd C. Miller
2003-06-22man page changes from jmc: use this as gzip tooTheo de Raadt
2003-06-22knf and ansiTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@