manpagez: man pages & more
info gdbm
Home | html | info | man

File: gdbm.info,  Node: Locking,  Next: Variables,  Prev: Options,  Up: Top

19 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.

 -- gdbm interface: int gdbm_fdesc (GDBM_FILE DBF)
     Returns the file descriptor of the database DBF.  This value can be
     used as an argument to 'flock', 'lockf' or similar calls.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.