dbm.a and ndbm.a archives
Greg Ostravich
grego at unocss.unl.edu
Fri Mar 31 13:17:21 AEST 1989
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 at unocss.unl.edu
BITNET: conslt23 at UNOMA1
UUCP: !uunet!mcmi!unocss!grego
More information about the Comp.unix
mailing list