summaryrefslogtreecommitdiff
path: root/src/unistd/pipe.c
blob: 4c09d22c5c418fa12905728226b0376f29dcde64 (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)
*/