summaryrefslogtreecommitdiffstats
path: root/usr.bin/man (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move help(1) to share/man and send the remains of man(1) to the Attic.schwarze2015-03-278-1998/+0
| | | | It is implemented by the code in usr.bin/mandoc since OpenBSD 5.7.
* Strip information that no longer applies and document new "manpath" directive.schwarze2015-03-261-2/+2
| | | | | jmc@ agrees with the general direction (but hasn't seen this draft; let's tweak it in the tree).
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Switch man(1) to the mandoc implementation.schwarze2014-12-141-6/+2
| | | | | | | OK krw@ naddy@ sthen@ "commit it now" deraadt@ I won't remove the files in src/usr.bin/man, such that we can quickly switch back in case a problem is found.
* Additional cleanup for procfs removaldoug2014-09-081-3/+2
| | | | ok guenther@
* use getlist() instead of hand-rolled equivalent, no functional change;schwarze2014-07-211-3/+2
| | | | | diff from Kent R. Spillner <kspillner at acm org>; no objections came up when showing this diff on tech@
* document some non-portable env vars in STANDARDS;jmc2014-04-031-3/+8
| | | | ok millert sobrado schwarze
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-3/+3
|
* Make some variables const that are filled from getenv(3), from argv,schwarze2013-07-011-5/+7
| | | | | | | | from optarg and from literal strings - for clarity and to make sure that future code changes do not attempt to write to them. No functional change. ok jca@
* Kill off some code that undocumently added an "-s" switch if user hadjca2013-07-012-42/+14
| | | | | | | | specified "more" as (MAN)PAGER. Document the default pager used while here. Discussed with schwarze@, ok schwarze@ millert@, jasper@ agrees. Users can get the previous behaviour by specifying eg. export MANPAGER="more -s".
* Avoid mangling argv and environment variables.jca2013-06-261-7/+15
| | | | ok schwarze@ sthen@
* do not show mount_nnpfs in an example, since it is gonederaadt2012-08-231-3/+2
|
* Use .Lk for HTTP hyperlinks, not .Pa.schwarze2012-08-121-4/+4
| | | | | | | | Most of the patch from Arto Jonsson <ajonsson at kapsi dot fi>. jmc@ agrees in principle that .Lk is the right macro to use. While here, update a few broken links, and add missing markup at a few places.
* Do not insert an empty ENTRY into the manpath list;schwarze2012-02-052-6/+7
| | | | | | | it's useless and causes out-of-bounds array access later. While here, remove two unused local variables and two unused struct members. From Tobias Ulmer <tobiasu at tmux dot org> on tech@, thanks. "off to you" deraadt@
* When iterating a TAILQ list replacing elements,schwarze2012-01-051-7/+8
| | | | | | | get a pointer to the next element before freeing the previous one, do not access free'd pointers. Problem found the hard way by fgsch@ running "man -a x" with malloc.conf -> S on amd64. ok deraadt@
* add a little vertical spacing to previous; ok schwarzejmc2011-10-091-1/+2
|
* Correct the history of apropos(1), whatis(1) and whereis(1): Theseschwarze2011-10-091-3/+35
| | | | | | | | | utilities were already part of 2BSD. Also credit Bill Joy as the author. Document the HISTORY of options. Say a bit more about the fate of whereis(1). All information found on http://minnie.tuhs.org/cgi-bin/utree.pl and in the OpenBSD, NetBSD, and FreeBSD CVS trees. Using feedback from jmc@.
* remove mdoc.samples(7): all info already is in mdoc(7)schwarze2011-09-171-5/+2
| | | | feedback and ok jmc@
* as requested by Tomas Bodzar, remove the reference to the non-existentjmc2011-08-291-3/+3
| | | | | | mount_portal(8): although i've just gone on record to say the change is pointless, he has correctly pointed out that it leads to a dead link in the online man pages.
* For man -a and -w, drop companion pages that are also in the path,schwarze2011-07-072-17/+82
| | | | | | | | | | | | | | such that we don't display them twice. To be able to do that path check, we have to brace-expand the search path up front - of course, for -a and -w only, so it doesn't slow us down in the standard case. As a free bonus, let -wa print all the filenames without looking at the timestamps. In the past, -w implied -a, so that's not introducing any incompatibility. Issue originally reported and fix OK'd by guenther@, and deraadt@ agrees with the semantics.
* When both a formatted and an unformatted version of the same manual pageschwarze2011-07-051-2/+80
| | | | | | are available in the same tree, only show the newer of the two. So far, this only handles the case without -a; i need to look at the case with -a next.
* add one more signal block for handling '_intmp' (the list of files scheduledderaadt2011-05-251-33/+39
| | | | | to be deleted at termination), and then make the signal handler race safe. ok nicm
* rewrite EXAMPLES, so that it makes a bit more sense;jmc2010-10-281-14/+13
|
* whining verboten; ok deraadtmikeb2010-10-221-8/+1
|
* - remove BUGS: it was out of datejmc2010-09-191-7/+3
| | | | | | - better Nd; from schwarze ok schwarze
* add an EXIT STATUS section for /usr/bin;jmc2010-09-031-4/+4
|
* document exit returns; from daniel dickmanjmc2010-07-221-2/+4
|
* Fix three bugs in man(1):schwarze2010-03-191-133/+174
| | | | | | | | | | | | | | | | | | | | * when combining -m $path with -s $section, -s was ignored * when combining -m with -s, ONLY $path was searched, like with -M * when combining -M (or $MANPATH) with -s, -M was ignored Instead, when combining -m, -M or $MANPATH with -s, let's simply look into $path/{cat,man}$section{/$arch,} first (for -m) or only (for -M or $MANPATH). Do not change the behaviour in other cases. This required a rewrite of the whole path handling, as a bonus also making the code easier to understand. Hopefully, it helps to fix www.openbsd.org/cgi-bin/man.cgi properly. Jason convinced me that changing the manual is not really needed. Regression tests will follow when the tree unlocks completely. "you are on the right track" beck@ tested and agreed by jmc@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-272-24/+2
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* xfs -> nnpfs;jmc2009-06-041-3/+3
|
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* make -S case insensitive; this avoids any confusion over the factjmc2008-12-302-11/+20
| | | | | | | that MD page headers use mixed case; tidy up the man page regarding this; diff from Ingo Schwarze ok sobrado millert krw
* remove old version of man.conf, since the current one is in /etc;jmc2008-12-061-48/+0
| | | | | pointed out by hyjial ok deraadt
* Add section n for Tcl/Tk related pages.deanna2008-04-271-2/+4
| | | | ok jmc@, no objections espie@
* add a note about shell built-ins;jmc2008-01-111-2/+16
|
* -k and -f accept multiple arguments; from Pierre Riteaujmc2008-01-042-8/+8
|
* document "exit" for logging out of systems, instead of "logout":jmc2008-01-031-4/+4
| | | | | | it works for both csh and ksh, and is covered by posix; from Pierre Riteau
* we have man section 3f by default now;jmc2007-09-071-2/+4
|
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-062-6/+6
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* make jmc happy by somewhat smarter synopsis scanning code for -h; okotto2007-06-041-8/+19
| | | | jaredy@
* more adosfs removal;jmc2007-06-011-3/+2
|
* convert to new .Dd format;jmc2007-05-313-6/+6
|
* - use a consistent text for STANDARDSjmc2007-05-301-1/+11
| | | | - note which options are extensions to POSIX
* - attempt to explain (sub)sections before we start discussing themjmc2007-05-231-17/+20
| | | | | - merge the "-s section" and "section" parts: it doesn't make sense to keep them separate
* update the section list;jmc2007-05-231-3/+10
|
* for -S, note that machines have pages for all archs, and this mechanismjmc2007-05-231-3/+7
| | | | | allows one to view pages for one arch whilst using another (this seems to be not always clear to people);
* improve the descriptions for -f and -k, specifically making itjmc2007-05-231-19/+17
| | | | clear that they run, respectively, whatis(1) and apropos(1);
* remove some unneccessary bracketing;jmc2007-05-231-2/+2
|
* improve the descriptions of "section" and "subsection"; ok millertjmc2007-05-191-13/+15
|