diff options
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) |