*BSD News Article 49485


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!agis!ns2.mainstreet.net!news3.net99.net!news.cais.net!news.cinenet.net!island.interverse.com!user
From: richard@interverse.com (Richard Gilligan)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: dbm or equivalent in BSDi ?
Date: Mon, 21 Aug 1995 18:08:48 -0800
Organization: Cinenet Communications,Internet Access,Los Angeles;310-301-4500
Lines: 35
Message-ID: <richard-2108951808480001@island.interverse.com>
NNTP-Posting-Host: island.interverse.com

Short form >> Can DBM or NDBM be run under BSDi 2.0?

Longer >>
Many unix systems have a very simple database feature called DBM or NDBM. 
Our BSDi 2.0 out of the box does not seem to have this feature and my
4.4BSD manual for O'Reilly mentions nothing by those names leading me to
wonder if it even exists for BSD.  Perl has hooks that make it easy to use
DBM (which has come in very handy when I was working around UNIX(r) System
V Release 4 and IRIX Release 5.2).

Does anyone know if there is an equivelent program for BSDi?

--a bit from man page DBM(3b) on a UNIX(r) System V Release 4 machine :

NAME
     dbm: dbminit, dbmclose, fetch, store, delete, firstkey, nextkey - data
     base subroutines

DESCRIPTION
     Note: the dbm library has been superceded by ndbm(3B), and is now
     implemented using ndbm.  These functions maintain key/content pairs in a
     data base.  The functions will handle very large (a billion blocks)
     databases and will access a keyed item in one or two file system
     accesses.
     
     Keys and contents are described by the datum typedef.  A datum specifies
     a string of dsize bytes pointed to by dptr. Arbitrary binary data, as
     well as normal ASCII strings, are allowed.  The data base is stored in
     two files.  One file is a directory containing a bit map and has `.dir'
     as its suffix.  The second file contains all data and has `.pag' as its
     suffix.



Thanks you for any pointers,