diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-11-08 18:09:56 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-02 16:29:32 +0400 |
commit | ee13240e60a02836426140d384e363be5d8f8bbe (patch) | |
tree | 3d43f769aae2242bc1f874cdcd2a0ea3bfc8a6e1 /include/qemu/osdep.h | |
parent | c5f2bce5ee75ec3267b025f2053bac728da9a6c3 (diff) | |
download | qemu-ee13240e60a02836426140d384e363be5d8f8bbe.zip qemu-ee13240e60a02836426140d384e363be5d8f8bbe.tar.gz qemu-ee13240e60a02836426140d384e363be5d8f8bbe.tar.bz2 |
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>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r-- | include/qemu/osdep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 0f97d68..9bd3dcf 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -462,6 +462,7 @@ int qemu_mprotect_none(void *addr, size_t size); int qemu_open(const char *name, int flags, ...); int qemu_close(int fd); +int qemu_unlink(const char *name); #ifndef _WIN32 int qemu_dup(int fd); #endif |