1 .\" $Id: makewhatis.1,v 1.1 2011/05/13 00:42:26 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: May 13 2011 $
22 .Nd index UNIX manuals
30 utility extracts keywords from
32 manuals and indexes them for fast retrieval.
33 The arguments are as follows:
36 The directory into which to write the keyword and index databases.
38 Read input from zero or more files in
52 in the current working directory.
54 If fatal parse errors are encountered, the offending file is printed to
55 stderr, omitted from the index, and the parse continues with the next
62 database with record values consisting of
66 a nil-terminated filename,
68 a nil-terminated manual section,
70 a nil-terminated manual title,
72 a nil-terminated architecture
73 .Pq this is not often available
75 and a nil-terminated description.
78 Both the manual section and description may be zero-length.
79 Entries are sequentially-numbered, but the filenames are unordered.
85 database of nil-terminated keywords (record length is non-zero string
86 length plus one) mapping to a 8-byte binary field consisting of the
87 keyword type and source
90 The type, an unsigned 32-bit integer in host order, is one of the
93 .Bl -tag -width Ds -offset indent -compact
95 The name of a manual page as given in the NAME section.
97 A function prototype name as given in the SYNOPSIS section.
99 A utility name as given in the SYNOPSIS section.
101 An include file as given in the SYNOPSIS section.
103 A variable name as given in the SYNOPSIS section.
105 A standard as given in the STANDARDS section.
107 An author as given in the AUTHORS section.
109 A configuration as given in the SYNOPSIS section.
112 If a value is encountered outside of this range, the database is
115 The latter four bytes are a host-ordered record number within the
127 keyword database mapping keywords to a type and file reference in
135 database of indexed file-names.
147 utility was written by
148 .An Kristaps Dzonsons Aq kristaps@bsd.lv .
152 manuals are processed.