Replace file locking by the new portable dotlock code.
authorWerner Koch <wk@gnupg.org>
Tue, 10 Jan 2012 14:16:44 +0000 (15:16 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 10 Jan 2012 14:16:44 +0000 (15:16 +0100)
commitb9333cd890a85cae5064ff2b0b97c4ba2afc1a99
treecbdb29e5debd97313848a6e8bb271b0300e786bf
parentdccdcef319014d3a0ec43c77017cd65a09240f0c
Replace file locking by the new portable dotlock code.

* include/dotlock.h: New.  From current gnupg master.
* util/dotlock.c: Ditto.  Include util.h.  The major changes done in
master are: Factor Unix and W32 specific code out into specific
functions.  Define HAVE_POSIX_SYSTEM.  Rearrange some functions.
(disable_dotlock): Rename to dotlock_disable.
(create_dotlock): Rename to dotlock_create and add a dummy arg.
(destroy_dotlock): Rename to dotlock_destroy.
(make_dotlock): Rename to dotlock_take.
(release_dotlock): Rename to dotlock_release.
(remove_lockfiles): Rename to dotlock_remove_lockfiles.
configure.ac
g10/gpg.c
g10/gpgv.c
g10/keydb.c
g10/keyring.c
g10/signal.c
g10/tdbio.c
include/dotlock.h [new file with mode: 0644]
include/util.h
util/dotlock.c