File: cdb_init.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.TH cdb_init 3
.SH NAME
cdb_init \- open a constant database
.SH SYNTAX
.B #include <libowfat/cdb.h>

int cdb_init(struct cdb *\fIc\fR, int \fIfd\fR);

.SH DESCRIPTION
.B cdb_init
places information about \fIfd\fR into a struct cdb variable \fIc\fR.
\fIfd\fR has to be a seekable file previously opened for reading.

On systems that support mmap, cdb_init will try to map the whole
constant database into memory.

The inverse operation to cdb_init is cdb_free.

.SH "SEE ALSO"
cdb_free(3), cdb_read(3), cdb_find(3), cdbmake(1)