методы доступа к базе данных (database access methods)
Ошибки (Error)
The dbopen
() routine may fail and set errno for any of the errors
specified for the library routines open(2) and malloc(3) or the
following:
EFTYPE
A file is incorrectly formatted.
EINVAL
A parameter has been specified (hash function, pad byte,
etc.) that is incompatible with the current file
specification or which is not meaningful for the function
(for example, use of the cursor without prior
initialization) or there is a mismatch between the version
number of file and the software.
The close routines may fail and set errno for any of the errors
specified for the library routines close(2), read(2), write(2),
free(3), or fsync(2).
The del, get, put, and seq routines may fail and set errno for
any of the errors specified for the library routines read(2),
write(2), free(3), or malloc(3).
The fd routines will fail and set errno to ENOENT
for in memory
databases.
The sync routines may fail and set errno for any of the errors
specified for the library routine fsync(2).