History log of /netbsd/usr.bin/cap_mkdb/cap_mkdb.c (Results 1 – 25 of 30)
Revision Date Author Comments
# 924002df 03-Dec-2021 andvar <andvar@NetBSD.org>

fix various typos in comments, log messages and documentation.


# e7fbee39 26-Mar-2013 christos <christos@NetBSD.org>

PR/32591: JuanRP: Also remove the file we are going to be building to prevent
it from being used as input.


# 9f009513 23-Jan-2013 riastradh <riastradh@NetBSD.org>

Move assignment out of assertion in cap_mkdb.


# 2a87c812 29-Aug-2011 joerg <joerg@NetBSD.org>

usage() is not unused, it is dead


# ecfeb7e4 14-Aug-2011 christos <christos@NetBSD.org>

eliminate gcc4.5 warnings


# e60db6c8 18-Feb-2009 christos <christos@NetBSD.org>

coverity CID 515: Use assert.


# 98e5374c 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# 8b0f9554 15-Dec-2007 perry <perry@NetBSD.org>

convert __attribute__s to applicable cdefs.h macros


# 69637e80 13-Apr-2005 christos <christos@NetBSD.org>

Write the database file into a temporary file first, because otherwise if
we don't specify an output filename, the database file we create will end
up being used during population as the database fil

Write the database file into a temporary file first, because otherwise if
we don't specify an output filename, the database file we create will end
up being used during population as the database file to find entries quickly.

show more ...


# 5cb9041b 23-Apr-2004 christos <christos@NetBSD.org>

const, knf, WARNS=3


# 171d6532 27-Oct-2003 lukem <lukem@NetBSD.org>

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/com

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).

show more ...


# d5250e4e 16-Oct-2003 itojun <itojun@NetBSD.org>

safer use of realloc


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


# 4eb408dc 31-Jan-2003 uwe <uwe@NetBSD.org>

Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.


# cce24853 31-Jan-2002 tv <tv@NetBSD.org>

Make this compilable as a host tool.


# b80b95a7 28-Jan-2001 jdolecek <jdolecek@NetBSD.org>

Examine input files and set the openinfo hint accordingly to number of
found records. This makes resulting db for small capability databases
much smaller - for vgrind(1), the resulting vgrindefs.db i

Examine input files and set the openinfo hint accordingly to number of
found records. This makes resulting db for small capability databases
much smaller - for vgrind(1), the resulting vgrindefs.db is about 24KB
instead of ~500KB.

The hint passed to dbopen() is number of records in input files
rounded up to nearest power-of-two value and multiplied by two.
Besides being a nice conservative value, termcap.db become about
70KB bigger if the hint matches the count of records (1023), probably
due to hash overflows.

show more ...


# 26a80cb4 28-Jan-2001 jdolecek <jdolecek@NetBSD.org>

make local functions static


# 8d46cb93 28-Jan-2001 jdolecek <jdolecek@NetBSD.org>

db_build(): fix memory leak, free() the buffer allocated by cgetnext() on
every loop iteration


# 7063d4bc 04-Oct-2000 mjl <mjl@NetBSD.org>

Un-__P and ANSIfy.


# a1ac373d 04-Oct-2000 mjl <mjl@NetBSD.org>

Remove unused includes.


# a1997f6c 27-Jun-1999 simonb <simonb@NetBSD.org>

Add -b and -l options to generate big- or little-endian databases
regardless of host byte order.


# 8cedc3e8 28-Jul-1998 mycroft <mycroft@NetBSD.org>

Increase the initial hash table size.


# 15dc1919 19-Oct-1997 mrg <mrg@NetBSD.org>

fix compile warnings on the alpha.


# 9992ac3e 18-Oct-1997 lukem <lukem@NetBSD.org>

getopt returns -1 not EOF


# b749a329 18-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify, fix .Nm usage


12