unbuffered writes full size

This commit is contained in:
Dave Murphy 2009-10-07 20:03:29 +00:00
parent bc5cd112ab
commit fc857c172e
2 changed files with 13 additions and 0 deletions

View File

@ -11636,6 +11636,19 @@ diff -Nbaur newlib-1.17.1/newlib/libc/stdio/fopen.c newlib-1.17.1-ppc/newlib/lib
fp->_file = f;
fp->_flags = flags;
fp->_cookie = (_PTR) fp;
diff -Nbaur newlib-1.17.1/newlib/libc/stdio/fvwrite.c newlib-1.17.1-ppc/newlib/libc/stdio/fvwrite.c
--- newlib-1.17.1/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100
+++ newlib-1.17.1-ppc/newlib/libc/stdio/fvwrite.c 2009-10-06 23:07:41.000000000 +0100
@@ -98,7 +98,8 @@
do
{
GETIOV (;);
- w = fp->_write (ptr, fp->_cookie, p, MIN (len, BUFSIZ));
+ //w = fp->_write (ptr, fp->_cookie, p, MIN (len, BUFSIZ));
+ w = fp->_write (ptr, fp->_cookie, p, len);
if (w <= 0)
goto err;
p += w;
diff -Nbaur newlib-1.17.1/newlib/libc/stdlib/mlock.c newlib-1.17.1-ppc/newlib/libc/stdlib/mlock.c
--- newlib-1.17.1/newlib/libc/stdlib/mlock.c 2005-10-28 22:21:07.000000000 +0100
+++ newlib-1.17.1-ppc/newlib/libc/stdlib/mlock.c 2009-06-16 23:32:46.000000000 +0100