diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 09:24:29 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 09:24:29 +0000 |
commit | 3c0674cb095262e358703d810e82d8b725e67d7e (patch) | |
tree | a09174bc0c136420e944d6478eb2d6af841de7bb /libc/sysdeps | |
parent | 7afc8b539d126fb658bd0e1f331a430f852d791f (diff) |
Do hidden sbrk
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/sbrk.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/cris/sbrk.c | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/frv/sbrk.c | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/sbrk.c | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh64/sbrk.c | 5 |
5 files changed, 14 insertions, 10 deletions
diff --git a/libc/sysdeps/linux/common/sbrk.c b/libc/sysdeps/linux/common/sbrk.c index 028370e99..945adbd6f 100644 --- a/libc/sysdeps/linux/common/sbrk.c +++ b/libc/sysdeps/linux/common/sbrk.c @@ -27,7 +27,7 @@ extern int brk (void *addr); /* Extend the process's data space by INCREMENT. If INCREMENT is negative, shrink data space by - INCREMENT. Return start of new space allocated, or -1 for errors. */ -void * sbrk (intptr_t increment) +void attribute_hidden * __sbrk (intptr_t increment) { void *oldbrk; @@ -44,4 +44,4 @@ void * sbrk (intptr_t increment) return oldbrk; } - +strong_alias(__sbrk,sbrk) diff --git a/libc/sysdeps/linux/cris/sbrk.c b/libc/sysdeps/linux/cris/sbrk.c index 1ed1d9df9..3683435bf 100644 --- a/libc/sysdeps/linux/cris/sbrk.c +++ b/libc/sysdeps/linux/cris/sbrk.c @@ -9,8 +9,8 @@ extern void * __curbrk; extern int __init_brk (void); -void * -sbrk(intptr_t increment) +void attribute_hidden * +__sbrk(intptr_t increment) { if (__init_brk () == 0) { void * tmp = __curbrk + increment; @@ -34,3 +34,4 @@ sbrk(intptr_t increment) } return ((void *) -1); } +strong_alias(__sbrk,sbrk) diff --git a/libc/sysdeps/linux/frv/sbrk.c b/libc/sysdeps/linux/frv/sbrk.c index 1c9e5b172..9cc8c4abd 100644 --- a/libc/sysdeps/linux/frv/sbrk.c +++ b/libc/sysdeps/linux/frv/sbrk.c @@ -9,8 +9,8 @@ extern void * __curbrk; extern int __init_brk (void); extern void *_brk(void *ptr); -void * -sbrk(intptr_t increment) +void attribute_hidden * +__sbrk(intptr_t increment) { if (__init_brk () == 0) { @@ -23,3 +23,4 @@ sbrk(intptr_t increment) } return ((void *) -1); } +strong_alias(__sbrk,sbrk) diff --git a/libc/sysdeps/linux/sh/sbrk.c b/libc/sysdeps/linux/sh/sbrk.c index 1c9e5b172..9cc8c4abd 100644 --- a/libc/sysdeps/linux/sh/sbrk.c +++ b/libc/sysdeps/linux/sh/sbrk.c @@ -9,8 +9,8 @@ extern void * __curbrk; extern int __init_brk (void); extern void *_brk(void *ptr); -void * -sbrk(intptr_t increment) +void attribute_hidden * +__sbrk(intptr_t increment) { if (__init_brk () == 0) { @@ -23,3 +23,4 @@ sbrk(intptr_t increment) } return ((void *) -1); } +strong_alias(__sbrk,sbrk) diff --git a/libc/sysdeps/linux/sh64/sbrk.c b/libc/sysdeps/linux/sh64/sbrk.c index 1c9e5b172..9cc8c4abd 100644 --- a/libc/sysdeps/linux/sh64/sbrk.c +++ b/libc/sysdeps/linux/sh64/sbrk.c @@ -9,8 +9,8 @@ extern void * __curbrk; extern int __init_brk (void); extern void *_brk(void *ptr); -void * -sbrk(intptr_t increment) +void attribute_hidden * +__sbrk(intptr_t increment) { if (__init_brk () == 0) { @@ -23,3 +23,4 @@ sbrk(intptr_t increment) } return ((void *) -1); } +strong_alias(__sbrk,sbrk) |