From 25708a111e0127aa86611f8a513cb67ae70b2123 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Sat, 13 Jul 2024 19:19:27 +0200 Subject: add missing fifo file --- src/fifo.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/fifo.c (limited to 'src/fifo.c') 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 +#include + +#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 -- cgit v1.2.3