1 .\" $Id: mandoc-db.1,v 1.1 2011/04/04 10:53:15 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: April 4 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 of nil-terminated filenames (record length is non-zero string
63 length plus one) passed to
65 Entries are sequentially-numbered, but the filenames are unordered.
71 database of nil-terminated keywords (record length is non-zero string
72 length plus one) mapping to a 8-byte binary field consisting of the
73 keyword type and source
76 The type, an unsigned 32-bit integer in host order, is one of the
79 .Bl -tag -width Ds -offset indent -compact
81 The name of a manual page as given in the NAME section.
83 A function prototype name as given in the SYNOPSIS section.
85 A utility name as given in the SYNOPSIS section.
87 An include file as given in the SYNOPSIS section.
89 A variable name as given in the SYNOPSIS section.
92 If a value is encountered outside of this range, the database is
95 The latter four bytes are a host-ordered record number within the
107 keyword database mapping keywords to a type and file reference in
115 database of indexed file-names.
127 utility was written by
128 .An Kristaps Dzonsons Aq kristaps@bsd.lv .
132 manuals are processed.