summaryrefslogtreecommitdiff
path: root/src/unistd/pipe.c
blob: 394b184657214fabe03431c76264a802a47ba6e9 (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 "../_assert.h"
#include "../_syscall.h"

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