diff options
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/exec.c | 11 | ||||
-rw-r--r-- | libc/unistd/getpass.c | 2 |
2 files changed, 11 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 /**********************************************************************/ diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c index 5dc6f5cf1..2af8f00a1 100644 --- a/libc/unistd/getpass.c +++ b/libc/unistd/getpass.c @@ -16,6 +16,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define setvbuf __setvbuf + #include <stdio.h> #include <string.h> #include <termios.h> |