minix/lib/libc/posix/_mkfifo.c

11 lines
206 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define mkfifo _mkfifo
#define mknod _mknod
#include <sys/stat.h>
#include <unistd.h>
PUBLIC int mkfifo(const char *name, mode_t mode)
2005-04-21 16:53:53 +02:00
{
return mknod(name, mode | S_IFIFO, (dev_t) 0);
2005-04-21 16:53:53 +02:00
}