delorie.com/archives/browse.cgi | search |
On Mon, Aug 26, 2002 at 03:20:00PM +0100, Conrad Scott wrote: > "Christopher Faylor" <cgf AT redhat DOT com> wrote: > > There shouldn't really be that much overhead to the current > method for > > handling text/binary reads, though. It's just checking a bit > field. > > At the coal-face it ends up being a bit more messy than that. For > example, the fhandler::read code checks the readahead buffers for > pending data but they will always be empty in binary-mode (AFAIK) > . In fact there's a page of code before the check for whether a > binary read is being done and only then does the code escape back > to the caller. Since (AFAIK) you can't change the text/binary > mode of an fd once it's been opened (and thus the readahead You can. setmode(fd, O_TEXT); or setmode(fd, O_BINARY); Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |