aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/pipe.c
blob: b0c690ea8143f1b43515e469b3e259fc91429b28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <unistd.h>
#include "syscall.h"

int pipe(int fd[2])
{
#ifdef SYS_pipe
	return syscall(SYS_pipe, fd);
#else
	return syscall(SYS_pipe2, fd, 0);
#endif
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif