diff options
Diffstat (limited to 'src/fifo.c')
-rw-r--r-- | src/fifo.c | 16 |
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 |