about summary refs log tree commit diff
path: root/src/unistd/pipe2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/pipe2.c')
-rw-r--r--src/unistd/pipe2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unistd/pipe2.c b/src/unistd/pipe2.c
new file mode 100644
index 00000000..83282bb9
--- /dev/null
+++ b/src/unistd/pipe2.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include "syscall.h"
+
+int pipe2(int fd[2], int flg)
+{
+	return syscall(SYS_pipe2, fd, flg);
+}