summaryrefslogtreecommitdiff
path: root/src/unistd/pipe.c
blob: 5ab8b5e76c50183dc92b85004b46adbebbea3ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "nonstd/assert.h"
#include "nonstd/syscall.h"

int pipe(int fildes[2])
{
	ASSERT_NONNULL(fildes);
	SYSCALL("pipe", int, -1, fildes, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
*/