1
/* $XConsortium: vendor.h,v 1.12 94/04/17 20:44:00 rws Exp $ */
4
Copyright (c) 1991 X Consortium
6
Permission is hereby granted, free of charge, to any person obtaining
7
a copy of this software and associated documentation files (the
8
"Software"), to deal in the Software without restriction, including
9
without limitation the rights to use, copy, modify, merge, publish,
10
distribute, sublicense, and/or sell copies of the Software, and to
11
permit persons to whom the Software is furnished to do so, subject to
12
the following conditions:
14
The above copyright notice and this permission notice shall be included
15
in all copies or substantial portions of the Software.
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
21
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
OTHER DEALINGS IN THE SOFTWARE.
25
Except as contained in this notice, the name of the X Consortium shall
26
not be used in advertising or otherwise to promote the sale, use or
27
other dealings in this Software without prior written authorization
28
from the X Consortium.
31
/* $XFree86: xc/programs/xman/vendor.h,v 1.11 2002/09/21 02:38:25 dawes Exp $ */
33
/* Vendor-specific definitions */
36
#include <sys/param.h>
39
#define SUFFIX "suffix"
41
#define FOLDSUFFIX "foldsuffix"
48
* The directories to search. Assume that the manual directories are more
49
* complete than the cat directories.
52
#if ( defined(UTEK) || defined(apollo) || defined(Lynx) )
53
# define SEARCHDIR CAT
55
# define SEARCHDIR MAN
58
#if ( defined(sgi) || (defined(i386) && (defined(SYSV) || defined(SVR4))) || (defined(BSD) && (BSD >= 199103)) || defined(linux) )
59
# define SEARCHOTHER CAT
63
* The default manual page directory.
65
* The MANPATH enviornment variable will override this.
71
# define SYSMANPATH "/usr/catman/u_man:/usr/catman/a_man"
72
#elif defined(__bsdi__)
73
# define SYSMANPATH "/usr/share/man:/usr/contrib/man:/usr/contrib/isode/man:/usr/local/man"
74
#elif defined(__OpenBSD__) || defined(__DARWIN__)
75
# define SYSMANPATH "/usr/share/man:/usr/local/man:/usr/X11R6/man"
76
#elif defined(SVR4) || defined(__osf__) || (defined(BSD) && (BSD >= 199103))
77
# define SYSMANPATH "/usr/share/man"
79
# define SYSMANPATH "/usr/catman/local_man:/usr/catman/u_man:/usr/catman/a_man:/usr/catman/p_man:/usr/catman/ada_man"
80
#elif defined(SYSV) && defined(i386) && !defined(SCO)
81
# define SYSMANPATH "/usr/catman/u_man:/usr/catman/p_man"
83
# define SYSMANPATH "/usr/catman/a_man:/usr/catman/g_man:/usr/catman/p_man:/usr/catman/u_man:/usr/man/p_man:/usr/man/u_man:/usr/man"
87
# define SYSMANPATH "/usr/man"
93
* Compression Definitions.
96
#if defined( macII ) || defined( hcx ) || \
97
(defined(SYSV) && defined(i386) && !defined(ISC) && !defined(SCO)) || \
99
# define COMPRESSION_EXTENSION "z"
100
# define UNCOMPRESS_FORMAT "pcat %s > %s"
101
# define NO_COMPRESS /* mac can't handle using pack as a filter and
102
xman needs it to be done that way. */
104
# define COMPRESSION_EXTENSION "C"
105
# define UNCOMPRESS_FORMAT "ccat < %s > %s"
106
# define COMPRESS "compact"
107
#elif defined (ISC) || defined(SCO)
108
# define COMPRESSION_EXTENSION "Z" /* dummy */
110
# define COMPRESSION_EXTENSIONS "zZF" /* pack, compress, freeze */
112
# define COMPRESSION_EXTENSIONS "zZ" /* pack, compress */
114
# define UNCOMPRESS_FORMAT uncompress_format
115
# define UNCOMPRESS_FORMAT_1 "pcat %s > %s"
116
# define UNCOMPRESS_FORMAT_2 "zcat < %s > %s"
117
# define UNCOMPRESS_FORMAT_3 "fcat < %s > %s"
120
# define COMPRESSION_EXTENSION "Z"
122
# define UNCOMPRESS_FORMAT "zcat < %s > %s"
124
# define UNCOMPRESS_FORMAT "zcat < %s >> %s"
126
# define COMPRESS "compress"
127
# define GZIP_EXTENSION "gz"
129
# define GUNZIP_FORMAT "gzip -c -d < %s > %s"
131
# define GUNZIP_FORMAT "gzip -c -d < %s >> %s"
133
# define GZIP_COMPRESS "gzip"
139
* The command filters for the manual and apropos searches.
142
#if (defined(hpux) || defined(macII) || defined(CRAY) || defined(ultrix) || \
144
# define NO_MANPATH_SUPPORT
148
# ifdef NO_MANPATH_SUPPORT
149
# define APROPOS_FORMAT ("man -k %s | pr -h Apropos > %s")
151
# define APROPOS_FORMAT ("man -M %s -k %s | pr -h Apropos > %s")
154
/* with mkstemp the temp output file is already created */
155
# ifdef NO_MANPATH_SUPPORT
156
# define APROPOS_FORMAT ("man -k %s | pr -h Apropos >> %s")
158
# define APROPOS_FORMAT ("man -M %s -k %s | pr -h Apropos >> %s")
162
#ifndef HANDLE_ROFFSEQ
164
# define FORMAT "| nroff -man" /* The format command. */
165
# elif defined(CSRG_BASED)
166
# define FORMAT "| eqn | tbl | nroff -mandoc"
167
# elif defined(BSD) && (BSD >= 199103)
168
# define FORMAT "| eqn | tbl | nroff -man"
169
# elif defined(linux)
170
# define FORMAT "| geqn | gtbl | groff -Tlatin1 -mandoc"
172
# define FORMAT "| neqn | nroff -man" /* The format command. */
179
#else /* HANDLE_ROFFSEQ */
181
# define ZSOELIM "zsoelim"
185
# define ZSOELIM "soelim"
191
# define VGRIND "vgrind"
192
# define REFER "refer"
193
# if defined(CSRG_BASED)
194
# define FORMAT "nroff -mandoc"
195
# elif defined(linux)
196
# define FORMAT "groff -Tlatin1 -mandoc"
198
# define FORMAT "groff -man"
200
# define DEFAULT_MANROFFSEQ "et"
201
#endif /*HANDLE_ROFFSEQ */
204
* Names of the man and cat dirs.
214
* The Apple, Cray,, SYSV386, and HCX folks put the preformatted pages in the
217
#if (defined(macII) || defined(CRAY) || defined(hcx) || \
218
(defined(SYSV) && defined(i386))) && !defined(SCO)
226
typedef struct _SectionList {
227
struct _SectionList * next;
228
char * label; /* section label */
229
char * directory; /* section directory */
233
extern char * CreateManpageName(char * entry, int section, int flags);
234
extern void AddStandardSections(SectionList **list, char * path);
235
extern void AddNewSection(SectionList **list, char * path, char * file, char * label, int flags);