OpenBSD CVS

CVS log for src/usr.bin/compress/compress.h


[BACK] Up to [local] / src / usr.bin / compress

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:00 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 22 14:41:27 2022 UTC (18 months, 3 weeks ago) by millert
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

Add support to gunzip for zip files that contain a single member.
This matches the behavior of GNU gzip and is most useful with "gunzip
-c" to pipe the uncompressed output.  It will not decompress a file
with more than one member unless in cat mode, in which case only
the first file is displayed.

To decompress a .zip file without the -c option, "-S .zip" must be
specified. The file name stored in the .zip file is not used unless
the -N option is specified. This is consistent with GNU gzip).

Does not increase the size of gzip on the install media.
OK jmc@ for documentation.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jan 18 00:46:58 2021 UTC (3 years, 4 months ago) by mortimer
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Move definition of pmode to main.c instead of a compress.h. Avoids linker
issues with -fno-common.

ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 3 11:41:10 2016 UTC (7 years, 8 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.12: +7 -10 lines
Diff to previous 1.12 (colored)

start pulling apart some function pointers that take too many parameters
because of excessive code sharing. compression and decompression are not
entirely similar, they should share less.
ok joerg millert

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 22 10:41:04 2011 UTC (12 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

Remove the rcsid which were intentionally skipped in the "purge of 2009"
because the -V command printed them... gut the -V (and -L, while there)
to be silent.
ok miod jsg

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 7 17:37:37 2008 UTC (15 years, 9 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

spacing.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 27 13:15:31 2008 UTC (15 years, 9 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.9: +6 -7 lines
Diff to previous 1.9 (colored)

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok pyr@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jul 5 21:00:38 2008 UTC (15 years, 10 months ago) by sobrado
Branch: MAIN
Changes since 1.8: +8 -1 lines
Diff to previous 1.8 (colored)

each utility must have its own usage and an unique set of options.

diff written by millert based on a previous one by me;
millert's diff has a much better style and adds support for different
sets of options for each utility.

ok millert@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 26 18:20:26 2005 UTC (18 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.7: +8 -4 lines
Diff to previous 1.7 (colored)

be a bit more carefull not writing to the stream after the timestamps
have been set. ok deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 5 04:46:35 2003 UTC (20 years, 8 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.6: +9 -2 lines
Diff to previous 1.6 (colored)

add a null compressor from canacar@ that lets gzcat work with uncompressed
files.
also introduce SMALLness that removes null and Z compressors to save floppy
space.
ok deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 17 20:06:01 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.5: +23 -10 lines
Diff to previous 1.5 (colored)

o implement -l, -n and -N (including setting outfile + mtime)
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

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 11 02:31:18 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Move magic number checking into main.c and make it work when
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@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 3 21:08:36 2003 UTC (20 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.3: +1 -6 lines
Diff to previous 1.3 (colored)

three four kills

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 8 16:07:54 2002 UTC (21 years, 5 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.2: +18 -3 lines
Diff to previous 1.2 (colored)

grop long option names, like gzip.
add most of the gzip's options (a few unimplemented yet).
some cleaning, etc.
millert@ ok

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:45 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.1: +13 -13 lines
Diff to previous 1.1 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 6 20:22:56 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2

do gzip

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.