1 .\" $Id: mandoc.db.5,v 1.2 2014/09/03 18:09:14 schwarze Exp $
3 .\" Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
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: September 3 2014 $
22 .Nd manual page database
26 SQLite3 file format is used to store information about installed manual
27 pages to facilitate semantic searching for manuals.
28 Each manual page tree contains its own
34 Such database files are generated by
41 One line in the following tables describes:
44 One physical manual page file, no matter how many times and under which
45 names it may appear in the file system.
47 One entry in the file system, no matter which content it points to.
49 One manual page name, no matter whether it appears in a page header,
50 in a NAME or SYNOPSIS section, or as a file name.
52 One chunk of text from some macro invocation.
55 Each record in the latter three tables uses its
57 column to point to a record in the
61 The other columns are as follows; unless stated otherwise, they are
64 .Bl -tag -width mpages.desc
75 is set, the page is compressed and requires
80 is set, the page is unformatted, that is in
89 is not set, the page is formatted, i.e. a
93 The manual section as found in the subdirectory name.
95 The manual architecture as found in the subdirectory name, or
98 The manual name as found in the file name.
102 bit mask telling whether the name came from a header line, from the
103 NAME or SYNOPSIS section, or from a file name.
111 bit mask telling which semantic contexts the key was found in;
117 The string found in those contexts.
120 .Bl -tag -width /usr/share/mandoc.db -compact
121 .It Pa /usr/share/mandoc.db
122 The manual page database for the base system.
123 .It Pa /usr/X11R6/mandoc.db
127 .It Pa /usr/local/mandoc.db
139 A manual page database
143 The present format first appeared in
147 The original version of
152 An SQLite3 version was first implemented by
153 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
155 The present database format was designed by
156 .An Ingo Schwarze Aq Mt schwarze@openbsd.org