diff options
author | Jason Downs <downsj@downsj.com> | 2008-11-30 07:29:12 +0000 |
---|---|---|
committer | Jason Downs <downsj@downsj.com> | 2008-11-30 07:29:12 +0000 |
commit | 75e98477a3854da8e582493f4888b3dca8d257d4 (patch) | |
tree | c18accfef04030f856b9d8841c90bbcefef6a2d6 /configure.ac | |
parent | 5a88187f15f70c5d7914469b3e39e58259f59c01 (diff) | |
download | gdbm-75e98477a3854da8e582493f4888b3dca8d257d4.tar.gz gdbm-75e98477a3854da8e582493f4888b3dca8d257d4.tar.bz2 |
Implement a new basic locking mechanism for GDBM. Add _gdbm_lock_file() and
_gdbm_unlock_file(), which will try to use flock(), lockf(), and fcntl() to
lock the file.
From ChangeLog:
* configure.ac: Add test for lockf.
* src/lock.c: New file, adds _gdbm_unlock_file() and
_gdbm_lock_file() routines. These attempt to use flock(),
lockf(), and fcntl() locking.
* src/proto.h: Add new prototypes.
* src/systems.h: Remove file locking macros.
* src/gdbmopen.c: Rewrite locking code, use _gdbm_lock_file().
* src/gdbmclose.c, src/gdbmreorg.c: Use _gdbm_unlock_file().
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 453b150..594fe67 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -69,7 +69,7 @@ AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memo | |||
69 | 69 | ||
70 | AC_CHECK_LIB(dbm, main) | 70 | AC_CHECK_LIB(dbm, main) |
71 | AC_CHECK_LIB(ndbm, main) | 71 | AC_CHECK_LIB(ndbm, main) |
72 | AC_CHECK_FUNCS([rename ftruncate flock fsync]) | 72 | AC_CHECK_FUNCS([rename ftruncate flock lockf fsync]) |
73 | 73 | ||
74 | if test x$mapped_io = xyes | 74 | if test x$mapped_io = xyes |
75 | then | 75 | then |