1 .\" $Id: makewhatis.1,v 1.10 2011/07/01 13:46:39 kristaps Exp $
3 .\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: July 1 2011 $
22 .Nd index UNIX manuals
31 utility extracts keywords from
33 manuals and indexes them for fast retrieval.
34 The arguments are as follows:
37 The directory into which to write the keyword and index databases.
39 Read input from zero or more files in
47 If specified once, prints the name of each indexed file.
48 If twice, prints keywords for each file.
57 in the current working directory.
59 If fatal parse errors are encountered, the offending file is printed to
60 stderr, omitted from the index, and the parse continues with the next
67 database with record values consisting of
71 a nil-terminated filename,
73 a nil-terminated manual section,
75 a nil-terminated manual title,
77 a nil-terminated architecture
78 .Pq this is not often available
80 and a nil-terminated description.
83 Both the manual section and description may be zero-length.
84 Entries are sequentially-numbered, but the filenames are unordered.
90 database of nil-terminated keywords (record length is non-zero string
91 length plus one) mapping to a 8-byte binary field consisting of the
92 keyword type and source
95 The type, a 32-bit bit-mask in host order, consists of the following
98 .Bl -tag -width Ds -offset indent -compact
100 The name of a manual page as given in the NAME section.
102 A function prototype name as given in the SYNOPSIS section.
104 A utility name as given in the SYNOPSIS section.
106 An include file as given in the SYNOPSIS section.
108 A variable name as given in the SYNOPSIS section.
110 A standard as given in the STANDARDS section.
112 An author as given in the AUTHORS section.
114 A configuration as given in the SYNOPSIS section.
116 Free-form descriptive text as given in the NAME section.
118 Cross-links between manuals.
119 Listed as the link name, then a period, then the link section.
120 If the link has no section, the period terminates the string.
122 Path reference as given in the FILES section.
124 Environment variable as given in the ENVIRONMENT section.
126 Error codes as given in the ERRORS section.
129 The last four bytes are a host-ordered record number within the
141 keyword database mapping keywords to a type and file reference in
149 database of indexed file-names.
161 utility was written by
162 .An Kristaps Dzonsons Aq kristaps@bsd.lv .