summaryrefslogtreecommitdiffstats
path: root/manpath.c
Commit message (Collapse)AuthorAgeFilesLines
* KNF: case (FOO): -> case FOO:, remove /* LINTED */ and /* ARGSUSED */,Ingo Schwarze2014-04-201-3/+2
| | | | | remove trailing whitespace and blanks before tabs, improve some indenting; no functional change
* The files mandoc.c and mandoc.h contained both specialised low-levelIngo Schwarze2014-03-231-1/+1
| | | | | | | functions used for multiple languages (mdoc, man, roff), for example mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary functions. Split the auxiliaries out into their own file and header. While here, do some #include cleanup.
* My audit of mandoc revealed one missing (unsigned char) castIngo Schwarze2013-11-211-1/+1
| | | | | in an isspace() argument containing arbitrary char data. Thanks to deraadt@ for triggering the audit.
* Some places used PATH_MAX from <limits.h>, some MAXPATHLEN from <sys/param.h>.Ingo Schwarze2013-06-051-5/+1
| | | | | | Consistently use the PATH_MAX since it is specified by POSIX, while MAXPATHLEN is not. In preparation for using this at a few more places.
* Sync to OpenBSD:Ingo Schwarze2013-05-291-2/+4
| | | | | | | | * Guard <sys/param.h> inclusion by #ifdef USE_MANPATH to make it more obvious why this isn't needed on OpenBSD. Noticed by deraadt@. * Resolve gratuitious whitespace differences: Blanks before tabs and on empty lines.
* Use size_t in manpath instead of int.Kristaps Dzonsons2012-06-081-5/+5
|
* Support leading, trailing and double colons in MANPATH to prepend,Kristaps Dzonsons2011-12-241-6/+45
| | | | | | | | append or insert the man.conf(5) default path; compatible with GNU manpath(1), implementation by kristaps@, heavily tweaked by schwarze@. Updates to MANPATH documentation applied to whatis.1, apropos.1, and catman.8 also.
* Remove stray warnx() left in the manpath.c code.Kristaps Dzonsons2011-12-131-1/+0
|
* Have manpath.c properly use manpath(1), that is, using -C and -m and so on.Kristaps Dzonsons2011-12-131-41/+52
| | | | | This also cleans up the code a little bit. While here, make some functions static that are only used within manpath.c.
* implement -C (alternative config file) for apropos(1) and mandocdb(8),Ingo Schwarze2011-12-121-5/+6
| | | | | including various tweaks to the whatis(8) manual; ok kristaps@
* Sync to OpenBSD, mostly gratuitous and whitespace differences,Ingo Schwarze2011-11-261-8/+9
| | | | | | | | | but a few serious things as well: * -M overrides MANPATH * -m prepends to the path * put back database close calls that got lost in mandocdb * missing sys/types.h in manpath.c, needed for size_t ok kristaps@
* Allow man.conf file to be assignable.Kristaps Dzonsons2011-11-241-3/+3
|
* Export the manpath_manconf() function, slightly reorderng manpath.c whileKristaps Dzonsons2011-11-241-13/+20
| | | | | doing so. This will be used by a jailed man.cgi, as the cache built by manup(8) creates a man.conf for it to use.
* Support for Open/NetBSD's /etc/man.conf and others' manpath(1).Kristaps Dzonsons2011-11-231-0/+167
Most of this code (except the manpath part) written by schwarze@. This isn't hooked into anything yet.