From 80e770cf633bb4bb205ab3523c1c1c046df4c130 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 16 Aug 1999 11:34:57 +0000 Subject: - Add an OPTIONAL_MANPATH directive (same as MANDATORY_MANPATH, except an absence of the directory is not considered an error and doesn't produce a warning). Put /usr/local/lib/perl5/*/man under OPTIONAL_MANPATH. - An order of directives in manpath.config is now irrelevant. - Get rid of infinite loop when PATH is unset or NULL, and MANDATORY_MANPATH directory doesn't exist. - mdoc(9)ify manpage. Reviewed by: des, markm, sheldonh --- gnu/usr.bin/man/manpath/manpath.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/man/manpath/manpath.h') diff --git a/gnu/usr.bin/man/manpath/manpath.h b/gnu/usr.bin/man/manpath/manpath.h index 3039bd91ef91..ab6eb0ef6a98 100644 --- a/gnu/usr.bin/man/manpath/manpath.h +++ b/gnu/usr.bin/man/manpath/manpath.h @@ -18,9 +18,15 @@ typedef struct { char mandir[MAXPATHLEN]; char bin[MAXPATHLEN]; - int mandatory; + int type; } DIRLIST; +/* manpath types */ +#define MANPATH_NONE 0 +#define MANPATH_MANDATORY 1 /* manpath is mandatory */ +#define MANPATH_OPTIONAL 2 /* manpath is optional */ +#define MANPATH_MAP 3 /* maps path to manpath */ + DIRLIST list[MAXDIRS]; char *tmplist[MAXDIRS]; -- cgit v1.2.3