plan9port/src/lib9/pipe.c
rsc c91bd3283a Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.
Add debugging to fdwait.

Rewrite getcallerpc on PowerMac to be correct.
2004-03-05 02:25:41 +00:00

10 lines
156 B
C

#include <u.h>
#define NOPLAN9DEFINES
#include <libc.h>
#include <sys/socket.h>
int
p9pipe(int fd[2])
{
return socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
}