Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Chuck Cranor <chuck@netbsd.org>
List: source-changes
Date: 04/10/2006 14:39:06
Module Name:	src
Committed By:	chuck
Date:		Mon Apr 10 14:39:06 UTC 2006

Modified Files:
	src/libexec/makewhatis: makewhatis.c
	src/usr.bin/apropos: apropos.c
	src/usr.bin/man: man.c manconf.c manconf.h
	src/usr.bin/whatis: whatis.c
	src/usr.sbin/catman: catman.c

Log Message:
modified man(1):
 - avoid double slashes when displaying man pages (got tired
   of '/usr/share/man//cat1/man.0').
 - got rid of __P() while working on it.
 - incorporate some of my old notes explaining how manpath works into the
   comments of the code itself.
 - renamed some of the vars so that the code is consistent throughout
   (and hopefully clearer and easier to understand)
 - fixed relative man paths for multiple man pages (man did a chdir()
   on the first man page it had to format --- this broke any remaining
   relative path man pages left to process).   save old directory and
   fchdir() back to it after formatting.
 - improved doc on "man -h" which does more than just whatis(1) [e.g.
   "man -h fopen" prints the required include files and the prototypes
   rather than just the one-liner you get with whatis(1)]
 - manconf.c now fills in the "len" length field in the TAG/ENTRY
   structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out.   this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating.  revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this.  also remove
__P on updated files.


To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/libexec/makewhatis/makewhatis.c
cvs rdiff -r1.26 -r1.27 src/usr.bin/apropos/apropos.c
cvs rdiff -r1.32 -r1.33 src/usr.bin/man/man.c
cvs rdiff -r1.4 -r1.5 src/usr.bin/man/manconf.c
cvs rdiff -r1.2 -r1.3 src/usr.bin/man/manconf.h
cvs rdiff -r1.20 -r1.21 src/usr.bin/whatis/whatis.c
cvs rdiff -r1.25 -r1.26 src/usr.sbin/catman/catman.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.