summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-04 01:08:42 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-04 01:08:42 +0000
commit765696aac59b7146777e4dfda0d8d35df0bb29e1 (patch)
treea1f2f8ce19de35f8030e8e388a3b962a2bff8cc7 /libc/sysdeps
parent855dca36fe7aa348dc56996385fbbb77fbf3e83d (diff)
More hiding, 300 left
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/execve.c3
-rw-r--r--libc/sysdeps/linux/common/fchdir.c4
-rw-r--r--libc/sysdeps/linux/common/geteuid.c7
-rw-r--r--libc/sysdeps/linux/common/getuid.c3
-rw-r--r--libc/sysdeps/linux/common/munmap.c4
5 files changed, 15 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/execve.c b/libc/sysdeps/linux/common/execve.c
index cb5e86da7..8a95746ee 100644
--- a/libc/sysdeps/linux/common/execve.c
+++ b/libc/sysdeps/linux/common/execve.c
@@ -16,7 +16,8 @@
static inline _syscall3(int, __syscall_execve, const char *, filename,
char *const *, argv, char *const *, envp);
-int execve(const char * filename, char *const * argv, char *const * envp)
+int attribute_hidden __execve(const char * filename, char *const * argv, char *const * envp)
{
return __syscall_execve(filename, argv, envp);
}
+strong_alias(__execve,execve)
diff --git a/libc/sysdeps/linux/common/fchdir.c b/libc/sysdeps/linux/common/fchdir.c
index 55ee3a2a8..f4692cc2c 100644
--- a/libc/sysdeps/linux/common/fchdir.c
+++ b/libc/sysdeps/linux/common/fchdir.c
@@ -9,4 +9,6 @@
#include "syscalls.h"
#include <unistd.h>
-_syscall1(int, fchdir, int, fd);
+#define __NR___fchdir __NR_fchdir
+attribute_hidden _syscall1(int, __fchdir, int, fd);
+strong_alias(__fchdir,fchdir)
diff --git a/libc/sysdeps/linux/common/geteuid.c b/libc/sysdeps/linux/common/geteuid.c
index 10bcce735..3936739b3 100644
--- a/libc/sysdeps/linux/common/geteuid.c
+++ b/libc/sysdeps/linux/common/geteuid.c
@@ -7,19 +7,22 @@
* GNU Library General Public License (LGPL) version 2 or later.
*/
+#define getuid __getuid
+
#include "syscalls.h"
#include <unistd.h>
#ifdef __NR_geteuid
#define __NR___syscall_geteuid __NR_geteuid
static inline _syscall0(int, __syscall_geteuid);
-uid_t geteuid(void)
+uid_t attribute_hidden __geteuid(void)
{
return (__syscall_geteuid());
}
#else
-uid_t geteuid(void)
+uid_t attribute_hidden __geteuid(void)
{
return (getuid());
}
#endif
+strong_alias(__geteuid,geteuid)
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c
index 40d20f2dd..7c81ccf48 100644
--- a/libc/sysdeps/linux/common/getuid.c
+++ b/libc/sysdeps/linux/common/getuid.c
@@ -17,7 +17,8 @@
static inline _syscall0(int, __syscall_getuid);
-uid_t getuid(void)
+uid_t attribute_hidden __getuid(void)
{
return (__syscall_getuid());
}
+strong_alias(__getuid,getuid)
diff --git a/libc/sysdeps/linux/common/munmap.c b/libc/sysdeps/linux/common/munmap.c
index ff94f2235..be631060a 100644
--- a/libc/sysdeps/linux/common/munmap.c
+++ b/libc/sysdeps/linux/common/munmap.c
@@ -10,4 +10,6 @@
#include "syscalls.h"
#include <unistd.h>
#include <sys/mman.h>
-_syscall2(int, munmap, void *, start, size_t, length);
+#define __NR___munmap __NR_munmap
+attribute_hidden _syscall2(int, __munmap, void *, start, size_t, length);
+strong_alias(__munmap,munmap)