Commit Graph

13 Commits

Author SHA1 Message Date
joerg 270aa46424 Don't refuse the open databases without entries or keys, just protect
the divisions. cdbr_find and cdbr_get already have the appropiate
checks.
2012-09-27 00:37:43 +00:00
joerg ca946cd63d Redo hashing, if two of the three individual hashes result in identical
hash modules. This is the trivial case for loops in the 3-graph and got
lost when adopting the nbperf code.
2012-07-21 22:49:37 +00:00
joerg 1fa9b84508 Add cdbr(3) support to tools/compat. 2012-06-04 19:06:45 +00:00
wiz cad559dd33 Fix typos. 2012-06-04 00:26:29 +00:00
joerg f7ef3610be Add a special seeder for cdbw_output that gives stable results.
Hook up cdbw(3) for the tool build.
2012-06-03 21:02:50 +00:00
christos 64c780f832 hack to silence lint 2012-03-17 17:59:58 +00:00
joerg 51d5b8a1ef Revert bloat. 2012-03-13 21:32:12 +00:00
christos c5e820cae4 PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@
2012-03-13 21:13:30 +00:00
plunky 5cf5f72e75 this page title is CDBW 2010-11-03 16:17:48 +00:00
veego 51cdef0f36 Use MAP_FILE|MAP_SHARED instead of MAP_FILE for the flags parameter of mmap(2).
Patch is from martin.

Solves my own PR kern/43346
2010-06-03 12:40:52 +00:00
jruoho 5430c65883 .Pp after .Ed. 2010-04-27 14:26:52 +00:00
wiz eba2c99734 Various fixes, mostly for typos. 2010-04-25 10:32:44 +00:00
joerg b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00