summaryrefslogtreecommitdiff
path: root/src/fifo.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-13 19:19:27 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-13 19:19:27 +0200
commit25708a111e0127aa86611f8a513cb67ae70b2123 (patch)
tree332f5748072063f2dec890bcad9b9fe61ef6e88b /src/fifo.c
parent9091c472ee621c035a87d4eb9121dc26d912f7b2 (diff)
add missing fifo file
Diffstat (limited to 'src/fifo.c')
-rw-r--r--src/fifo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fifo.c b/src/fifo.c
new file mode 100644
index 0000000..f2da11e
--- /dev/null
+++ b/src/fifo.c
@@ -0,0 +1,16 @@
+#include "fifo.h"
+
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#ifdef HASMKFIFO
+int fifo_make(char *fn, int mode)
+{
+ return mkfifo(fn, mode);
+}
+#else
+int fifo_make(char *fn, int mode)
+{
+ return mknod(fn, S_IFIFO | mode, 0);
+}
+#endif