<<On Fri, 15 Jul 2011 13:38:44 -0500, Jonathan Nieder <[email protected]> said:

> Does any Unix-like platform aside from Linux lack that feature?  Is
> there any architectural consideration that would make MSG_PEEK
> difficult to implement for Linux's pipes?  (For the former, I have no
> clue, while for the latter, I suspect not.)

On FreeBSD it will error out with [ENOTSOCK].

I would in general caution against going down this particular
direction.  Some systems implemented pipes on top of sockets, but this
is an implementation detail and applications which rely on that
behavior are in error.

-GAWollman




Reply via email to