osdep: add qemu_unlink()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Nov 2019 14:09:56 +0000 (18:09 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Jan 2020 12:29:32 +0000 (16:29 +0400)
commitee13240e60a02836426140d384e363be5d8f8bbe
tree3d43f769aae2242bc1f874cdcd2a0ea3bfc8a6e1
parentc5f2bce5ee75ec3267b025f2053bac728da9a6c3
osdep: add qemu_unlink()

Add a helper function to match qemu_open() which may return files
under the /dev/fdset prefix. Those shouldn't be removed, since it's
only a qemu namespace.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
include/qemu/osdep.h
util/osdep.c