ICBB_NEW(3)

NAME
icdb_new, icdb_open, icdb_get, icdb_lookup, icdb_nentries, icdb_entries, icdb_update, icdb_add, icdb_rehash, icdb_save, icdb_close - simple database

SYNOPSIS
#include <icbd.h>
struct icdb *
icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize);
struct icdb *
icdb_open(const char *name, int flags, uint32_t version);
int
icdb_get(struct icdb *db, void *entry, uint32_t idx);
int
icdb_lookup(struct icdb *db, int keynum, const void *key, void *entry, uint32_t *idxp);
int
icdb_nentries(struct icdb *db);
const void *
icdb_entries(struct icdb *db);
int
icdb_update(struct icdb *db, const void *entry, int offset);
int
icdb_add(struct icdb *db, const void *entry);
int
icdb_rehash(struct icdb *db);
int
icdb_save(struct icdb *db, int fd);
int
icdb_close(struct icdb *db);

DESCRIPTION
These functions provide access to a simple memory mapped database format.

EXAMPLES
Look how easy it is to use.

STANDARDS
These functions are not standardized.

HISTORY
The icdb functions were introduced in OpenBSD 6.0.

AUTHORS
Ted Unangst <tedu@openbsd.org>