[PATCH] Do not break buffers in fvwrite for unbuffered files
Corinna Vinschen
vinschen@redhat.com
Mon Oct 21 15:36:00 GMT 2013
On Oct 21 16:15, Federico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/21/2013 02:47 PM, Corinna Vinschen wrote:
> >
> > Maye it makes sense to use the largest multiple of BUFSIZ <=
> > MAX_INT. See below.
> >>
> >> I'm wondering if it makes sense to avoid splitting writes (and
> >> reads) also for buffered files. glibc appears to do it,
> >
> > Buffered writes are already split into fp->_bf._size chunks.
> > Glibc basically uses the largest multiple of fp->_bf._size <= len
> > instead. We could do the same. Would you like to create a patch
> > for that?
>
> I'll have a look at what can be done in the next days.
Thanks!
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131021/91073e42/attachment.sig>
More information about the Newlib
mailing list