80e770cf63
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
33 lines
707 B
C
33 lines
707 B
C
/*
|
|
* manpath.h
|
|
*
|
|
* Copyright (c) 1990, 1991, John W. Eaton.
|
|
*
|
|
* You may distribute under the terms of the GNU General Public
|
|
* License as specified in the file COPYING that comes with the man
|
|
* distribution.
|
|
*
|
|
* John W. Eaton
|
|
* jwe@che.utexas.edu
|
|
* Department of Chemical Engineering
|
|
* The University of Texas at Austin
|
|
* Austin, Texas 78712
|
|
*/
|
|
|
|
typedef struct
|
|
{
|
|
char mandir[MAXPATHLEN];
|
|
char bin[MAXPATHLEN];
|
|
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];
|