3 cdb \- read from a constant database
7 int \fBcdb_seek(\fP\fIfd,key,len,dlen\fR\fB)\fP;
13 unsigned int \fIlen\fR;
20 in a constant database.
27 or \-1 if there was a read error.
34 needs an open file descriptor,
36 pointing to the database.
42 at the beginning of the data portion of the first record
45 and it stores the data length in
48 does not provide a way to read subsequent records with the same key.
50 It's fine to do several
52 lookups with the same open file descriptor.
53 Beware, however, that two simultaneous
55 lookups can fail horribly;
56 separate processes should not share the same database descriptor.
57 Furthermore, any updates after the database was opened
59 It's rarely a good idea for a long-running program
60 to hold a database open.