summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:11:18 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:11:18 +0000
commitd1a6e735ac35eb35b0ee04e2f44a399a8893e526 (patch)
tree5a52f4f1ccd0958d60972edcd4dc09012128ae60 /libc/sysdeps/linux
parenta8224c8856eff26b9049e70a310ddeed90bfcc6b (diff)
Add hidden versions
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/chdir.c4
-rw-r--r--libc/sysdeps/linux/common/mkdir.c3
-rw-r--r--libc/sysdeps/linux/common/rmdir.c4
3 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/chdir.c b/libc/sysdeps/linux/common/chdir.c
index 037e39c8b..ff4ba527b 100644
--- a/libc/sysdeps/linux/common/chdir.c
+++ b/libc/sysdeps/linux/common/chdir.c
@@ -13,8 +13,8 @@
#define __NR___syscall_chdir __NR_chdir
static inline _syscall1(int, __syscall_chdir, const char *, path);
-int chdir(const char *path)
+int attribute_hidden __chdir(const char *path)
{
return __syscall_chdir(path);
}
-
+strong_alias(__chdir,chdir)
diff --git a/libc/sysdeps/linux/common/mkdir.c b/libc/sysdeps/linux/common/mkdir.c
index cac9e1d09..5e96cf599 100644
--- a/libc/sysdeps/linux/common/mkdir.c
+++ b/libc/sysdeps/linux/common/mkdir.c
@@ -14,7 +14,8 @@
static inline _syscall2(int, __syscall_mkdir, const char *, pathname,
__kernel_mode_t, mode);
-int mkdir(const char *pathname, mode_t mode)
+int attribute_hidden __mkdir(const char *pathname, mode_t mode)
{
return (__syscall_mkdir(pathname, mode));
}
+strong_alias(__mkdir,mkdir)
diff --git a/libc/sysdeps/linux/common/rmdir.c b/libc/sysdeps/linux/common/rmdir.c
index c22025cc8..2f2c8a335 100644
--- a/libc/sysdeps/linux/common/rmdir.c
+++ b/libc/sysdeps/linux/common/rmdir.c
@@ -9,4 +9,6 @@
#include "syscalls.h"
#include <unistd.h>
-_syscall1(int, rmdir, const char *, pathname);
+#define __NR___rmdir __NR_rmdir
+attribute_hidden _syscall1(int, __rmdir, const char *, pathname);
+strong_alias(__rmdir,rmdir)