aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Add libisns, libppath and libsaslc from NetBSD. Fix formatting of librt.Joerg Sonnenberger2012-01-281-2/+5
|
* Add x86 pseudo architecureJoerg Sonnenberger2012-01-281-1/+2
|
* Add entry about the .TP / .RS crash before I forget about it again.Joerg Sonnenberger2012-01-231-1/+3
|
* Reflect reality, mandoc_escape does not skip the "\" itself, but expectsJoerg Sonnenberger2012-01-131-3/+5
| | | | the caller to have done that.
* Fix previous such that all .It HEADs are unparsed,Ingo Schwarze2012-01-051-11/+9
| | | | | | | not just the first one in each -diag list. While here, drop the needless if-statement and choose a more precise wording for the comment. ok kristaps@
* Local variable initialisation.Kristaps Dzonsons2012-01-031-2/+2
|
* Add support for `OP', one of the extended man macros. This also requiresKristaps Dzonsons2012-01-037-23/+112
| | | | some man(7) changes to accomodate for the an-ext compatibility.
* Accommodate for ISO C11. groff applied the same `St' argument onKristaps Dzonsons2012-01-032-3/+6
| | | | | 03/01/2012. From a tweaked patch (isoC-11 -> isoC-2011) by Ulrich Sporlein: thanks!
* `-diag' lists aren't parsed, unlike other list types. This fixes a TODOKristaps Dzonsons2012-01-022-8/+15
| | | | entry raised by deraadt@.
* Fix ID vs. CLASS for man.cgi CSS selector on results table and verticallyKristaps Dzonsons2011-12-311-3/+2
| | | | align.
* When parsing catpages, read from the first section (NAME, we hope) untilKristaps Dzonsons2011-12-312-18/+46
| | | | | the next section. Also, remove the limit of 72 characters and enforce this, instead in the apropos frontend.
* Do not skip manuals shared across architectures when building databases.Ingo Schwarze2011-12-281-4/+19
|
* Update the whatis.db database format.Ingo Schwarze2011-12-251-8/+12
| | | | | While here, reference apropos(1) from the description, inspired by the makewhatis(8) manual.
* State default usage before listing arguments of a utility. Inspired by aKristaps Dzonsons2011-12-256-74/+70
| | | | patch to mandocdb.8 by schwarze@ some time ago. Ok jmc@.
* First memory leak in mandocdb.c freeing "struct of". Also properlyKristaps Dzonsons2011-12-251-3/+8
| | | | const-ify several strings.
* Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.hKristaps Dzonsons2011-12-253-13/+29
| | | | to do so.
* Use the traditional name "whatis.db" for the mandocdb(8) databases.Ingo Schwarze2011-12-255-19/+19
| | | | Requested by deraadt@, ok kristaps@.
* For binary compatability of the databases across architectures,Ingo Schwarze2011-12-253-36/+31
| | | | | | | use pointers to arrays, not pointers to structs. It is now possible to create databases on sparc64 and use them on i386 and vice versa. Kristaps@ can't think of anything else that might be required, either. Put this in now such that we can move on.
* Implement test mode (makewhatis -t), required for pkg_create(8).Ingo Schwarze2011-12-252-219/+351
| | | | | | | | | | | | Always do all consistency checks; when any one fails, decide whether to print a message, or skip the file, or both, or none. While here, do some cleanup as well: * Bail out on conflicting options. * Do not crash with -a if there are plain files in the root dir. * Collect some related variables into structs. Feedback and OK kristaps@.
* Support leading, trailing and double colons in MANPATH to prepend,Kristaps Dzonsons2011-12-244-16/+88
| | | | | | | | 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.
* Do not cast void pointers to pointers requiring alignment.Ingo Schwarze2011-12-202-11/+20
| | | | | | | | | This makes mandocdb(8)/apropos(1) work on strict alignment architectures. Basic way to fix this confirmed by deraadt@ and kettenis@, thanks. ok kristaps@ This now works on both sparc64 and i386, but note that the binary database format is still machine-dependent.
* Give catman(8) the -C flag (like apropos and friends) and merge in someKristaps Dzonsons2011-12-182-7/+27
| | | | documentation from apropos(1) to be consistent.
* Make compat files actually use compat.h. Ooops.Kristaps Dzonsons2011-12-184-0/+16
|
* Two lint fixes.Kristaps Dzonsons2011-12-162-5/+5
|
* Fix assertion found when plugging legacy man.cgi query string into myKristaps Dzonsons2011-12-161-2/+4
| | | | man.cgi.
* Edge in a little style. Why not.Kristaps Dzonsons2011-12-161-1/+3
|
* When routing to a "result" page in the cgi, remember our input parametersKristaps Dzonsons2011-12-161-38/+72
| | | | | and repeat them in the search bar. This is handy. While here, make the QUERY_STRING parser a bit simpler.
* Have results table inherit the small font.Kristaps Dzonsons2011-12-161-0/+1
|
* Make sure that "any" is UINT64_MAX, not just INT_MAX, else "any" won'tKristaps Dzonsons2011-12-161-2/+2
| | | | cover all types. Found after some database trawling.
* Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-characterKristaps Dzonsons2011-12-166-44/+56
| | | | | bytes. This cuts down a little in index size and allows for cleaner extraction of information.
* Make paths in the mandocdb(8) index relative to the databases' pathKristaps Dzonsons2011-12-164-74/+72
| | | | | | | prefix. This means that an index in, say, /usr/share/man will point to man1/foo.1 instead of /usr/share/man/man1/foo.1. Not only does this save a lot of space, it also allows manual trees to be moved around without any side effects to the mandocdb(8) databases.
* Don't make man.cgi default font-size dictate manual style.Kristaps Dzonsons2011-12-151-3/+3
|
* Further tweaks for output consistency.Kristaps Dzonsons2011-12-153-7/+15
|
* Update man.cgi.7 with new CSS files.Kristaps Dzonsons2011-12-151-9/+13
|
* Some presentation polish in man.cgi:Kristaps Dzonsons2011-12-155-182/+148
| | | | | | | | | | | | - include search bar above result page (I relent: it's annoying to follow three links then press back three times to get a search page); - make man.cgi.css into man-cgi.css so Apache isn't confused by two handlers (css, cgi); - finally consolidate example.style.css to be under the div.mandoc css selector; - put catman pages under div.catman; - put search bar under div#mancgi; - reflect this properly in the bundled CSS files.
* Note that archives are being hosted at gmane.Kristaps Dzonsons2011-12-141-1/+7
|
* Unbreak man.cgi's css directories when CSS_DIR isn't specified.Kristaps Dzonsons2011-12-142-3/+5
|
* Remove stray warnx() left in the manpath.c code.Kristaps Dzonsons2011-12-131-2/+1
|
* Have manpath.c properly use manpath(1), that is, using -C and -m and so on.Kristaps Dzonsons2011-12-132-45/+54
| | | | | This also cleans up the code a little bit. While here, make some functions static that are only used within manpath.c.
* Compatibility support fgetln() on Linux. This uses the BSD-licensedKristaps Dzonsons2011-12-135-3/+129
| | | | | | | | | | implementation from NetBSD tnftpd, Christos Zoulas (copyright message retained in the compat_fgetln.c file). Patch verified by schwarze@. He notes that you'll need -pthread for -static binaries (due to libdb), so I've noted that -static should really only be used for BSD UNIX. While here, add some forgotten goop to the Makefile, building and cleaning extra manpages.
* implement -C (alternative config file) for apropos(1) and mandocdb(8),Ingo Schwarze2011-12-129-50/+144
| | | | | including various tweaks to the whatis(8) manual; ok kristaps@
* Explain where .so paths are rooted, and why, and discourage its use;Ingo Schwarze2011-12-111-2/+18
| | | | feedback and ok jmc@, suggested by and ok kristaps@.
* Ugh, environmental variables are Ev, not Er. Fix typos.Kristaps Dzonsons2011-12-111-2/+2
|
* Note CSS_DIR in man.cgi.7.Kristaps Dzonsons2011-12-111-1/+3
|
* When 303'ing a search directly to a page, remember to specify its manroot.Kristaps Dzonsons2011-12-111-57/+54
| | | | | | Also allow for a CSS_DIR to specify alternate CSS locations. Finally, some clutter as I assume that "css" and "progname" are already HTML-safe.
* Begin working on release notes. Also whitespace-fix man.cgi.7.Kristaps Dzonsons2011-12-102-8/+36
|
* Update man.cgi.7 to note compatibility and running with multiple roots.Kristaps Dzonsons2011-12-101-16/+64
|
* Slip in a fix to allow for empty cache directories.Kristaps Dzonsons2011-12-101-2/+2
|
* Finishing touches on multi-manroot man.cgi. If more than one root isKristaps Dzonsons2011-12-101-5/+24
| | | | | specified, write them out using a SELECT box. Else write nothing (the manroot will still be checked if it's specified).
* Switch on "manpath=" handling, which I call the "manroot" (as "manpath" isKristaps Dzonsons2011-12-101-29/+46
| | | | | | | | reserved for paths within a manroot). This functionality is bare-bones: right now, the default manroot is the first one scanned from the cache directory. At some point this will be sexy and smooth, but it's easy to upgrade functionality by modifying pathgen() and so forth. If a manroot isn't parsed from the "manpath=", results are always empty.