aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/pipe.c
blob: 5d0e47c118ca6952df70681e03ef1923aac3eda5 (plain)
1
2
3
4
5
6
7
8
9
10
#include <u.h>
#define NOPLAN9DEFINES
#include <libc.h>
#include <sys/socket.h>

int
p9pipe(int fd[2])
{
	return socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
}