From: Andreas Färber Date: Wed, 14 Nov 2012 15:42:39 +0000 (+0100) Subject: osdep: Move qemu_{open,close}() prototypes X-Git-Tag: qemu-xen-4.3.0-rc1~32^2~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=17e0b6ab08bd272aee24bd1a173bf0adc708d0aa;p=qemu-upstream-4.4-testing.git osdep: Move qemu_{open,close}() prototypes They are implemented in osdep.c, so keep the prototypes in osdep.h. Suggested-by: Igor Mammedov Signed-off-by: Andreas Färber Acked-by: Eduardo Habkost --- diff --git a/osdep.h b/osdep.h index 585e2c178..87d3b9cfa 100644 --- a/osdep.h +++ b/osdep.h @@ -136,6 +136,9 @@ void qemu_vfree(void *ptr); int qemu_madvise(void *addr, size_t len, int advice); +int qemu_open(const char *name, int flags, ...); +int qemu_close(int fd); + #if defined(__HAIKU__) && defined(__i386__) #define FMT_pid "%ld" #elif defined(WIN64) diff --git a/qemu-common.h b/qemu-common.h index 9112e2de7..cef264cc8 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -217,8 +217,6 @@ const char *path(const char *pathname); void *qemu_oom_check(void *ptr); -int qemu_open(const char *name, int flags, ...); -int qemu_close(int fd); ssize_t qemu_write_full(int fd, const void *buf, size_t count) QEMU_WARN_UNUSED_RESULT; ssize_t qemu_send_full(int fd, const void *buf, size_t count, int flags)