summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/lib/config.h_dist
blob: e76493380e2e84237229d9dec62ab38d32f4cec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/*
 * config.h
 *
 * If you haven't read the README file, now might be a good time.
 *
 * This file is edited by configure, so you shouldn't have to.
 * If that doesn't work, edit this file to match your site.
 *
 * Sorry it's so long, but there are lots of things you might want to
 * customize for your site.
 *
 * 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
 */

/*
 * This is the size of a number of internal buffers.  It should
 * probably not be less than 512.
 */
#ifndef BUFSIZ
#define BUFSIZ 1024
#endif

/*
 * This should be at least the size of the longest path.
 */
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif

/*
 * This is the maximum number of directories expected in the manpath.
 */
#ifndef MAXDIRS
#define MAXDIRS 64
#endif

/*
 * This is the name of the group that owns the preformatted man pages.
 * If you are running man as a setgid program, you should make sure
 * that all of the preformatted man pages and the directories that
 * they live in are readable and writeable and owned by this group.
 */
#ifdef SECURE_MAN_UID
#define MAN_USER ""
#endif

/*
 * It's probably best to define absolute paths to all of these.  If
 * you don't, you'll be depending on the user's path to be correct
 * when system () is called.  This can result in weird behavior that's
 * hard to track down, especially after you forget how this program
 * works...  If you don't have some of these programs, simply define
 * them to be empty strings (i.e. "").  As a minimum, you must have
 * nroff installed.
 */
#ifndef APROPOS
#define APROPOS "%apropos%"
#endif

#ifndef WHATIS
#define WHATIS "%whatis%"
#endif

#ifndef PAGER
#define PAGER "%pager%"
#endif

#ifdef HAS_TROFF
#ifndef TROFF
#define TROFF "%troff%"
#endif
#endif

#ifndef NROFF
#define NROFF "%nroff%"
#endif

#ifndef EQN
#define EQN "%eqn%"
#endif

#ifndef NEQN
#define NEQN "%neqn%"
#endif

#ifndef TBL
#define TBL "%tbl%"
#endif

#ifndef COL
#define COL "%col%"
#endif

#ifndef VGRIND
#define VGRIND "%vgrind%"
#endif

#ifndef REFER
#define REFER "%refer%"
#endif

#ifndef GRAP
#define GRAP "%grap%"
#endif

#ifndef PIC
#define PIC "%pic%"
#endif

/*
 * Define the absolute path to the configuration file.
 */
#ifndef MAN_MAIN
  static char config_file[] = "%manpath_config_file%" ;
#endif

/*
 * Define the uncompression program(s) to use for those preformatted
 * pages that end in the given character.  If you add extras here, you
 * may need to change man.c.  [I have no idea what FCAT and YCAT files
 * are! - I will leave them in for now.. -jkh]
 */
/* .F files */
#define FCAT ""
/* .Y files */
#define YCAT ""
/* .Z files */
#define ZCAT "%zcat%"

/*
 * This is the standard program to use on this system for compressing
 * pages once they have been formatted, and the character to tack on
 * to the end of those files.  The program listed is expected to read
 * from the standard input and write compressed output to the standard
 * output.  These won't actually be used unless compression is enabled.
 */
#ifdef DO_COMPRESS
#define COMPRESSOR "%compress%"
#define COMPRESS_EXT "%compext%"
#endif

/*
 * Define the standard manual sections.  For example, if your man
 * directory tree has subdirectories man1, man2, man3, mann,
 * and man3foo, std_sections[] would have "1", "2", "3", "n", and
 * "3foo".  Directories are searched in the order they appear.  Having
 * extras isn't fatal, it just slows things down a bit.
 *
 * Note that this is just for directories to search.  If you have
 * files like .../man3/foobar.3Xtc, you don't need to have "3Xtc" in
 * the list below -- this is handled separately, so that `man 3Xtc foobar',
 * `man 3 foobar', and `man foobar' should find the file .../man3/foo.3Xtc,
 * (assuming, of course, that there isn't a .../man1/foo.1 or somesuch
 * that we would find first).
 *
 * Note that this list should be in the order that you want the
 * directories to be searched.  Is there a standard for this?  What is
 * the normal order?  If anyone knows, please tell me!
 */
#ifndef MANPATH_MAIN
  static char *std_sections[] = 
    {
       "1", "1aout", "8", "2", "3", "n", "4", "5", "6", "7", "9", "l", NULL
    };
#endif

/*
 * Not all systems define these in stat.h.
 */
#ifndef S_IRUSR
#define	S_IRUSR	00400		/*  read permission: owner */
#endif
#ifndef S_IWUSR
#define	S_IWUSR	00200		/*  write permission: owner */
#endif
#ifndef S_IRGRP
#define	S_IRGRP	00040		/*  read permission: group */
#endif
#ifndef S_IWGRP
#define	S_IWGRP	00020		/*  write permission: group */
#endif
#ifndef S_IROTH
#define	S_IROTH	00004		/*  read permission: other */
#endif
#ifndef S_IWOTH
#define	S_IWOTH	00002		/*  write permission: other */
#endif

/*
 * This is the mode used for formatted pages that we create.  If you
 * are using the setgid option, you should use 664.  If you are not,
 * you should use 666 and make the cat* directories mode 777.
 */
#ifndef CATMODE
#ifdef SECURE_MAN_UID
#define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
#else
#define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
#endif
#endif
OpenPOWER on IntegriCloud