diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-23 19:57:28 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-06 14:31:43 +0200 |
commit | 0d14a2f30043665f40c11f78b5a1fb80bdc6568a (patch) | |
tree | dea734a3dbdcbbae5dd52c18d8a30a9026b54a1d /include | |
parent | 1dacd88ddcf33eb6ed044c4080e3ef5e3de4b6b6 (diff) |
include: move qemu_write_full() declaration to osdep.h
Closer to other IO functions.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-18-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu-common.h | 3 | ||||
-rw-r--r-- | include/qemu/osdep.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index db8b03be51..c6f3ed94bc 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -24,9 +24,6 @@ int qemu_main(int argc, char **argv, char **envp); #endif -ssize_t qemu_write_full(int fd, const void *buf, size_t count) - G_GNUC_WARN_UNUSED_RESULT; - #ifndef _WIN32 int qemu_pipe(int pipefd[2]); #endif diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 489a5d1aad..259436ff53 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -527,6 +527,9 @@ static inline void qemu_timersub(const struct timeval *val1, #define qemu_timersub timersub #endif +ssize_t qemu_write_full(int fd, const void *buf, size_t count) + G_GNUC_WARN_UNUSED_RESULT; + void qemu_set_cloexec(int fd); void fips_set_state(bool requested); |