public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14433] New: setvbuf _IOLBF doesn't honor size
@ 2012-08-05 18:15 P at draigBrady dot com
  2012-08-06 11:36 ` [Bug libc/14433] " bugdal at aerifal dot cx
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: P at draigBrady dot com @ 2012-08-05 18:15 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14433

             Bug #: 14433
           Summary: setvbuf _IOLBF doesn't honor size
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: P@draigBrady.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


POSIX says _IOLBF shall enable line buffering.
However there are two aspects to line buffering.

1. Atomic output of lines, so they're not split
2. Immediate output of lines.

Currently _IOLBF does both of the above.
I would like to propose a change so that if size is specified with _IOLBF,
then 2. is not done, and instead output is only done when the buffer is full.
This would allow programs to distinguish their requirements and improve
performance.

For example, the GNU coreutils checksum utilities would like
behavior 1 above, but not 2, so that output is generated efficiently,
when many small files are being processed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-17 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-05 18:15 [Bug libc/14433] New: setvbuf _IOLBF doesn't honor size P at draigBrady dot com
2012-08-06 11:36 ` [Bug libc/14433] " bugdal at aerifal dot cx
2012-08-06 13:55 ` P at draigBrady dot com
2012-08-06 16:06 ` bugdal at aerifal dot cx
2014-06-17 18:48 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).