aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/pipe.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sys/pipe.h')
-rw-r--r--lib/sys/pipe.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sys/pipe.h b/lib/sys/pipe.h
new file mode 100644
index 0000000..f95f366
--- /dev/null
+++ b/lib/sys/pipe.h
@@ -0,0 +1,14 @@
+#ifndef PIPE_H
+#define PIPE_H
+
+#include "syscalls.h"
+
+#define PIPE_IN 1
+#define PIPE_OUT 0
+
+int pipe(int *filedes)
+{
+ return syscall(PIPE, filedes);
+}
+
+#endif