[libvirt] [PATCH] Replace truncate() with ftruncate()

Eric Blake eblake at redhat.com
Wed Feb 8 15:00:25 UTC 2012


On 02/08/2012 07:04 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Mingw32 does not have any truncate() API defined, but it does
> have ftruncate(). So replace use of the former with the latter

Hmm, maybe we should also be pulling in the gnulib ftruncate module
(since mingw has ftruncate but not MSVC 9).  And gnulib could probably
implement a truncate module, but not in time for 0.9.10.

> ---
>  src/util/storage_file.c |   23 ++++++++++++++++++++---
>  1 files changed, 20 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120208/d07421ec/attachment-0001.sig>


More information about the libvir-list mailing list