summary refs log tree commit diff
path: root/runit-2.1.2/src/fifo.c
diff options
context:
space:
mode:
Diffstat (limited to 'runit-2.1.2/src/fifo.c')
-rw-r--r--runit-2.1.2/src/fifo.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/runit-2.1.2/src/fifo.c b/runit-2.1.2/src/fifo.c
new file mode 100644
index 0000000..c14f683
--- /dev/null
+++ b/runit-2.1.2/src/fifo.c
@@ -0,0 +1,12 @@
+/* Public domain. */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include "hasmkffo.h"
+#include "fifo.h"
+
+#ifdef HASMKFIFO
+int fifo_make(const char *fn,int mode) { return mkfifo(fn,mode); }
+#else
+int fifo_make(const char *fn,int mode) { return mknod(fn,S_IFIFO | mode,0); }
+#endif