History log of /freebsd-10.0-release/usr.bin/makewhatis/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


237348 20-Jun-2012 delphij

Currently the code uses gzFile * for a zlib file descriptor, which
is not correct. The code works by accident because gzFile is
currently defined as void *, and internally it would be casted from
or to its real type.

A newer version of zlib will instead define it as a pointer to a
specific type pointer (namely, struct gzFile_s *). This therefore
would cause stricter checks and compiler would catch this type
mismatch.

This change does not cause any changes to the resulting binary,
as validated with md5(1).

MFC after: 3 days


201512 04-Jan-2010 kib

Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions,
so we better follow too (older glibc used old BSDish alphasort prototype
and corresponding type of the comparision function for scandir). While
there, change the definitions of the functions to ANSI C and fix several
style issues nearby.

Remove requirement for "sys/types.h" include for functions from manpage.

POSIX also requires that alphasort(3) sorts as if strcoll(3) was used,
but leave the strcmp(3) call in the function for now.

Adapt in-tree callers of scandir(3) to new declaration. The fact that
select_sections() from catman(1) could modify supplied struct dirent is
a bug.

PR: standards/142255
MFC after: 2 weeks


194798 23-Jun-2009 delphij

%.s expects an int as the length specifier, so cast properly.


172752 18-Oct-2007 edwin

Teach makewhatis.c to treat .SS with the same severity as .SH.

At least one port (net-mgmt/net-snmp) creates man-pages which are
in the format:

.SH NAME
The Net-SNMP agent \- The snmp agent responds to SNMP queries from management stations.

.PP
.SS "Modules"

At this moment, makewhatis determines the end of the .SH NAME section
as where it finds .SH again, but there is none here, is it "terminated"
by the .SS.

PR: bin/116706
Submitted by: edwin@
Approved by: re (Ken Smith), grog (mentor)
MFC after: 1 week


153115 05-Dec-2005 ru

Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.

Reviewed by: nyan


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131472 02-Jul-2004 ru

Removed trailing whitespace.


107053 18-Nov-2002 ru

Install /usr/libexec/makewhatis.local and /usr/libexec/catman.local.
This has slipped through the cracks of The Great Perl Script Rewrite.

Repocopied by: joe


102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


99970 14-Jul-2002 charnier

The .Nm utility


99533 07-Jul-2002 robert

Remove a debug output statement.


99532 07-Jul-2002 robert

- Fix the code in sbuf_need() to double the allocation size until
the new content size fits into the sbuf, instead of assuming
that allocating twice the old size is enough.
- Use memmove(3) rather than strcpy(3) to copy overlapping
strings.

PR: bin/39930


97976 07-Jun-2002 keramida

Use size_t or ino_t instead of int, and remove a few warnings.
The makewhatis utility is now ok with WARNS=3.

Reviewed by: bde


97102 22-May-2002 ru

Unroff all forms of \f and \*, and the simplest form of \s.

Submitted by: fenner, ru
Reviewed by: ru, fenner


97002 20-May-2002 ru

Style.


96863 18-May-2002 ru

Fix markup.

Give Wolfram a credit for writing the original version in Perl
like in killall(1).


96861 18-May-2002 ru

More whitespace fixes.


96859 18-May-2002 ru

Fixed spacing.


96858 18-May-2002 ru

Look into machine specific subdirs.


96845 18-May-2002 markm

Add C rewrites of catman and makewhatis. These aren't quite as
the submitter supplied them, as I did some WARNS=n fixups (mostly
const-ification).

Submitted by: John Rochester <john@jrochester.org>


79557 10-Jul-2001 ru

mdoc(7) police: removed punctuation after the last SEE ALSO xref.


79528 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


70013 14-Dec-2000 ru

mdoc(7) police: removed history info from the .Os call.


68938 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


50472 27-Aug-1999 peter

$Id$ -> $FreeBSD$


49297 30-Jul-1999 nik

Reflect the change from the /etc/weekly to /etc/periodic/weekly/*.

PR: docs/12734
Submitted by: Alexey M. Zelkin <phantom@scorpion.crimea.ua>


26827 23-Jun-1997 steve

Fix a minor nit in the .Dd macro invocation so that
the revision date is displayed correctly.


22996 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20241 09-Dec-1996 mpp

Minor formatting fixes.

Submitted by: Sandro Sigala <sandro@cat.local.net> as part of PR # 2134.


17849 27-Aug-1996 wosch

sync copyright with /usr/share/examples/etc/bsd-style-copyright


15857 22-May-1996 wosch

New option -append: teach makewhatis to only add records, instead
of clobbering the entire database.

sort options in alphabetic order.

install manpage makewhatis.local.8


15755 12-May-1996 wosch

Bugfix: nested *?+ in regexp at /usr/bin/makewhatis line 286

Submitted by: invalid opcode <coredump@nervosa.com>

makewhatis.local - start makewhatis(1) only for file systems
physically mounted on the system
Running makewhatis from /etc/weekly for rw nfs-mounted /usr may kill
your NFS server -- all clients start makewhatis at the same time!
So use this wrapper instead calling makewhatis directly.

Pointed out by: Bruce