freebsd-dev/gnu/usr.bin/man/manpath/manpath.h
Ruslan Ermilov 80e770cf63 - 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
1999-08-16 11:34:57 +00:00

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];