NetBSD/lib/libc/DB
mycroft 7133ae673a Clean up deleted files. 1993-05-26 16:22:40 +00:00
..
btree Clean up deleted files. 1993-05-26 16:22:40 +00:00
db This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
doc This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
hash Clean up deleted files. 1993-05-26 16:22:40 +00:00
man This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
mpool This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
recno This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
Makefile.inc Remove -I; include files are now in /usr/include. 1993-04-26 02:14:20 +00:00
README This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00
VERSION This is the latest libdb from vangogh. Messaged so it compiles into 1993-04-21 04:51:09 +00:00

README

#	@(#)README	5.2 (Berkeley) 2/14/93

This is the directory to use for creating a library of the dbopen(3)
routines.  The Makefile builds the base system.  By changing it and
the compat.h file, you should be able to pick and choose the various
things your system needs to make libdb run.

The knobs that you may have to turn:

In the Makefile:
	If you don't have mktemp or mkstemp on your system, add
	"mktemp.o" to the COMP list.

In include/compat.h:
	Before attempting to build this library, you should skim through
	the compat.h file, and adjust it as necessary for your system.
	It's possible to use the #ifndef construct to figure out if a
	#ifdef has been set, but C provides no similar method to figure
	out if a typedef has been done.  All of the typedef's are grouped
	at the top of compat.h, your compile errors will tell you which
	ones you need.

Some other problems:
	You may see warning messages about illegal pointer combinations.
	It's because systems prototype malloc, calloc and realloc in
	different places.  If you want to stop the warnings, find out
	where your system prototypes them, and include it in compat.h,
	or, just prototype them yourself.

	The dbopen(3) routines also use the snprintf(3) function.  If
	you don't have this function, change the snprintf() call in
	btree/bt_open.c:tmp() from snprintf() to sprintf(), making sure
	to delete the SECOND argument, the size of the buffer.

To install:
	Programs using the dbopen(3) interface have to include db.h.
	To install the library, you'll need to put db.h (found in the
	directory PORT/include) and the library libdb.a in some place
	accesible to your program.