🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #654

dbm.a and ndbm.a archives

#654
From: Greg Ostravich
Date: Fri, 31 Mar 1989 03:17
27 lines
1837 bytes
Help!

I am looking to find out the format that 'dbm' and 'ndbm' use.  I do not
have access to source for either version.  My particular box does not have
ndbm, but I wanted to get the formats so I could write my own.   If anyone
knows where I can look to find out more about it, or knows things like
'bitno' is an int that refers to what block the record is stored in and pagf
is the file descriptor for the page file....let me know....
     I do have some of the stuff figured out, but I am not sure which hashing
functions are called, what some of the functions are returning, and the
format of both the 'file'.pag and 'file'.dir...
     If you have programs that access the file.pag and file.dir data files
that dbm & ndbm use, they would also be of great help.  Right now what I have 
been doing is creating a dummy database, doing dumps of the darn thing, then 
trying to find a relationship between the values I get back in the different 
global variables (bitno, blkno, hmask, etc) and where the record is physically 
located in the file. 
Please mail me any info instead of posting.....

           Thanks for any clues,
                     Greg Ostravich
...............................................................................
Greg Ostravich : University of Nebraska at Omaha
INTERNET: grego@unocss.unl.edu
BITNET:   conslt23@UNOMA1
UUCP:     !uunet!mcmi!unocss!grego
Technical Details
Message-ID: <976@altos86.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!nsc!icldata!altnet!altos86!dtynan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!nsc!icldata!altnet!altos86!dtynan
From: grego@unocss.unl.edu (Greg Ostravich)
Newsgroups: comp.unix
Subject: dbm.a and ndbm.a archives
Message-ID: <976@altos86.UUCP>
Date: 31 Mar 89 03:17:21 GMT
Sender: dtynan@altos86.UUCP
Organization: U. of Nebraska at Omaha
Lines: 27
Approved: dtynan@zorba.Tynan.COM