summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-12-25 16:52:56 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-12-25 16:52:56 +0000
commit84abcc826105b69fe6d9045a4f194558b6b1a90a (patch)
treee559526cbafd818f2b98334bfe21e20ea48641de /usr.bin/mandoc
parent9674dd425bfedd2db84f9d6c0e261ce4498dcf26 (diff)
Use the traditional name "whatis.db" for the mandocdb(8) databases.
Requested by deraadt@, ok kristaps@. CAUTION: If you run "sudo mandocdb" after this, the old apropos(1) and whatis(1) will not work any longer. To get temporary copies of the new ones, run: cd /usr/bin; rm -f apropos whatis; ln -s mandoc apropos; ln -s mandoc whatis
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/apropos.18
-rw-r--r--usr.bin/mandoc/mandocdb.812
-rw-r--r--usr.bin/mandoc/mandocdb.c4
-rw-r--r--usr.bin/mandoc/mandocdb.h6
4 files changed, 15 insertions, 15 deletions
diff --git a/usr.bin/mandoc/apropos.1 b/usr.bin/mandoc/apropos.1
index 4ecb5fa7174..c0075044b1e 100644
--- a/usr.bin/mandoc/apropos.1
+++ b/usr.bin/mandoc/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.10 2011/12/24 21:51:40 schwarze Exp $
+.\" $Id: apropos.1,v 1.11 2011/12/25 16:52:55 schwarze Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 24 2011 $
+.Dd $Mdocdate: December 25 2011 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -258,11 +258,11 @@ If none of these conditions are met, it overrides the default list.
.El
.Sh FILES
.Bl -tag -width "/etc/man.conf" -compact
-.It Pa mandoc.db
+.It Pa whatis.db
name of the
.Xr mandocdb 8
keyword database
-.It Pa mandoc.index
+.It Pa whatis.index
name of the
.Xr mandocdb 8
filename database
diff --git a/usr.bin/mandoc/mandocdb.8 b/usr.bin/mandoc/mandocdb.8
index f4e5bd12385..298117ea2b8 100644
--- a/usr.bin/mandoc/mandocdb.8
+++ b/usr.bin/mandoc/mandocdb.8
@@ -1,4 +1,4 @@
-.\" $Id: mandocdb.8,v 1.14 2011/12/25 13:05:29 schwarze Exp $
+.\" $Id: mandocdb.8,v 1.15 2011/12/25 16:52:55 schwarze Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -119,7 +119,7 @@ is printed to stderr, omitted from the index, and the parse continues
with the next input file.
.Ss Index Database
The index database,
-.Pa mandoc.index ,
+.Pa whatis.index ,
is a
.Xr recno 3
database with record values consisting of
@@ -155,7 +155,7 @@ Each of the above is NUL-terminated.
If the record value is zero-length, it is unassigned.
.Ss Keyword Database
The keyword database,
-.Pa mandoc.db ,
+.Pa whatis.db ,
is a
.Xr btree 3
database of NUL-terminated keywords (record length is non-zero string
@@ -221,12 +221,12 @@ or
respectively, grows as a multiple of the index length and input size.
.Sh FILES
.Bl -tag -width Ds
-.It Pa mandoc.db
+.It Pa whatis.db
A
.Xr btree 3
keyword database mapping keywords to a type and file reference in
-.Pa mandoc.index .
-.It Pa mandoc.index
+.Pa whatis.index .
+.It Pa whatis.index
A
.Xr recno 3
database of indexed file-names.
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c
index bd2ea579d0b..73eac8ea10f 100644
--- a/usr.bin/mandoc/mandocdb.c
+++ b/usr.bin/mandoc/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.29 2011/12/25 14:51:33 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.30 2011/12/25 16:52:55 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -1526,7 +1526,7 @@ ofile_argbuild(int argc, char *argv[], struct of **of)
* Recursively build up a list of files to parse.
* We use this instead of ftw() and so on because I don't want global
* variables hanging around.
- * This ignores the mandoc.db and mandoc.index files, but assumes that
+ * This ignores the whatis.db and whatis.index files, but assumes that
* everything else is a manual.
* Pass in a pointer to a NULL structure for the first invocation.
*/
diff --git a/usr.bin/mandoc/mandocdb.h b/usr.bin/mandoc/mandocdb.h
index 6f02069543e..5277f47ba3b 100644
--- a/usr.bin/mandoc/mandocdb.h
+++ b/usr.bin/mandoc/mandocdb.h
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.h,v 1.4 2011/12/25 14:51:33 schwarze Exp $ */
+/* $Id: mandocdb.h,v 1.5 2011/12/25 16:52:55 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -17,8 +17,8 @@
#ifndef MANDOCDB_H
#define MANDOCDB_H
-#define MANDOC_DB "mandoc.db"
-#define MANDOC_IDX "mandoc.index"
+#define MANDOC_DB "whatis.db"
+#define MANDOC_IDX "whatis.index"
#define TYPE_An 0x0000000000000001ULL
#define TYPE_Ar 0x0000000000000002ULL