minix/lib/libc/posix/_mkfifo.c
Kees van Reeuwijk bc314bda91 Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Use ANSI-style function declarations where necessary.
2010-04-13 10:58:41 +00:00

10 lines
206 B
C

#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)
{
return mknod(name, mode | S_IFIFO, (dev_t) 0);
}