lkml.org 
[lkml]   [1998]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch for 2.1.103 n_tty.c
>>>>> "Bill" == Bill Hawes <whawes@star.net> writes:

Bill> Jeanette Pauline Middelink wrote:
>> I'm nt sure what the proper semantics for the read call are.
>> Shouldn't it at least be the same for all read's? pipe, tty,
>> fs, network, unix?

Bill> OK, I'll take a look at the pipe code as well. I would think
Bill> the read() behavior should be consistent across all devices,
Bill> but perhaps someone else will explain otherwise.

I just checked in the SUS 2 (at the Open Group's web site): a call to
read for 0 bytes 'will return zero and have no additional results'. I
would interpret that as forbidding blocking.


N.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.027 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site