[ksh93-integration-discuss] Re: [perf-discuss] Can |recv()| be used on a pipe in Solaris ?

Casper.Dik at Sun.COM Casper.Dik at Sun.COM
Wed Sep 6 00:02:31 PDT 2006


>but that doesn't answer the question "does recv() work on pipes in solaris?"
>there are some systems with pipe!=socket with similar documentation
>for which recv() works on pipes

It's not a socket so it is not supposed to work and does not work.

On some systems, pipes are created with socketpair() and they are
a form of sockets.

>a general note: this is a big hole in the official and de-facto standards
>there is no consistent (across implementations) way to peek on a pipe, and
>thus no efficient way to read exactly one line from a pipe -- what is
>needed is a call that peeks on any fd open for reading

That's probably because few people need it.

Casper



More information about the ksh93-integration-discuss mailing list