Home | History | Annotate | Download | only in cap_mkdb
History log of /src/usr.bin/cap_mkdb/cap_mkdb.c
RevisionDateAuthorComments
 1.30  03-Dec-2021  andvar fix various typos in comments, log messages and documentation.
 1.29  26-Mar-2013  christos PR/32591: JuanRP: Also remove the file we are going to be building to prevent
it from being used as input.
 1.28  23-Jan-2013  riastradh Move assignment out of assertion in cap_mkdb.
 1.27  29-Aug-2011  joerg branches: 1.27.2; 1.27.4; 1.27.8;
usage() is not unused, it is dead
 1.26  14-Aug-2011  christos eliminate gcc4.5 warnings
 1.25  18-Feb-2009  christos coverity CID 515: Use assert.
 1.24  21-Jul-2008  lukem branches: 1.24.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.23  15-Dec-2007  perry branches: 1.23.6;
convert __attribute__s to applicable cdefs.h macros
 1.22  13-Apr-2005  christos branches: 1.22.12;
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.
 1.21  23-Apr-2004  christos branches: 1.21.2;
const, knf, WARNS=3
 1.20  27-Oct-2003  lukem branches: 1.20.4;
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).
 1.19  16-Oct-2003  itojun safer use of realloc
 1.18  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.17  31-Jan-2003  uwe Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.
 1.16  31-Jan-2002  tv Make this compilable as a host tool.
 1.15  28-Jan-2001  jdolecek 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.
 1.14  28-Jan-2001  jdolecek make local functions static
 1.13  28-Jan-2001  jdolecek db_build(): fix memory leak, free() the buffer allocated by cgetnext() on
every loop iteration
 1.12  04-Oct-2000  mjl Un-__P and ANSIfy.
 1.11  04-Oct-2000  mjl Remove unused includes.
 1.10  27-Jun-1999  simonb Add -b and -l options to generate big- or little-endian databases
regardless of host byte order.
 1.9  28-Jul-1998  mycroft Increase the initial hash table size.
 1.8  19-Oct-1997  mrg fix compile warnings on the alpha.
 1.7  18-Oct-1997  lukem getopt returns -1 not EOF
 1.6  18-Oct-1997  lukem WARNSify, fix .Nm usage
 1.5  02-Sep-1995  jtc Sync with 4.4lite2
 1.4  26-Mar-1995  glass new rcsid format
 1.3  29-Aug-1994  mycroft Tweak the hash parameters a bit; big win when run over NFS. Merge (copyright
notice) changes from 4.4-Lite.
 1.2  01-Aug-1993  mycroft branches: 1.2.2;
Add RCS identifiers.
 1.1  18-May-1993  cgd branches: 1.1.1;
bring in getcap routines, supplied by CSRG, from 4.4...
 1.1.1.2  02-Sep-1995  jtc imported from 44lite2
 1.1.1.1  29-Aug-1994  mycroft Import original 4.4-Lite version.
 1.2.2.1  30-Aug-1994  cgd from trunk.
 1.20.4.3  02-Dec-2005  tron Apply patch (requested by christos in ticket #10182):
PR bin/32142: Fix build problem caused by ticket #5978.
 1.20.4.2  14-Nov-2005  riz Pull up following revision(s) (requested by christos in ticket #5978):
usr.bin/cap_mkdb/cap_mkdb.c: revision 1.22
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.
 1.20.4.1  14-Nov-2005  riz Pull up following revision(s) (requested by christos in ticket #5978):
usr.bin/cap_mkdb/cap_mkdb.c: revision 1.21
const, knf, WARNS=3
 1.21.2.1  09-Nov-2005  tron Pull up following revision(s) (requested by christos in ticket #943):
usr.bin/cap_mkdb/cap_mkdb.c: revision 1.22
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.
 1.22.12.1  09-Jan-2008  matt sync with HEAD
 1.23.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.24.6.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.27.8.2  23-Jun-2013  tls resync from head
 1.27.8.1  25-Feb-2013  tls resync with head
 1.27.4.1  31-Mar-2013  riz Pull up following revision(s) (requested by gdt in ticket #858):
usr.bin/cap_mkdb/cap_mkdb.c: revision 1.28
usr.bin/cap_mkdb/cap_mkdb.c: revision 1.29
Move assignment out of assertion in cap_mkdb.
PR/32591: JuanRP: Also remove the file we are going to be building to prevent
it from being used as input.
 1.27.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed