1 2 3 4 5 6
#include <sys/stat.h> int mkfifo(const char *path, mode_t mode) { return mknod(path, mode | S_IFIFO, 0); }