diff options
Diffstat (limited to 'libc/sysdeps/linux')
| -rw-r--r-- | libc/sysdeps/linux/arm/ioperm.c | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/dup2.c | 4 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/getcwd.c | 4 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/getdirname.c | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/getgroups.c | 3 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/getsid.c | 3 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/readlink.c | 4 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/setsid.c | 4 | ||||
| -rw-r--r-- | libc/sysdeps/linux/powerpc/ioctl.c | 3 |
9 files changed, 22 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/arm/ioperm.c b/libc/sysdeps/linux/arm/ioperm.c index f887d54f1..d69d475d6 100644 --- a/libc/sysdeps/linux/arm/ioperm.c +++ b/libc/sysdeps/linux/arm/ioperm.c @@ -33,6 +33,8 @@ the area affected (this is a kernel limitation). So we now just enable all the ports all of the time. */ +#define readlink __readlink + #include <errno.h> #include <fcntl.h> #include <stdio.h> diff --git a/libc/sysdeps/linux/common/dup2.c b/libc/sysdeps/linux/common/dup2.c index a5a832f6f..71164aa0b 100644 --- a/libc/sysdeps/linux/common/dup2.c +++ b/libc/sysdeps/linux/common/dup2.c @@ -9,4 +9,6 @@ #include "syscalls.h" #include <unistd.h> -_syscall2(int, dup2, int, oldfd, int, newfd); +#define __NR___dup2 __NR_dup2 +attribute_hidden _syscall2(int, __dup2, int, oldfd, int, newfd); +strong_alias(__dup2,dup2) diff --git a/libc/sysdeps/linux/common/getcwd.c b/libc/sysdeps/linux/common/getcwd.c index d007993eb..4a1ea093e 100644 --- a/libc/sysdeps/linux/common/getcwd.c +++ b/libc/sysdeps/linux/common/getcwd.c @@ -153,7 +153,7 @@ int __syscall_getcwd(char * buf, unsigned long size) #endif -char *getcwd(char *buf, size_t size) +char attribute_hidden *__getcwd(char *buf, size_t size) { int ret; char *path; @@ -185,4 +185,4 @@ char *getcwd(char *buf, size_t size) free (path); return NULL; } - +strong_alias(__getcwd,getcwd) diff --git a/libc/sysdeps/linux/common/getdirname.c b/libc/sysdeps/linux/common/getdirname.c index 486ee9335..d791f34a3 100644 --- a/libc/sysdeps/linux/common/getdirname.c +++ b/libc/sysdeps/linux/common/getdirname.c @@ -17,6 +17,8 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#define getcwd __getcwd + #include <features.h> #include <unistd.h> #include <sys/stat.h> diff --git a/libc/sysdeps/linux/common/getgroups.c b/libc/sysdeps/linux/common/getgroups.c index 402d87e66..c863489b9 100644 --- a/libc/sysdeps/linux/common/getgroups.c +++ b/libc/sysdeps/linux/common/getgroups.c @@ -18,7 +18,7 @@ static inline _syscall2(int, __syscall_getgroups, int, size, __kernel_gid_t *, list); -int getgroups(int n, gid_t * groups) +int attribute_hidden __getgroups(int n, gid_t * groups) { if (unlikely(n < 0)) { __set_errno(EINVAL); @@ -36,3 +36,4 @@ int getgroups(int n, gid_t * groups) return ngids; } } +strong_alias(__getgroups,getgroups) diff --git a/libc/sysdeps/linux/common/getsid.c b/libc/sysdeps/linux/common/getsid.c index 4bb539cd2..3e9c2d8ba 100644 --- a/libc/sysdeps/linux/common/getsid.c +++ b/libc/sysdeps/linux/common/getsid.c @@ -13,7 +13,8 @@ #define __NR___syscall_getsid __NR_getsid static inline _syscall1(__kernel_pid_t, __syscall_getsid, __kernel_pid_t, pid); -pid_t getsid(pid_t pid) +pid_t attribute_hidden __getsid(pid_t pid) { return (__syscall_getsid(pid)); } +strong_alias(__getsid,getsid) diff --git a/libc/sysdeps/linux/common/readlink.c b/libc/sysdeps/linux/common/readlink.c index 8ebb5eaa9..45db1a64f 100644 --- a/libc/sysdeps/linux/common/readlink.c +++ b/libc/sysdeps/linux/common/readlink.c @@ -9,4 +9,6 @@ #include "syscalls.h" #include <unistd.h> -_syscall3(int, readlink, const char *, path, char *, buf, size_t, bufsiz); +#define __NR___readlink __NR_readlink +attribute_hidden _syscall3(int, __readlink, const char *, path, char *, buf, size_t, bufsiz); +strong_alias(__readlink,readlink) diff --git a/libc/sysdeps/linux/common/setsid.c b/libc/sysdeps/linux/common/setsid.c index 0e2e2a31e..b3e1e8706 100644 --- a/libc/sysdeps/linux/common/setsid.c +++ b/libc/sysdeps/linux/common/setsid.c @@ -9,4 +9,6 @@ #include "syscalls.h" #include <unistd.h> -_syscall0(pid_t, setsid); +#define __NR___setsid __NR_setsid +attribute_hidden _syscall0(pid_t, __setsid); +strong_alias(__setsid,setsid) diff --git a/libc/sysdeps/linux/powerpc/ioctl.c b/libc/sysdeps/linux/powerpc/ioctl.c index 7058d44ee..a522ff6d4 100644 --- a/libc/sysdeps/linux/powerpc/ioctl.c +++ b/libc/sysdeps/linux/powerpc/ioctl.c @@ -16,6 +16,9 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#define tcsetattr __tcsetattr +#define tcgetattr __tcgetattr + #include <stdarg.h> #include <termios.h> #include <unistd.h> |
