summaryrefslogtreecommitdiffstats
path: root/usr.bin/compress
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-03-26 15:10:37 +0000
committercharnier <charnier@FreeBSD.org>2000-03-26 15:10:37 +0000
commit20156c595569d2cac470c2472050c9ec8d9f2393 (patch)
treea5cc99712e75a5e266b39d00584dd5312e40eb50 /usr.bin/compress
parent7493210c173d84463b654b3359a44929bba1cf56 (diff)
downloadFreeBSD-src-20156c595569d2cac470c2472050c9ec8d9f2393.zip
FreeBSD-src-20156c595569d2cac470c2472050c9ec8d9f2393.tar.gz
Add DIAGNOSTICS section name. Spelling
Diffstat (limited to 'usr.bin/compress')
-rw-r--r--usr.bin/compress/compress.112
-rw-r--r--usr.bin/compress/compress.c9
-rw-r--r--usr.bin/compress/zopen.32
3 files changed, 13 insertions, 10 deletions
diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1
index 075052f..69c2873 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 e819635..9cabf10 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 <sys/param.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <err.h>
@@ -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 f97ebde..e8b702b 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
OpenPOWER on IntegriCloud