summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-14 13:48:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-14 13:48:23 +0000
commit3c2175b12b8a6cd2362a8c5bd8e2e31d54a8b4da (patch)
treeafaf983954252b1fa0ee5c2fc000e275f28c319e /libc/sysdeps/linux/common
parent7635b30f9d62e33b057d830780a937c6c1d140f5 (diff)
Do hidden brk, hide _brk as well for some archs, convert users of brk
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_stdio.h4
-rw-r--r--libc/sysdeps/linux/common/sbrk.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_stdio.h b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
index 6831ca43a..886e790f0 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_stdio.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
@@ -363,8 +363,8 @@ struct __STDIO_FILE_STRUCT {
**********************************************************************/
#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
-extern void _stdio_init(void);
-extern void _stdio_term(void);
+extern void _stdio_init(void) attribute_hidden;
+extern void _stdio_term(void) attribute_hidden;
#ifdef __STDIO_HAS_OPENLIST
diff --git a/libc/sysdeps/linux/common/sbrk.c b/libc/sysdeps/linux/common/sbrk.c
index 945adbd6f..d8507335b 100644
--- a/libc/sysdeps/linux/common/sbrk.c
+++ b/libc/sysdeps/linux/common/sbrk.c
@@ -21,7 +21,7 @@
/* 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.
@@ -32,14 +32,14 @@ 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;