summaryrefslogtreecommitdiff
path: root/src/fifo.c
blob: 5547294698edf1c5ea53626c2c1e308ae9641c7a (plain)
1
2
3
4
5
6
7
8
9
#include <sys/types.h>
#include <sys/stat.h>
#include "fifo.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