summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:13:14 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:13:14 +0000
commitfec4793c9a9d68f01facf2ea81089022fb5db0c0 (patch)
tree6feea7947f27c7427c88e21029eba55f0d1ab290 /libc/sysdeps/linux
parentd1a6e735ac35eb35b0ee04e2f44a399a8893e526 (diff)
Implement __mknod and use it
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/mkfifo.c2
-rw-r--r--libc/sysdeps/linux/common/mknod.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/mkfifo.c b/libc/sysdeps/linux/common/mkfifo.c
index 975798a06..db7f8fc42 100644
--- a/libc/sysdeps/linux/common/mkfifo.c
+++ b/libc/sysdeps/linux/common/mkfifo.c
@@ -20,6 +20,8 @@
by Erik Andersen <andersee@debian.org>
*/
+#define mknod __mknod
+
#include <errno.h>
#include <stddef.h>
#include <sys/stat.h>
diff --git a/libc/sysdeps/linux/common/mknod.c b/libc/sysdeps/linux/common/mknod.c
index 85aedca21..d66747178 100644
--- a/libc/sysdeps/linux/common/mknod.c
+++ b/libc/sysdeps/linux/common/mknod.c
@@ -15,7 +15,7 @@
static inline _syscall3(int, __syscall_mknod, const char *, path,
__kernel_mode_t, mode, __kernel_dev_t, dev);
-int mknod(const char *path, mode_t mode, dev_t dev)
+int attribute_hidden __mknod(const char *path, mode_t mode, dev_t dev)
{
/* We must convert the dev_t value to a __kernel_dev_t */
__kernel_dev_t k_dev;
@@ -23,3 +23,4 @@ int mknod(const char *path, mode_t mode, dev_t dev)
k_dev = ((major(dev) & 0xff) << 8) | (minor(dev) & 0xff);
return __syscall_mknod(path, mode, k_dev);
}
+strong_alias(__mknod,mknod)