summaryrefslogtreecommitdiff
path: root/usr.bin/compress/compress.h
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2008-07-05 21:00:39 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2008-07-05 21:00:39 +0000
commitd6fb5300496565d8de2180a468c783fdf382085a (patch)
tree7e41be161c0b4109e52db828616f4c71da9dce18 /usr.bin/compress/compress.h
parentb6b1220e381f37313983becedd054f288b95ba47 (diff)
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@
Diffstat (limited to 'usr.bin/compress/compress.h')
-rw-r--r--usr.bin/compress/compress.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/compress/compress.h b/usr.bin/compress/compress.h
index 8eca5a209f2..3a7b635b715 100644
--- a/usr.bin/compress/compress.h
+++ b/usr.bin/compress/compress.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress.h,v 1.8 2005/06/26 18:20:26 otto Exp $ */
+/* $OpenBSD: compress.h,v 1.9 2008/07/05 21:00:38 sobrado Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -44,6 +44,13 @@ struct z_info {
#define Z_BUFSIZE 16384
/*
+ * program modes
+ */
+#define MODE_COMP 0
+#define MODE_DECOMP 1
+#define MODE_CAT 2
+
+/*
* exit codes for compress
*/
#define SUCCESS 0