Commit Graph

37 Commits

Author SHA1 Message Date
lukem d8a2ebd20f Fix -Wsign-compare issues 2009-04-15 00:40:01 +00:00
xtraeme b2bb69490d WARNS=4 love. 2008-05-02 19:59:19 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
chuck d09fe2c467 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.
2006-04-10 14:39:06 +00:00
christos 3b6811d33b PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
dsl e09553f3ac Add (unsigned char) cast to ctype functions 2004-10-29 20:33:06 +00:00
kleink 25d6af944a Undo a pointless instance of readlink(2) buffer termination. 2004-05-10 19:23:48 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun d0a2aaaa79 use bounded string ops 2003-07-13 12:27:14 +00:00
itojun 5397d22f9f KNF 2003-05-09 00:47:46 +00:00
itojun 830e70f6d0 readlink(3) does not terminate string by \0. 2003-05-09 00:43:46 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
provos 32b88027c7 use readlink with bufsize - 1; approved thorpej. 2002-10-19 20:33:17 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
mycroft a939a62069 config.[ch] -> manconf.[ch] 2002-09-13 20:40:04 +00:00
lukem 334bc46aa5 - getlist(): add "int create" arg, which creates list if it's not present
(using guts of now defunct addlist())
- use TAILQ_*() macros appropriately when manipulating tailqs
2002-06-11 04:39:52 +00:00
wiz 1a73e0f493 Whitespace and punctuation nits. 2002-01-19 03:07:33 +00:00
uwe 2e8ee296d6 Don't discard all the hard work of setdefentries() and uniquepath().
Fixes bin/12742.  Reviewed by jdolecek.
2001-05-20 22:05:30 +00:00
jdolecek 28324fdada avoid using removelist()/renamelist()
while here, do some whitespace/const cleanup, convert to use addentry(),
  g/c section[] (now uses buf[] directly) - 10 character limit for section
  name is gone
2000-05-29 21:05:34 +00:00
tsutsui 5cb06e6456 Use uname(3) to determine MACHINE type. 2000-01-09 04:54:53 +00:00
mycroft ce477983b4 The previous change didn't even compile due to a warning.
Also, fix the same core dump in the case where there are no `_build' lines.
These should probably both emit a warning, so the user knows what happened.
1999-04-20 14:22:32 +00:00
dante 554cdf7fe9 No more core dump if _crunch section is missing in man.conf 1999-04-20 10:59:13 +00:00
mycroft a6b6e0db55 Don't rebuild the cat page if the time stamp is the *same*; this can happen
just because `make install' ran quickly.
1999-04-20 05:02:36 +00:00
dante 7678969db4 catman now use config.c and config.h from usr.bin/man 1999-04-04 16:52:34 +00:00
dante a7d911d5b7 Reference config.c and config.h from usr.bin/man 1999-04-04 16:50:47 +00:00
dante bea7444699 Add catman.
It require "_crunch" section in /etc/man.conf to re-compress the compressed man pages.
It handle symbolic links, but at this time no hard links.
config files are stolen from man with few changes to support "_crunch" section.

catman.8 miss the "full moon" joke, I can't remember it, if you can pleas add it :-)
1999-04-04 10:56:38 +00:00
mrg d23e58fc15 while catman doesn't `work' properly yet, use snprintf() when creating the
man paths, and add man section 9.  hopefully, this program will actually
work soon.
1997-10-24 01:31:35 +00:00
lukem 149f1867d1 rcsid fascism 1997-10-18 04:36:50 +00:00
lukem 272b4a406a getopt returns -1 not EOF, WARNSify 1997-10-18 04:11:01 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
cgd c6ac3ac23a make a bit clearer 1994-04-27 22:40:48 +00:00
cgd dd243c0bb4 kill hard coded paths, kill typos and a couple of bogons, etc. 1994-04-27 22:37:11 +00:00
chopps fb4bff1785 make whatis even if no formating. 1994-04-26 20:39:22 +00:00
chopps afaaa07188 It has some form of usefullness now, still no man.conf. 1994-04-26 20:15:50 +00:00
jtc 42f840d29d Fix spelling error in Copyright notice 1994-01-29 01:43:03 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
jtc 78df5feb47 First cut at "catman" 1993-07-27 21:29:27 +00:00