This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
15 lines
267 B
C
15 lines
267 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
|
|
|
|
PUBLIC int mkfifo(const char *name, mode_t mode)
|
|
{
|
|
return mknod(name, mode | S_IFIFO, (dev_t) 0);
|
|
}
|