CVS log for mandoc/catman.c

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 15 15:04:02 2021 UTC (2 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (unified) to selected 1.10 (unified)

better error message if mandocd is not found

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 14 23:40:31 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (unified) to selected 1.10 (unified)

Make the ./configure script simpler, more robust, and 23 lines shorter:
* three rather than four arguments for singletest()
* let runtest() support testing two variants of compiler flags
* always report a failed test, even when another test follows
* run all tests before detecting fatal conditions
* rename HAVE_CMSG_XPG42 to NEED_XPG4_2 for consistency
* consistently use braces for shell variable interpolation
* drop archaic "X${" syntax and unusual "==" in string comparisons

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 18 12:24:24 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 (unified) to selected 1.10 (unified)

proper test for O_DIRECTORY

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 17 14:31:52 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (unified) to selected 1.10 (unified)

Be consistent in protecting __attribute__ attributes with __;
from Christos Zoulas <christos @ NetBSD>.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Feb 16 15:12:32 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (unified) to selected 1.10 (unified)

Provide a variable BINM_CATMAN.
Suggested by Michael <Stapelberg@debian.org>.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 9 20:53:33 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (unified) to selected 1.10 (unified)

same as mandocdb.c rev. 1.196:
for portability, use (char *)NULL in execlp(3) as discussed on tech@
OpenBSD (didn't blow up anywhere yet, but better safe than sorry)

Revision 1.17 / (download) - annotate - [select for diffs], Thu Feb 9 18:46:44 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.16: +5 -1 lines
Diff to previous 1.16 (unified) to selected 1.10 (unified)

Illumos doesn't have O_DIRECTORY.  Work around that for now, may
fix it better after the 1.14.1 release.  Portability issue reported
by Sevan Janiyan <venture37 at geeklan dot co dot uk>.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 8 16:11:40 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (unified) to selected 1.10 (unified)

config glue for recvmsg(2) and CMSG_FIRSTHDR(3);
needed for Solaris 11

Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 8 14:50:53 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.14: +19 -2 lines
Diff to previous 1.14 (unified) to selected 1.10 (unified)

sendmsg(3) may block, so retry

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 6 19:02:37 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.13: +41 -16 lines
Diff to previous 1.13 (unified) to selected 1.10 (unified)

Polishing:
* 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.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 4 12:03:07 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.12: +156 -455 lines
Diff to previous 1.12 (unified) to selected 1.10 (unified)

experimental mandocd(8) and catman(8)
for development in the tree, not yet ready for production

Revision 1.12, Sat Jun 9 11:27:38 2012 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.11: +1 -1 lines
FILE REMOVED

Remove catman(8): it's superfluous.
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.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 8 10:33:48 2012 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_2
Branch point for: VERSION_1_12
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (unified)

Use size_t in catman to match manpath.h.
Note this file will not be connected to the build for a little while as
I get the new sqlite3 stuff in.

Revision 1.10 / (download) - annotate - [selected], Tue Jan 3 15:17:20 2012 UTC (12 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (unified)

Local variable initialisation.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 25 17:49:52 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.8: +24 -10 lines
Diff to previous 1.8 (unified) to selected 1.10 (unified)

Continue changing mandoc.{index,db} into whatis.{index,db}.  Use mandocdb.h
to do so.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 18 18:51:01 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.7: +8 -4 lines
Diff to previous 1.7 (unified) to selected 1.10 (unified)

Give catman(8) the -C flag (like apropos and friends) and merge in some
documentation from apropos(1) to be consistent.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 16 12:06:35 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.6: +9 -8 lines
Diff to previous 1.6 (unified) to selected 1.10 (unified)

Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-character
bytes.  This cuts down a little in index size and allows for cleaner
extraction of information.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Dec 16 08:04:34 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.5: +25 -24 lines
Diff to previous 1.5 (unified) to selected 1.10 (unified)

Make paths in the mandocdb(8) index relative to the databases' path
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.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 12 02:00:49 2011 UTC (12 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (unified) to selected 1.10 (unified)

implement -C (alternative config file) for apropos(1) and mandocdb(8),
including various tweaks to the whatis(8) manual;
ok kristaps@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 8 00:20:52 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +34 -114 lines
Diff to previous 1.3 (unified) to selected 1.10 (unified)

First, remove the catman(8) jobstart() stuff.  It only copies files.
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.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 4 22:52:50 2011 UTC (12 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.2: +28 -16 lines
Diff to previous 1.2 (unified) to selected 1.10 (unified)

Make catman and man.cgi understand the index type-field.
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.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 27 11:46:44 2011 UTC (12 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +13 -5 lines
Diff to previous 1.1 (unified) to selected 1.10 (unified)

Removing INSECURE mode.  This is a work in progress!  Logic for
formatting manpages is now linked into man.cgi.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 26 19:54:13 2011 UTC (12 years, 4 months ago) by kristaps
Branch: MAIN
Diff to selected 1.10 (unified)

Rename manup(8) to catman(8), which Linux already uses for a similar tool.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb