summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-09-03 18:08:27 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-09-03 18:08:27 +0000
commit2dbfdf16737db51001d6a75042ed25ba8bcaea06 (patch)
treeecd16298f5d5fa46d497cf6c24d503df869eab88 /usr.bin/mandoc/mansearch.h
parent84376fdb94d04453466a113db08ae41ac993c794 (diff)
If a manual page is installed gzip(1)ed, let makewhatis(8) take
note in mandoc.db(5), such that man(1) -w and apropos(1) -w can report the correct filename. This is a prerequisite for letting apropos -a and man support gzip'ed manuals in the future, which doesn't work yet.
Diffstat (limited to 'usr.bin/mandoc/mansearch.h')
-rw-r--r--usr.bin/mandoc/mansearch.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mansearch.h b/usr.bin/mandoc/mansearch.h
index a24f9302105..fc8b46b7e1e 100644
--- a/usr.bin/mandoc/mansearch.h
+++ b/usr.bin/mandoc/mansearch.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mansearch.h,v 1.13 2014/09/01 22:45:11 schwarze Exp $ */
+/* $OpenBSD: mansearch.h,v 1.14 2014/09/03 18:08:26 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -68,6 +68,11 @@
#define NAME_HEAD 0x0000004000000010ULL
#define NAME_MASK 0x000000000000001fULL
+#define FORM_CAT 0 /* manual page is preformatted */
+#define FORM_SRC 1 /* format is mdoc(7) or man(7) */
+#define FORM_GZ 2 /* compressed with gzip(1) */
+#define FORM_NONE 4 /* format is unknown */
+
enum argmode {
ARG_FILE = 0,
ARG_NAME,