summaryrefslogtreecommitdiffstats
path: root/usr/klibc/mknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/mknod.c')
-rw-r--r--usr/klibc/mknod.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/klibc/mknod.c b/usr/klibc/mknod.c
new file mode 100644
index 0000000..727505f
--- /dev/null
+++ b/usr/klibc/mknod.c
@@ -0,0 +1,14 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifndef __NR_mknod
+
+int mknod(const char *pathname, mode_t mode, dev_t dev)
+{
+ return mknodat(AT_FDCWD, pathname, mode, dev);
+}
+
+#endif /* __NR_mknod */