From 765696aac59b7146777e4dfda0d8d35df0bb29e1 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 4 Dec 2005 01:08:42 +0000 Subject: More hiding, 300 left --- libc/stdlib/malloc-simple/alloc.c | 2 ++ libc/stdlib/malloc-standard/free.c | 2 ++ libc/stdlib/malloc/free.c | 2 ++ libc/stdlib/stdlib.c | 3 ++- libc/stdlib/system.c | 1 + libc/stdlib/unix_grantpt.c | 1 + 6 files changed, 10 insertions(+), 1 deletion(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c index 7f0a91f0b..382f8db44 100644 --- a/libc/stdlib/malloc-simple/alloc.c +++ b/libc/stdlib/malloc-simple/alloc.c @@ -6,6 +6,8 @@ * Parts of the memalign code were stolen from malloc-930716. */ +#define munmap __munmap + #define _GNU_SOURCE #include #include diff --git a/libc/stdlib/malloc-standard/free.c b/libc/stdlib/malloc-standard/free.c index 94e1d65b1..aa8edec97 100644 --- a/libc/stdlib/malloc-standard/free.c +++ b/libc/stdlib/malloc-standard/free.c @@ -14,6 +14,8 @@ Hacked up for uClibc by Erik Andersen */ +#define munmap __munmap + #include "malloc.h" diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c index 88684e6df..eb35e78ee 100644 --- a/libc/stdlib/malloc/free.c +++ b/libc/stdlib/malloc/free.c @@ -11,6 +11,8 @@ * Written by Miles Bader */ +#define munmap __munmap + #include #include #include diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index fb8ce186b..04c85d32f 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -750,7 +750,7 @@ void *bsearch(const void *key, const void *base, size_t /* nmemb */ high, * calculation, as well as to reduce the generated code size with * bcc and gcc. */ -void qsort (void *base, +void attribute_hidden __qsort (void *base, size_t nel, size_t width, int (*comp)(const void *, const void *)) @@ -795,6 +795,7 @@ void qsort (void *base, } while (wgap); } } +strong_alias(__qsort,qsort) /* ---------- original snippets version below ---------- */ diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index 7dba803ac..e268bf5ef 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -1,4 +1,5 @@ #define wait4 __wait4 +#define execl __execl #include #include diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index 9bd374978..1f1c4df5c 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -19,6 +19,7 @@ #define memchr __memchr #define getgid __getgid +#define getuid __getuid #define setrlimit __setrlimit #define waitpid __waitpid -- cgit v1.2.3