diff options
Diffstat (limited to 'libc/sysdeps/linux/common/sbrk.c')
-rw-r--r-- | libc/sysdeps/linux/common/sbrk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/sbrk.c b/libc/sysdeps/linux/common/sbrk.c index 028370e99..d8507335b 100644 --- a/libc/sysdeps/linux/common/sbrk.c +++ b/libc/sysdeps/linux/common/sbrk.c @@ -21,27 +21,27 @@ /* Defined in brk.c. */ extern void *__curbrk; -extern int brk (void *addr); +extern int __brk (void *addr) attribute_hidden; /* 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; if (__curbrk == NULL) - if (brk (0) < 0) /* Initialize the break. */ + if (__brk (0) < 0) /* Initialize the break. */ return (void *) -1; if (increment == 0) return __curbrk; oldbrk = __curbrk; - if (brk (oldbrk + increment) < 0) + if (__brk (oldbrk + increment) < 0) return (void *) -1; return oldbrk; } - +strong_alias(__sbrk,sbrk) |