Commit Graph

22 Commits

Author SHA1 Message Date
enami
82d7115cf2 Don't pass so many args to .Nd macro. It just overflows. 1999-11-19 01:12:39 +00:00
drochner
85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
garbled
f124765044 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:25:43 +00:00
augustss
e165b79030 Get rid of the annoying warning about NAMN not being a proper first .SH.
Do it by adding a table of allowed first SH tags.
1999-02-08 20:05:57 +00:00
hubertf
030e6d4f1d Omit "(section)" if either -i or -t are given, print "\n" and insert a
"-" at the right place when -i is given.
1998-10-10 02:53:12 +00:00
christos
f7ab9656fe From chopps: be more picky about handling incorrectly formatted man pages.
Look for .Sh NAME; this breaks internationalized man pages. Someone could
put NLS support for it.
1998-05-21 23:21:48 +00:00
fair
c90e2a4b2e getNAME now handles [nt]roff comments (.\") correctly. 1998-04-10 22:32:45 +00:00
mrg
2ccff62399 break if ".PP" also 1998-03-30 01:45:27 +00:00
perry
3ed4e7c6e3 add <unistd.h> to fix compiler warning 1998-02-03 03:24:24 +00:00
christos
04691c5e33 Overhaul:
- Use fgetln instead of fgets and keep track of line limits.
	- Use dynamically allocated buffers instead of fixed length ones.
	- Use err/warn
	- Don't re-scan strings needlessly.
	- Handle extensions properly for page names that contain more than
	  one period printing:
		resolv.conf (5) - resolver configuration file
	  instead of:
		resolv.conf (conf.5) - resolver configuration file

This fixes PR/4738: "Coredump in getNAME" as a side effect.

This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
1997-12-22 20:02:33 +00:00
mikel
8e4d4f760b edit a bit, and bewail inability to handle compressed manpages 1997-12-04 06:41:42 +00:00
lukem
b0b8aac67b * use (``foo'') instead of (<em>foo</em>)
* order SEE ALSO on man section then alphabetical
* add -w to usage string
* deprecate register
* minor code move in newman section, to follow style of oldman section
1997-11-02 00:23:36 +00:00
mrg
ef53ad130b add a manual for getNAME. also, change the `default' output to be in
a form much more useful for an apropos(1) database.  this will be used
by makewhatis(1) to generate the whatis.db file's now...
1997-11-01 15:03:51 +00:00
enami
f4c54f2517 No need to declare optind. 1997-10-20 02:00:36 +00:00
mrg
2268d2dfb3 merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec. 1997-10-08 09:07:11 +00:00
enami
782a241926 Put a whitespace after the keyword `switch'. 1997-10-08 01:00:41 +00:00
enami
42eb13e478 Compare a return value of getopt() against -1 instead of EOF. 1997-10-08 00:56:46 +00:00
mrg
16e14cfd8d WARNS?=1. RCS ids 1997-10-07 10:57:08 +00:00
tls
83c7e41542 Sync to 4.4BSD-Lite2 1997-04-29 20:39:10 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00