Subject: re: Strange behavious of getpeername(2) on pipe
To: Martin J. Laubach <>
From: matthew green <>
List: tech-kern
Date: 03/27/2001 21:46:35
     The program below (I hope I didn't goof up there) doesn't return
   any error either:

*sigh* i needed to pay closer attention to your perl script.

      [ ... ]
      if(pipe(f) != 0)
      [ ... ]

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.  (FWIW, the sockaddr_in.sin_addr
for these results is 0.)