Browse Source

Oops. I accidentally omitted the actual mknod() function.
-Erik

Eric Andersen 23 years ago
parent
commit
470b19d84b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      libc/sysdeps/linux/common/mknod.c

+ 9 - 0
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);
+}
+