]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virFileFlock
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 8 Feb 2018 13:53:20 +0000 (14:53 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 8 Jun 2018 08:28:46 +0000 (10:28 +0200)
commit5a0a5f7fb5f5687abb5ac51464b783730fe5cd38
tree7926053917076427ec89f7306967c4598afb145f
parentf41bbfe0e59e1e79869cabf331c7d6ec6ef9fc8d
util: Introduce virFileFlock

We already have virFileLock(), but we are now using flock() in the code as
well (due to requirements for mutual exclusion between libvirt and other
programs using flock() as well), so let's have a function for that as well so we
don't need to have stubs for unsupported platforms in other files.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h