[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / cdb

File: [cvs.NetBSD.org] / src / lib / libc / cdb / Makefile.inc (download)

Revision 1.1, Sun Apr 25 00:54:46 2010 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache

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.

#	$NetBSD: Makefile.inc,v 1.1 2010/04/25 00:54:46 joerg Exp $

# Constant database reader/writer

.PATH:	${.CURDIR}/cdb

SRCS+=		cdbr.c cdbw.c

MAN+=		cdbr.3 cdbw.3 cdb.5

MLINKS+=	cdbr.3 cdbr_open.3
MLINKS+=	cdbr.3 cdbr_entries.3
MLINKS+=	cdbr.3 cdbr_get.3
MLINKS+=	cdbr.3 cdbr_find.3
MLINKS+=	cdbr.3 cdbr_close.3
MLINKS+=	cdbw.3 cdbw_open.3
MLINKS+=	cdbw.3 cdbw_put.3
MLINKS+=	cdbw.3 cdbw_put_data.3
MLINKS+=	cdbw.3 cdbw_put_key.3
MLINKS+=	cdbw.3 cdbw_output.3
MLINKS+=	cdbw.3 cdbw_close.3