Home | History | Annotate | only in /src/libexec/getNAME
History log of /src/libexec/getNAME
RevisionDateAuthorComments
 1.6 01-Nov-1997  mrg 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...
 1.5 08-Oct-1997  mrg branches: 1.5.2;
merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.12 29-May-2008  mrg remove clause #3 from my license where there are no other
copyright holders involved.
 1.11 25-Feb-2003  wiz branches: 1.11.30; 1.11.32;
.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.10 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.9 08-Mar-2002  jdolecek improve description of options - particularily, avoid repeating the option
in the description, and use 'print' instead of 'returns' or 'determines'
 1.8 08-Mar-2002  jdolecek makewhatis(8) doesn't use getNAME(8) nowadays
 1.7 15-Jan-2002  wiz Whitespace nits, sort sections, end sentences with dots.
 1.6 19-Nov-1999  enami Don't pass so many args to .Nd macro. It just overflows.
 1.5 22-Mar-1999  garbled branches: 1.5.6;
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.
 1.4 21-May-1998  christos 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.
 1.3 04-Dec-1997  mikel edit a bit, and bewail inability to handle compressed manpages
 1.2 02-Nov-1997  lukem branches: 1.2.2;
* 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
 1.1 01-Nov-1997  mrg 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...
 1.2.2.2 10-Nov-1997  thorpej Sync w/ trunk.
 1.2.2.1 02-Nov-1997  thorpej file getNAME.8 was added on branch netbsd-1-3 on 1997-11-10 19:54:39 +0000
 1.5.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.32.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.30.1 04-Jun-2008  yamt sync with head
 1.27 29-Aug-2011  joerg Use __dead
 1.26 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.25 12-Sep-2006  hubertf branches: 1.25.18;
Handle .br - this makes processing of the netbsd-4
src/dist/bzip2/bzip2.1 file work:

Before:
% getNAME /usr/cvs/src-4/dist/bzip2/bzip2.1
bzip2, bunzip2 (1) - a block-sorting file compressor, v1.0.2 .br bzcat (1) - decompresses files to stdout .br bzip2recover (1) - recovers data from damaged bzip2 files

After:
% getNAME /usr/cvs/src-4/dist/bzip2/bzip2.1
bzip2, bunzip2 (1) - a block-sorting file compressor, v1.0.2
bzcat (1) - decompresses files to stdout
bzip2recover (1) - recovers data from damaged bzip2 files

Verified with code from src/share/man/man0 that nothing else was
broken by this change.
 1.24 20-Mar-2004  christos Oops, put back my copyright.
 1.23 20-Mar-2004  christos - remove my license
- un __P
- de-lint
 1.22 19-Sep-2003  itojun realloc mistake
 1.21 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.20 31-Jan-2002  christos More sanity checks to avoid looking at unitialized memory.
 1.19 19-Feb-2001  cgd convert to use getprogname()
 1.18 04-Feb-2001  christos fix nested extern
 1.17 09-Nov-1999  drochner 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.
 1.16 08-Feb-1999  augustss branches: 1.16.6;
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.
 1.15 10-Oct-1998  hubertf Omit "(section)" if either -i or -t are given, print "\n" and insert a
"-" at the right place when -i is given.
 1.14 21-May-1998  christos 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.
 1.13 10-Apr-1998  fair getNAME now handles [nt]roff comments (.\") correctly.
 1.12 30-Mar-1998  mrg break if ".PP" also
 1.11 03-Feb-1998  perry add <unistd.h> to fix compiler warning
 1.10 22-Dec-1997  christos 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...
 1.9 02-Nov-1997  lukem * 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
 1.8 01-Nov-1997  mrg 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...
 1.7 20-Oct-1997  enami branches: 1.7.2;
No need to declare optind.
 1.6 08-Oct-1997  enami Put a whitespace after the keyword `switch'.
 1.5 08-Oct-1997  enami Compare a return value of getopt() against -1 instead of EOF.
 1.4 07-Oct-1997  mrg WARNS?=1. RCS ids
 1.3 29-Apr-1997  tls Sync to 4.4BSD-Lite2
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 29-Apr-1997  tls Import from 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 10-Nov-1997  thorpej Sync w/ trunk.
 1.16.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.25.18.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.

RSS XML Feed