From a5f316d8cfbd9f2abf018e3fe766a88820492ac1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 31 Oct 2013 10:35:54 +0000 Subject: [PATCH] * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to fix fwrite() of > 2GByte buffers. --- newlib/ChangeLog | 5 +++++ newlib/libc/stdio/fvwrite.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 82e4e0661..09527c92e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2013-10-31 Terraneo Federico + + * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to + fix fwrite() of > 2GByte buffers. + 2013-10-30 Joey Ye Implement malloc_stats for nano. diff --git a/newlib/libc/stdio/fvwrite.h b/newlib/libc/stdio/fvwrite.h index 848d5b261..5c078fe68 100644 --- a/newlib/libc/stdio/fvwrite.h +++ b/newlib/libc/stdio/fvwrite.h @@ -28,7 +28,7 @@ struct __siov { struct __suio { struct __siov *uio_iov; int uio_iovcnt; - int uio_resid; + size_t uio_resid; };