>The only way to answer this one is for someone wiht the right links to
>refer the question to the POSIX 1003.1g committee for clarification. I
>could certainly build a convincing case for either side here.
Hmm. Is there any other data exchanging system call that returns the bytes
available in the queue rather than the bytes transferred to/from user-space?
It strikes me as semantically surprising to have a "bytes-received" value
returned into user space that is greater than the supplied buffer length as
it breaks the most I/O common coding constructs. But as you say, maybe 1003.1g
had other considerations on their mind.
Regards.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html