1 .\" $Id: mandoc.db.5,v 1.1 2014/04/15 20:18:26 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: April 15 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
72 1 if the page is unformatted, i.e. in
76 format, and 2 if it is formatted, i.e. a
80 The manual section as found in the subdirectory name.
82 The manual architecture as found in the subdirectory name, or
85 The manual name as found in the file name.
89 bit mask telling whether the name came from a header line, from the
90 NAME or SYNOPSIS section, or from a file name.
98 bit mask telling which semantic contexts the key was found in;
104 The string found in those contexts.
107 .Bl -tag -width /usr/share/mandoc.db -compact
108 .It Pa /usr/share/mandoc.db
109 The manual page database for the base system.
110 .It Pa /usr/X11R6/mandoc.db
114 .It Pa /usr/local/mandoc.db
126 A manual page database
130 The present format first appeared in
134 The original version of
139 An SQLite3 version was first implemented by
140 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
142 The present database format was designed by
143 .An Ingo Schwarze Aq Mt schwarze@openbsd.org