Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to qemu-2.6.
[kvmfornfv.git]
/
qemu
/
util
/
iov.c
diff --git
a/qemu/util/iov.c
b/qemu/util/iov.c
index
a0d5934
..
003fcce
100644
(file)
--- a/
qemu/util/iov.c
+++ b/
qemu/util/iov.c
@@
-16,11
+16,14
@@
* GNU GPL, version 2 or (at your option) any later version.
*/
* GNU GPL, version 2 or (at your option) any later version.
*/
+#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "qemu/iov.h"
#include "qemu/sockets.h"
#include "qemu/iov.h"
#include "qemu/sockets.h"
+#include "qemu/cutils.h"
-size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
- size_t offset, const void *buf, size_t bytes)
+size_t iov_from_buf
_full
(const struct iovec *iov, unsigned int iov_cnt,
+
size_t offset, const void *buf, size_t bytes)
{
size_t done;
unsigned int i;
{
size_t done;
unsigned int i;
@@
-38,8
+41,8
@@
size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
return done;
}
return done;
}
-size_t iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt,
- size_t offset, void *buf, size_t bytes)
+size_t iov_to_buf
_full
(const struct iovec *iov, const unsigned int iov_cnt,
+
size_t offset, void *buf, size_t bytes)
{
size_t done;
unsigned int i;
{
size_t done;
unsigned int i;