summaryrefslogtreecommitdiffstats
path: root/catman.c
Commit message (Collapse)AuthorAgeFilesLines
* proper test for O_DIRECTORYIngo Schwarze2017-02-181-4/+0
|
* Be consistent in protecting __attribute__ attributes with __;Ingo Schwarze2017-02-171-2/+2
| | | | from Christos Zoulas <christos @ NetBSD>.
* Provide a variable BINM_CATMAN.Ingo Schwarze2017-02-161-2/+2
| | | | Suggested by Michael <Stapelberg@debian.org>.
* same as mandocdb.c rev. 1.196:Ingo Schwarze2017-02-091-2/+3
| | | | | for portability, use (char *)NULL in execlp(3) as discussed on tech@ OpenBSD (didn't blow up anywhere yet, but better safe than sorry)
* Illumos doesn't have O_DIRECTORY. Work around that for now, mayIngo Schwarze2017-02-091-0/+4
| | | | | fix it better after the 1.14.1 release. Portability issue reported by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
* config glue for recvmsg(2) and CMSG_FIRSTHDR(3);Ingo Schwarze2017-02-081-0/+4
| | | | needed for Solaris 11
* sendmsg(3) may block, so retryIngo Schwarze2017-02-081-1/+18
|
* Polishing:Ingo Schwarze2017-02-061-15/+40
| | | | | | | | | | * support -Ios= * create missing directories * fix output file permissions * error out on comminication failures I now consider this good enough for a first release. Bugs and missing features are still likely, though.
* experimental mandocd(8) and catman(8)Ingo Schwarze2017-02-041-0/+213
| | | | for development in the tree, not yet ready for production
* Remove catman(8): it's superfluous.Kristaps Dzonsons2012-06-091-512/+0
| | | | | | | | Users of man.cgi should be able to just copy in their directories and have the CGI fine everything on its own or just suck it up or, in the cases of multiple manroots, have a simple config file. Besides, now that mandocdb(8) is using relative paths for everything, needing a fancy "cp -R" is silly.
* Use size_t in catman to match manpath.h.Kristaps Dzonsons2012-06-081-1/+2
| | | | | Note this file will not be connected to the build for a little while as I get the new sqlite3 stuff in.
* Local variable initialisation.Kristaps Dzonsons2012-01-031-1/+1
|
* Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.hKristaps Dzonsons2011-12-251-9/+23
| | | | to do so.
* Give catman(8) the -C flag (like apropos and friends) and merge in someKristaps Dzonsons2011-12-181-3/+7
| | | | documentation from apropos(1) to be consistent.
* Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-characterKristaps Dzonsons2011-12-161-7/+8
| | | | | 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-161-23/+24
| | | | | | | 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.
* implement -C (alternative config file) for apropos(1) and mandocdb(8),Ingo Schwarze2011-12-121-1/+1
| | | | | including various tweaks to the whatis(8) manual; ok kristaps@
* First, remove the catman(8) jobstart() stuff. It only copies files.Kristaps Dzonsons2011-12-081-113/+33
| | | | | | Second, when creating the destination filename, append the index's file (which is an absolute path) to the cache directory, not to the index's directory name.
* Make catman and man.cgi understand the index type-field.Kristaps Dzonsons2011-12-041-15/+27
| | | | | | | Also make catman's man.conf be generated as catman.conf to avoid clobbering a real man.conf file. Finally, add a placeholder catman() function to man.cgi for preformatted manuals in the cache.
* Removing INSECURE mode. This is a work in progress! Logic forKristaps Dzonsons2011-11-271-4/+12
| | | | formatting manpages is now linked into man.cgi.
* Rename manup(8) to catman(8), which Linux already uses for a similar tool.Kristaps Dzonsons2011-11-261-0/+551