dbh_update - Man Page

write data record or file header to disk

Synopsis

#include <dbh.h>

FILE_POINTER dbh_update (DBHashTable *dbh);
int dbh_writeheader (DBHashTable *dbh);

Description

dbh_update will update the current record in memory to the disk based hash. This function will update erased records as well as unerased records,  but if an erased record is updated, it is automatically unerased.

dbh_writeheader will write out the DBHashTable header information.  It is advisable to call this function inmediately after creation of a new DBHashTable to force a buffer flush.

Return Value

dbh_update returns 0 on error, byte offset of loaded record otherwise while dbh_writeheader returns 0 if error, 1 otherwise.

See Also

dbh (0), dbh_set_data (3), dbh_set_key (3), dbh_set_size (3), dbh_set_recordsize (3), dbh_load (3), dbh_sweep (3)

Author

Edscott Wilson Garcia <edscott@xfce.org>

Referenced By

dbh(3), dbh_find(3), dbh_genkey(3), dbh_load(3), dbh_set_data(3), dbh_set_size(3).

The man page dbh_writeheader(3) is an alias of dbh_update(3).

DBH DBHashTables Programmers' Manual