From 470b19d84bd247d7bd0784f27a958e9119b8a0fe Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 27 Jul 2002 07:16:20 +0000 Subject: Oops. I accidentally omitted the actual mknod() function. -Erik --- libc/sysdeps/linux/common/mknod.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libc') 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 #include +#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); +} + -- cgit v1.2.3