4 * If you haven't read the README file, now might be a good time.
6 * This file is edited by configure, so you shouldn't have to.
7 * If that doesn't work, edit this file to match your site.
9 * Sorry it's so long, but there are lots of things you might want to
10 * customize for your site.
12 * Copyright (c) 1990, 1991, John W. Eaton.
14 * You may distribute under the terms of the GNU General Public
15 * License as specified in the file COPYING that comes with the man
20 * Department of Chemical Engineering
21 * The University of Texas at Austin
26 * This is the size of a number of internal buffers. It should
27 * probably not be less than 512.
34 * This should be at least the size of the longest path.
37 #define MAXPATHLEN 1024
41 * This is the maximum number of directories expected in the manpath.
48 * This is the name of the group that owns the preformatted man pages.
49 * If you are running man as a setgid program, you should make sure
50 * that all of the preformatted man pages and the directories that
51 * they live in are readable and writeable and owned by this group.
58 * It's probably best to define absolute paths to all of these. If
59 * you don't, you'll be depending on the user's path to be correct
60 * when system () is called. This can result in weird behavior that's
61 * hard to track down, especially after you forget how this program
62 * works... If you don't have some of these programs, simply define
63 * them to be empty strings (i.e. ""). As a minimum, you must have
67 #define APROPOS "%apropos%"
71 #define WHATIS "%whatis%"
75 #define PAGER "%pager%"
80 #define TROFF "%troff%"
85 #define NROFF "%nroff%"
105 #define VGRIND "%vgrind%"
109 #define REFER "%refer%"
113 #define GRAP "%grap%"
121 * Define the absolute path to the configuration file.
124 static char config_file[] = "%manpath_config_file%" ;
128 * Define the uncompression program(s) to use for those preformatted
129 * pages that end in the given character. If you add extras here, you
130 * may need to change man.c. [I have no idea what FCAT and YCAT files
131 * are! - I will leave them in for now.. -jkh]
138 #define ZCAT "%zcat%"
141 * This is the standard program to use on this system for compressing
142 * pages once they have been formatted, and the character to tack on
143 * to the end of those files. The program listed is expected to read
144 * from the standard input and write compressed output to the standard
145 * output. These won't actually be used unless compression is enabled.
148 #define COMPRESSOR "%compress%"
149 #define COMPRESS_EXT "%compext%"
153 * Define the standard manual sections. For example, if your man
154 * directory tree has subdirectories man1, man2, man3, mann,
155 * and man3foo, std_sections[] would have "1", "2", "3", "n", and
156 * "3foo". Directories are searched in the order they appear. Having
157 * extras isn't fatal, it just slows things down a bit.
159 * Note that this is just for directories to search. If you have
160 * files like .../man3/foobar.3Xtc, you don't need to have "3Xtc" in
161 * the list below -- this is handled separately, so that `man 3Xtc foobar',
162 * `man 3 foobar', and `man foobar' should find the file .../man3/foo.3Xtc,
163 * (assuming, of course, that there isn't a .../man1/foo.1 or somesuch
164 * that we would find first).
166 * Note that this list should be in the order that you want the
167 * directories to be searched. Is there a standard for this? What is
168 * the normal order? If anyone knows, please tell me!
171 static char *std_sections[] =
173 "1", "1aout", "8", "2", "3", "n", "4", "5", "6", "7", "9", "l", NULL
178 * Not all systems define these in stat.h.
181 #define S_IRUSR 00400 /* read permission: owner */
184 #define S_IWUSR 00200 /* write permission: owner */
187 #define S_IRGRP 00040 /* read permission: group */
190 #define S_IWGRP 00020 /* write permission: group */
193 #define S_IROTH 00004 /* read permission: other */
196 #define S_IWOTH 00002 /* write permission: other */
200 * This is the mode used for formatted pages that we create. If you
201 * are using the setgid option, you should use 664. If you are not,
202 * you should use 666 and make the cat* directories mode 777.
205 #ifdef SECURE_MAN_UID
206 #define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
208 #define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH