aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/pipe.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2022-12-14 22:12:20 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2022-12-14 22:12:20 +0100
commit7536d000ac9a5188378f2749ecfd7f0ccb437573 (patch)
treee19b0da62b826dd9c6a7b0425ac3ec568a0fe434 /lib/sys/pipe.h
parentd179f1846f9372920ef02f08cfb4d3abe99b383f (diff)
first try to pipe stuff
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