mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Merge remote-tracking branch 'bonzini/migration-writev' into staging
# By Paolo Bonzini # Via Paolo Bonzini * bonzini/migration-writev: win32: add readv/writev emulation win32: generate console executable again win32: move Makefile dependencies on version-obj-y to rules.mak win32: add generic RC rules to rules.mak Message-id: 1367230284-24612-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
commit
b48df71c91
7 changed files with 72 additions and 26 deletions
|
@ -84,20 +84,6 @@
|
|||
# error Unknown pointer size
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_IOVEC
|
||||
#define CONFIG_IOVEC
|
||||
struct iovec {
|
||||
void *iov_base;
|
||||
size_t iov_len;
|
||||
};
|
||||
/*
|
||||
* Use the same value as Linux for now.
|
||||
*/
|
||||
#define IOV_MAX 1024
|
||||
#else
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
|
||||
GCC_FMT_ATTR(2, 3);
|
||||
|
||||
|
@ -122,16 +108,12 @@ static inline char *realpath(const char *path, char *resolved_path)
|
|||
void configure_icount(const char *option);
|
||||
extern int use_icount;
|
||||
|
||||
/* FIXME: Remove NEED_CPU_H. */
|
||||
#ifndef NEED_CPU_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/bswap.h"
|
||||
|
||||
#else
|
||||
|
||||
/* FIXME: Remove NEED_CPU_H. */
|
||||
#ifdef NEED_CPU_H
|
||||
#include "cpu.h"
|
||||
|
||||
#endif /* !defined(NEED_CPU_H) */
|
||||
|
||||
/* main function, renamed */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef QEMU_OSDEP_H
|
||||
#define QEMU_OSDEP_H
|
||||
|
||||
#include "config-host.h"
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -161,6 +162,22 @@ int qemu_close(int fd);
|
|||
int qemu_create_pidfile(const char *filename);
|
||||
int qemu_get_thread_id(void);
|
||||
|
||||
#ifndef CONFIG_IOVEC
|
||||
struct iovec {
|
||||
void *iov_base;
|
||||
size_t iov_len;
|
||||
};
|
||||
/*
|
||||
* Use the same value as Linux for now.
|
||||
*/
|
||||
#define IOV_MAX 1024
|
||||
|
||||
ssize_t readv(int fd, const struct iovec *iov, int iov_cnt);
|
||||
ssize_t writev(int fd, const struct iovec *iov, int iov_cnt);
|
||||
#else
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
static inline void qemu_timersub(const struct timeval *val1,
|
||||
const struct timeval *val2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue