minix/lib/libc/sys-minix/mkfifo.c
2012-03-25 21:58:14 +02:00

15 lines
260 B
C

#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <sys/stat.h>
#include <unistd.h>
#ifdef __weak_alias
__weak_alias(mkfifo, _mkfifo)
#endif
int mkfifo(const char *name, mode_t mode)
{
return mknod(name, mode | S_IFIFO, (dev_t) 0);
}