2011-02-17 18:11:09 +01:00
|
|
|
#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
|
|
|
|
|
2012-03-25 20:25:53 +02:00
|
|
|
int mkfifo(const char *name, mode_t mode)
|
2011-02-17 18:11:09 +01:00
|
|
|
{
|
|
|
|
return mknod(name, mode | S_IFIFO, (dev_t) 0);
|
|
|
|
}
|