ndbm(5) ndbm(5)
NAME
ndbm - definitions for ndbm database operations
SYNOPSIS
#include <ndbm.h>
DESCRIPTION
The <ndbm.h> header defines the datum type as a structure that
includes at least the following members:
void *dptr A pointer to the application's data.
sizet dsize The size of the object pointed to by dptr.
The <ndbm.h> header defines the DBM type through typedef.
The following constants are defined as possible values for the
storemode argument to dbmstore():
DBMINSERT Insertion of new entries only.
DBMREPLACE Allow replacing existing entries.
The following are declared as functions and may also be defined as
macros:
int dbmclearerr(DBM *db);
void dbmclose(DBM *db);
int dbmdelete(DBM *db, datum key);
int dbmerror(DBM *db);
datum dbmfetch(DBM *db, datum key);
datum dbmfirstkey(DBM *db);
datum dbmnextkey(DBM *db);
DBM *dbmopen(const char *file, int openflags, modet filemode);
int dbmstore(DBM *db, datum key, datum content, int storemode);
The modet type is defined through typedef as described in
<sys/types.h>.
SEE ALSO
ndbm(3C).
Page 1 Reliant UNIX 5.44 Printed 11/98