From 248398820acb6a81f0d92b7a33dc1e449dda483b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 3 Sep 2014 18:09:14 +0000 Subject: 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. --- mansearch.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mansearch.h') diff --git a/mansearch.h b/mansearch.h index 6cc6f410..0aab4e76 100644 --- a/mansearch.h +++ b/mansearch.h @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.17 2014/09/01 22:45:53 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.18 2014/09/03 18:09:14 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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, -- cgit v1.2.3