From fae643c5795db2d9bf031c6db8a70ba8d6978c62 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Sun, 26 Mar 2000 15:10:37 +0000 Subject: [PATCH] Add DIAGNOSTICS section name. Spelling --- usr.bin/compress/compress.1 | 12 ++++++------ usr.bin/compress/compress.c | 9 ++++++--- usr.bin/compress/zopen.3 | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1 index 075052f06cf..69c28738293 100644 --- a/usr.bin/compress/compress.1 +++ b/usr.bin/compress/compress.1 @@ -91,7 +91,7 @@ reduction in size and file overwriting are not performed, the input file is not removed, and the attributes of the input file are not retained. .Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width indent .It Fl b Specify the .Ar bits @@ -122,13 +122,13 @@ must be between 9 and 16. After the .Ar bits limit is reached, -.Nm compress +.Nm periodically checks the compression ratio. If it is increasing, -.Nm compress +.Nm continues to use the existing code dictionary. However, if the compression ratio decreases, -.Nm compress +.Nm discards the table of substrings and rebuilds it from scratch. This allows the algorithm to adapt to the next "block" of the file. .Pp @@ -153,9 +153,9 @@ Compression is generally much better than that achieved by Huffman coding (as used in the historical command pack), or adaptive Huffman coding (as used in the historical command compact), and takes less time to compute. -.Pp +.Sh DIAGNOSTICS The -.Nm compress +.Nm utility exits 0 on success, and >0 if an error occurs. .Sh SEE ALSO .Rs diff --git a/usr.bin/compress/compress.c b/usr.bin/compress/compress.c index e81963527cb..9cabf104c5d 100644 --- a/usr.bin/compress/compress.c +++ b/usr.bin/compress/compress.c @@ -38,11 +38,14 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; +#if 0 +static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include -#include #include #include @@ -373,7 +376,7 @@ setfile(name, fs) fs->st_mode &= ~(S_ISUID|S_ISGID); } if (chmod(name, fs->st_mode)) - cwarn("chown: %s", name); + cwarn("chmod: %s", name); if (chflags(name, fs->st_flags)) cwarn("chflags: %s", name); diff --git a/usr.bin/compress/zopen.3 b/usr.bin/compress/zopen.3 index f97ebde61fb..e8b702b69db 100644 --- a/usr.bin/compress/zopen.3 +++ b/usr.bin/compress/zopen.3 @@ -87,7 +87,7 @@ The argument, if non-zero, is set to the bits code limit. If zero, the default is 16. See -.Fn compress 1 +.Xr compress 1 for more information. .Sh RETURN VALUES Upon successful completion