fifo.c (270B)
1 #include "fifo.h" 2 3 #include <sys/types.h> 4 #include <sys/stat.h> 5 #include "hasmkffo.h" 6 7 #ifdef HASMKFIFO 8 int fifo_make(fn,mode) char *fn; int mode; { return mkfifo(fn,mode); } 9 #else 10 int fifo_make(fn,mode) char *fn; int mode; { return mknod(fn,S_IFIFO | mode,0); } 11 #endif