COHERENT manpages

This page displays the COHERENT manpage for gdbm_sync() [Flush buffered GDBM data into its data base].

List of available manpages
Index


gdbm_sync() -- GDBM Function (libgdbm)

Flush buffered GDBM data into its data base
#include <gdbm.h>
void gdbm_sync(database)
GDBM_FILE database;

Function gdbm_sync()  flushes buffered data into its data  base.  It is the
GDBM  analogue of  the system  call sync(). You  should call  this function
periodically if you are writing data  into a data base that had been opened
with flag GDBM_FAST.

database  points to  the data  base being manipulated.   It must  have been
returned by a call to gdbm_open().

gdbm_sync() does  not return until  all the buffers are  flushed onto disk.
gdbm_close()  automatically calls  gdbm_sync() to  flush  data-base buffers
before it closes a GDBM data base.

See Also


Notes

For  a statement  of copyright  and  permissions on  this routine,  see the
Lexicon entry for libgdbm.