summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)