From d1a6e735ac35eb35b0ee04e2f44a399a8893e526 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 14:11:18 +0000 Subject: Add hidden versions --- libc/sysdeps/linux/common/chdir.c | 4 ++-- libc/sysdeps/linux/common/mkdir.c | 3 ++- libc/sysdeps/linux/common/rmdir.c | 4 +++- 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 -_syscall1(int, rmdir, const char *, pathname); +#define __NR___rmdir __NR_rmdir +attribute_hidden _syscall1(int, __rmdir, const char *, pathname); +strong_alias(__rmdir,rmdir) -- cgit v1.2.3