=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man.1,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- src/usr.bin/mandoc/man.1 2018/11/22 11:30:15 1.32 +++ src/usr.bin/mandoc/man.1 2019/03/09 15:54:46 1.33 @@ -1,4 +1,4 @@ -.\" $OpenBSD: man.1,v 1.32 2018/11/22 11:30:15 schwarze Exp $ +.\" $OpenBSD: man.1,v 1.33 2019/03/09 15:54:46 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: November 22 2018 $ +.Dd $Mdocdate: March 9 2019 $ .Dt MAN 1 .Os .Sh NAME @@ -218,12 +218,24 @@ man pages can be found in .Xr mdoc 7 . .Pp +The +.Xr mandoc.db 5 +database is used for looking up manual page entries. +In cases where the database is absent, outdated, or corrupt, +.Nm +falls back to looking for files called +.Ar name . Ns Ar section . If both a formatted and an unformatted version of the same manual page, for example .Pa cat1/foo.0 and .Pa man1/foo.1 , exist in the same directory, only the unformatted version is used. +The database is kept up to date with +.Xr makewhatis 8 , +which is run by the +.Xr weekly 8 +maintenance script. .Sh ENVIRONMENT .Bl -tag -width MANPATHX .It Ev MACHINE