]> Git Repo - uclibc-ng.git/commitdiff
Oops. I accidentally omitted the actual mknod() function.
authorEric Andersen <[email protected]>
Sat, 27 Jul 2002 07:16:20 +0000 (07:16 -0000)
committerEric Andersen <[email protected]>
Sat, 27 Jul 2002 07:16:20 +0000 (07:16 -0000)
 -Erik

libc/sysdeps/linux/common/mknod.c

index 913cea29bb08f413ebcccf6aa922ece73d7f9046..8629c207017efcdec69fe0c2693ed1c5df27ae3c 100644 (file)
 #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);
+}
+
This page took 0.025511 seconds and 4 git commands to generate.