2 .\" Copyright (c) 2010 Gordon Tetlow
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd display online manual documentation pages
41 .Op Fl m Ar arch Ns Op : Ns Ar machine
54 utility finds and displays online manual documentation pages.
59 restricts the search to the specific section of the manual.
64 .Bl -tag -width indent
66 Forces a specific colon separated manual path instead of the default
81 Restricts manual sections searched to the specified colon delimited list.
83 .Va 1:1aout:8:2:3:n:4:5:6:7:9:l .
88 Display all manual pages instead of just the first found for each
92 Print extra debugging information.
93 Repeat for increased verbosity.
94 Does not display the manual page.
99 Display short help message and exit.
103 .It Fl m Ar arch Ns Op : Ns Ar machine
104 Override the default architecture and machine settings allowing lookup of
105 other platform specific manual pages.
107 .Sx IMPLEMENTATION NOTES
108 for how this option changes the default behavior.
113 environment variables.
115 Force use of non-localized manual pages.
117 .Sx IMPLEMENTATION NOTES
118 for how locale specific searches work.
120 .Ev LC_ALL , LC_CTYPE ,
123 environment variables.
125 Use the list of given preprocessors before running
129 Valid preprocessors arguments:
130 .Bl -tag -width indent -compact
144 environment variable.
146 Send manual page source through
148 allowing transformation of the manual pages to other formats.
150 Display the location of the manual page instead of the contents of
153 .Sh IMPLEMENTATION NOTES
154 .Ss Locale Specific Searches
157 utility supports manual pages in different locales.
158 The search behavior is dictated by the first of three
159 environment variables with a nonempty string:
166 will search for locale specific manual pages using the following logic:
167 .Bl -item -compact -offset indent
186 will search the following paths when considering section 1 manual pages in
188 .Bl -item -compact -offset indent
190 .Pa /usr/share/man/ja_JP.eucJP/man1
192 .Pa /usr/share/man/ja.eucJP/man1
194 .Pa /usr/share/man/en.eucJP/man1
196 .Pa /usr/share/man/man1
198 .Ss Platform Specific Searches
201 utility supports platform specific manual pages.
202 The search behavior is dictated by the
208 environment variables.
218 will search the following paths when considering section 4 manual pages in
220 .Bl -item -compact -offset indent
222 .Pa /usr/share/man/man4/pc98
224 .Pa /usr/share/man/man4/i386
226 .Pa /usr/share/man/man4
228 .Ss Displaying Specific Manual Files
231 utility also supports displaying a specific manual page if passed a path
232 to the file as long as it contains a
236 The following environment variables affect the execution of
238 .Bl -tag -width ".Ev MANPATH"
239 .It Ev LC_ALL , LC_CTYPE , LANG
240 Used to find locale specific manual pages.
241 Valid values can be found by running the
245 .Sx IMPLEMENTATION NOTES
250 .It Ev MACHINE_ARCH , MACHINE
251 Used to find platform specific manual pages.
252 If unset, the output of
253 .Ic "sysctl hw.machine_arch"
255 .Ic "sysctl hw.machine"
256 is used respectively.
258 .Sx IMPLEMENTATION NOTES
264 Used to find the location of the manual files.
267 for additional information.
272 Used to determine the preprocessors for the manual source before running
276 If unset, defaults to
282 Restricts manual sections searched to the specified colon delimited list.
287 Program used to display files.
293 .Bl -tag -width indent -compact
295 System configuration file.
296 .It Pa /usr/local/etc/man.d/*.conf
297 Local configuration files.