Basic reporting of .Xrs to manual pages that don't exist
authorschwarze <schwarze@openbsd.org>
Sat, 1 Jul 2017 09:47:23 +0000 (09:47 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 1 Jul 2017 09:47:23 +0000 (09:47 +0000)
commit19b6bef7d74b1a8576cd85e21cdc4dd35fd4528d
treef55c6d4357933c7adccf72d65a6653118a59c20c
parent50c5c5674422896a85ed77602a1ead6fed3879da
Basic reporting of .Xrs to manual pages that don't exist
in the base system, inspired by mdoclint(1).

We are able to do this because (1) the -mdoc parser, the -Tlint validator,
and the man(1) manual page lookup code are all in the same program
and (2) the mandoc.db(5) database format allows fast lookup.

Feedback from, previous versions tested by, and OK jmc@.

A few features will be added to this in the tree, step by step.
usr.bin/mandoc/Makefile
usr.bin/mandoc/main.c
usr.bin/mandoc/manconf.h
usr.bin/mandoc/mandoc.1
usr.bin/mandoc/mandoc.h
usr.bin/mandoc/mandoc_xr.c [new file with mode: 0644]
usr.bin/mandoc/mandoc_xr.h [new file with mode: 0644]
usr.bin/mandoc/manpath.c
usr.bin/mandoc/mansearch.c
usr.bin/mandoc/mdoc_validate.c
usr.bin/mandoc/read.c