These discussions degrade quickly.

I'm not proposing using pread() on a socket. I was
pointing out that you can do two concurrent pread()
invocations on the same file descriptor (for a file)
and get consistent results. It would be nice if you
can do two concurrent sendmsg() invocations on the
same socket descriptor and get consistent results.

pread() does not need to be in a critical section to
work properly. sendmsg() does in general. Usually, the
fact that it needs to be in a critical section would
suggest that it is not thread safe.

ben

--- Rick Jones <[EMAIL PROTECTED]> wrote:

> Benjamin Reed wrote:
> > In the case of lseek() and read(), you can use
> > pread(). 
> 
> What is the meaning of the offset parameter of
> pread() for TCP or UDP etc?
> 
> rick jones
> 

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to