summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/mknod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-27 07:16:20 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-27 07:16:20 +0000
commit470b19d84bd247d7bd0784f27a958e9119b8a0fe (patch)
tree2fab0729ac3eb2c9906aa10deeb8587ace63e3a5 /libc/sysdeps/linux/common/mknod.c
parent4063399147372a80c04cd23ecb3896767b673a2c (diff)
downloaduClibc-alpine-470b19d84bd247d7bd0784f27a958e9119b8a0fe.tar.bz2
uClibc-alpine-470b19d84bd247d7bd0784f27a958e9119b8a0fe.tar.xz
Oops. I accidentally omitted the actual mknod() function.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/mknod.c')
-rw-r--r--libc/sysdeps/linux/common/mknod.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mknod.c b/libc/sysdeps/linux/common/mknod.c
index 913cea29b..8629c2070 100644
--- a/libc/sysdeps/linux/common/mknod.c
+++ b/libc/sysdeps/linux/common/mknod.c
@@ -28,6 +28,10 @@
#include <sys/syscall.h>
#include <asm/posix_types.h>
+#ifndef _MKNOD_VER
+# define _MKNOD_VER 0
+#endif
+
#ifndef INLINE_SYSCALL
#define INLINE_SYSCALL(name, nr, args...) __syscall_mknod (args)
#define __NR___syscall_mknod __NR_mknod
@@ -51,3 +55,8 @@ int __xmknod (int version, const char * path, __mode_t mode, __dev_t *dev)
}
}
+int mknod(const char *path, __mode_t mode, __dev_t dev)
+{
+ return __xmknod(_MKNOD_VER, path, mode, &dev);
+}
+