[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/9] two new file wrappers
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 3/9] two new file wrappers |
Date: |
Wed, 13 Mar 2013 15:04:14 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 |
On 03/13/2013 12:56 PM, Joel Schopp wrote:
> Add a 3 very short file wrapper functions to make code that follows more
s/a 3/3/
> readable. Also export an existing function that is currently static.
>
> Cc: Michael Tsirkin <address@hidden>
> Signed-off-by: Stefan Berger <address@hidden>
> Signed-off-by: Joel Schopp <address@hidden>
> ---
> include/migration/qemu-file.h | 3 +++
> util/qemu-file.c | 30 ++++++++++++++++++++++++++++++
> 2 files changed, 33 insertions(+)
>
> +
> +int qemu_peek_bytes(QEMUFile *f, uint8_t *buf, int size, size_t offset)
Should we be using off_t instead of size_t for offset; and size_t
instead of int for size (which implies ssize_t for return value)?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[Qemu-devel] [PATCH 1/9] qemu-file, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 3/9] two new file wrappers, Joel Schopp, 2013/03/13
- Re: [Qemu-devel] [PATCH 3/9] two new file wrappers,
Eric Blake <=
[Qemu-devel] [PATCH 2/9] qapi_c_arrays.diff, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 6/9] asn1_output-visitor.diff, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 7/9] asn1_input-visitor.diff, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 8/9] asn1_test_visitor_serialization.diff, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 9/9] update_maintainers.diff, Joel Schopp, 2013/03/13
[Qemu-devel] [PATCH 4/9] qemu_qsb.diff, Joel Schopp, 2013/03/13