summaryrefslogtreecommitdiff
path: root/libc/unistd/exec.c
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/unistd/exec.c
parent855dca36fe7aa348dc56996385fbbb77fbf3e83d (diff)
More hiding, 300 left
Diffstat (limited to 'libc/unistd/exec.c')
-rw-r--r--libc/unistd/exec.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libc/unistd/exec.c b/libc/unistd/exec.c
index b09bdfef4..9793d9ad4 100644
--- a/libc/unistd/exec.c
+++ b/libc/unistd/exec.c
@@ -30,6 +30,9 @@
* to free the storage allocated for the copy. Better ideas anyone?
*/
+#define munmap __munmap
+#define execve __execve
+
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
@@ -91,7 +94,7 @@ void __exec_free(void *ptr, size_t size)
/**********************************************************************/
#ifdef L_execl
-int execl(const char *path, const char *arg, ...)
+int attribute_hidden __execl(const char *path, const char *arg, ...)
{
EXEC_ALLOC_SIZE(size) /* Do NOT add a semicolon! */
int n;
@@ -122,6 +125,7 @@ int execl(const char *path, const char *arg, ...)
return n;
}
+strong_alias(__execl,execl)
#endif
/**********************************************************************/
@@ -174,6 +178,8 @@ int execle(const char *path, const char *arg, ...)
/**********************************************************************/
#ifdef L_execlp
+extern int __execvp(const char *path, char *const argv[]) attribute_hidden;
+
int execlp(const char *file, const char *arg, ...)
{
EXEC_ALLOC_SIZE(size) /* Do NOT add a semicolon! */
@@ -215,7 +221,7 @@ int execlp(const char *file, const char *arg, ...)
* /bin, and then /usr/bin. */
static const char default_path[] = ":/bin:/usr/bin";
-int execvp(const char *path, char *const argv[])
+int attribute_hidden __execvp(const char *path, char *const argv[])
{
char *buf = NULL;
char *p;
@@ -312,6 +318,7 @@ int execvp(const char *path, char *const argv[])
return -1;
}
+strong_alias(__execvp,execvp)
#endif
/**********************************************************************/