4 * If you haven't read the README file, now might be a good time.
6 * Sorry it's so long, but there are lots of things you might want to
7 * customize for your site.
9 * Copyright (c) 1990, 1991, John W. Eaton.
11 * You may distribute under the terms of the GNU General Public
12 * License as specified in the file COPYING that comes with the man
17 * Department of Chemical Engineering
18 * The University of Texas at Austin
23 * This should be at least the size of the longest path.
26 #define MAXPATHLEN 1024
30 * This is the maximum number of directories expected in the manpath.
37 * It's probably best to define absolute paths to all of these. If
38 * you don't, you'll be depending on the user's path to be correct
39 * when system () is called. This can result in weird behavior that's
40 * hard to track down, especially after you forget how this program
41 * works... If you don't have some of these programs, simply define
42 * them to be empty strings (i.e. ""). As a minimum, you must have
46 #define APROPOS "/usr/bin/apropos"
50 #define WHATIS "/usr/bin/whatis"
54 #define PAGER "more -s"
58 #define TROFF "/usr/bin/groff -S -man"
62 #define NROFF "/usr/bin/groff -S -Wall -mtty-char -man"
66 #define EQN "/usr/bin/eqn"
70 #define NEQN "/usr/bin/eqn"
74 #define TBL "/usr/bin/tbl"
78 #define COL "/usr/bin/col"
82 #define VGRIND "/usr/bin/vgrind"
86 #define REFER "/usr/bin/refer"
94 #define PIC "/usr/bin/pic"
98 * Define the absolute path to the configuration file.
101 static char config_file[] = "/etc/manpath.config" ;
105 * Define the uncompression program(s) to use for those preformatted
106 * pages that end in the given character. If you add extras here, you
107 * may need to change man.c. [I have no idea what FCAT and YCAT files
108 * are! - I will leave them in for now.. -jkh]
115 #define ZCAT "/usr/bin/zcat -q"
118 * This is the standard program to use on this system for compressing
119 * pages once they have been formatted, and the character to tack on
120 * to the end of those files. The program listed is expected to read
121 * from the standard input and write compressed output to the standard
122 * output. These won't actually be used unless compression is enabled.
124 #define COMPRESSOR "/usr/bin/gzip -c"
125 #define COMPRESS_EXT ".gz"
128 * Define the standard manual sections. For example, if your man
129 * directory tree has subdirectories man1, man2, man3, mann,
130 * and man3foo, std_sections[] would have "1", "2", "3", "n", and
131 * "3foo". Directories are searched in the order they appear. Having
132 * extras isn't fatal, it just slows things down a bit.
134 * Note that this is just for directories to search. If you have
135 * files like .../man3/foobar.3Xtc, you don't need to have "3Xtc" in
136 * the list below -- this is handled separately, so that `man 3Xtc foobar',
137 * `man 3 foobar', and `man foobar' should find the file .../man3/foo.3Xtc,
138 * (assuming, of course, that there isn't a .../man1/foo.1 or somesuch
139 * that we would find first).
141 * Note that this list should be in the order that you want the
142 * directories to be searched. Is there a standard for this? What is
143 * the normal order? If anyone knows, please tell me!
146 static const char *std_sections[] =
148 "1", "1aout", "8", "2", "3", "n", "4", "5", "6", "7", "9", "l", NULL
153 * Not all systems define these in stat.h.
156 #define S_IRUSR 00400 /* read permission: owner */
159 #define S_IWUSR 00200 /* write permission: owner */
162 #define S_IRGRP 00040 /* read permission: group */
165 #define S_IWGRP 00020 /* write permission: group */
168 #define S_IROTH 00004 /* read permission: other */
171 #define S_IWOTH 00002 /* write permission: other */
175 * This is the mode used for formatted pages that we create. If you
176 * are using the setgid option, you should use 664. If you are not,
177 * you should use 666 and make the cat* directories mode 777.
180 #define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH