www.delorie.com/gnu/docs/gdbm/gdbm_14.html   search  
Buy GNU books!


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

14. File Locking.

With locking disabled (if gdbm_open was called with GDBM_NOLOCK), the user may want to perform their own file locking on the database file in order to prevent multiple writers operating on the same file simultaneously.

In order to support this, the gdbm_fdesc routine is provided.

ret = gdbm_fdesc(dbf);

The single valid parameter is:

The pointer returned by gdbm_open.

The return value will be the file descriptor of the database.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003