Requested by deraadt@, ok kristaps@.
-.\" $Id: apropos.1,v 1.14 2011/12/24 22:37:16 kristaps Exp $
+.\" $Id: apropos.1,v 1.15 2011/12/25 16:53:51 schwarze Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
.\" 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
.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
-.\" $Id: mandocdb.8,v 1.15 2011/12/25 13:08:12 schwarze Exp $
+.\" $Id: mandocdb.8,v 1.16 2011/12/25 16:53:51 schwarze Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
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
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
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.
-/* $Id: mandocdb.c,v 1.39 2011/12/25 14:58:39 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.40 2011/12/25 16:53:51 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
* 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.
*/
-/* $Id: mandocdb.h,v 1.4 2011/12/25 14:58:39 schwarze Exp $ */
+/* $Id: mandocdb.h,v 1.5 2011/12/25 16:53:51 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
#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
-.\" $Id: whatis.1,v 1.5 2011/12/24 22:37:16 kristaps Exp $
+.\" $Id: whatis.1,v 1.6 2011/12/25 16:53:51 schwarze Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
.\" 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 WHATIS 1
.Os
.Sh NAME
.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