Subject: Re: Strange behavious of getpeername(2) on pipe
To: None <>
From: Martin J. Laubach <>
List: tech-kern
Date: 03/27/2001 12:42:18
| note that in NetBSD, pipe() is really a frontend for socketpair(), so
| the fd's you get back from pipe are really sockets.  this is why the
| getpeername() is able to succeed.

  Right, I figured that much -- but is it the correct behaviour
(especially since "everybody else" seems to disallow getpeername()
et al on pipes)?

  And is there _any_ possibility of discerning whether a given fd
is a socket or a pipe? (Because that's what the FastCGI stuff is
trying to do)