jdolecek
b80b95a77a
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.
2001-01-28 20:01:42 +00:00
jdolecek
26a80cb447
make local functions static
2001-01-28 19:42:17 +00:00
jdolecek
8d46cb93bd
db_build(): fix memory leak, free() the buffer allocated by cgetnext() on
...
every loop iteration
2001-01-28 17:34:31 +00:00
mjl
7063d4bc33
Un-__P and ANSIfy.
2000-10-04 20:02:26 +00:00
mjl
a1ac373d57
Remove unused includes.
2000-10-04 20:00:47 +00:00
simonb
a1997f6cbe
Add -b and -l options to generate big- or little-endian databases
...
regardless of host byte order.
1999-06-27 05:49:02 +00:00
mycroft
8cedc3e89f
Increase the initial hash table size.
1998-07-28 19:27:00 +00:00
mrg
15dc191955
fix compile warnings on the alpha.
1997-10-19 14:05:47 +00:00
lukem
9992ac3ea9
getopt returns -1 not EOF
1997-10-18 12:54:24 +00:00
lukem
b749a32930
WARNSify, fix .Nm usage
1997-10-18 12:31:01 +00:00
jtc
3e4b73c5a6
Sync with 4.4lite2
1995-09-02 05:45:13 +00:00
glass
c27cdc6057
new rcsid format
1995-03-26 03:59:33 +00:00
mycroft
573393b3d1
Tweak the hash parameters a bit; big win when run over NFS. Merge (copyright
...
notice) changes from 4.4-Lite.
1994-08-29 22:53:45 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
8d5826635d
bring in getcap routines, supplied by CSRG, from 4.4...
1993-05-18 07:37:51 +00:00