On Fri, Aug 12, 2005 at 07:43:56AM -0700, John Meacham wrote:
> > Hmm, care to give some details as to why you equate "can" with
> > "always will" on all platforms?
>
> Yes. this is guarenteed behavior on pretty much every system. A whole
> lot of things would break if it were otherwise. if select
On Fri, Aug 12, 2005 at 07:11:24AM -0700, Sigbjorn Finne wrote:
>
> "Simon Marlow" <[EMAIL PROTECTED]> writes:
> >
> ...
> >No - read() can always return less than the requested amount of data,
> >even when not in O_NONBLOCK mode.
> >
>
> Hmm, care to give some details as to why you equate "can"
On 12 August 2005 15:11, Sigbjorn Finne wrote:
> "Simon Marlow" <[EMAIL PROTECTED]> writes:
>>
> ...
>> No - read() can always return less than the requested amount of data,
>> even when not in O_NONBLOCK mode.
>>
>
> Hmm, care to give some details as to why you equate "can" with
> "always will
"Simon Marlow" <[EMAIL PROTECTED]> writes:
...
No - read() can always return less than the requested amount of data,
even when not in O_NONBLOCK mode.
Hmm, care to give some details as to why you equate "can" with
"always will" on all platforms?
--sigbjorn
___
On 11 August 2005 14:59, Sigbjorn Finne wrote:
> "Simon Marlow" <[EMAIL PROTECTED]> writes:
>> On 11 August 2005 01:18, John Meacham wrote:
>>
>>> Why do we set file descriptors to nonblocking mode anyway if they
>>> are waited on by a select. there shouldn't be a need to use both
>>
>> It avoid
"Simon Marlow" <[EMAIL PROTECTED]> writes:
On 11 August 2005 01:18, John Meacham wrote:
Why do we set file descriptors to nonblocking mode anyway if they are
waited on by a select. there shouldn't be a need to use both
It avoids an extra system call per read(), i.e. a single read() instead
of
On 11 August 2005 01:18, John Meacham wrote:
> Why do we set file descriptors to nonblocking mode anyway if they are
> waited on by a select. there shouldn't be a need to use both
It avoids an extra system call per read(), i.e. a single read() instead
of select() + read(). And there's a slight c
Why do we set file descriptors to nonblocking mode anyway if they are
waited on by a select. there shouldn't be a need to use both mechanisms.
John
--
John Meacham - ⑆repetae.net⑆john⑈
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@