summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/brk.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-21 02:39:29 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-21 02:39:29 +0000
commit55497563115712ac1ec2c70713357a7489291037 (patch)
tree725de76ccf89cc82389dae206db3a77f8f86c9cf /libc/sysdeps/linux/i386/brk.c
parent84fd661079f473310ea6f05771d5deea6d3c8e9c (diff)
Make sbrk common, add arm/brk.c, cleanup leftover damage
Diffstat (limited to 'libc/sysdeps/linux/i386/brk.c')
-rw-r--r--libc/sysdeps/linux/i386/brk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/i386/brk.c b/libc/sysdeps/linux/i386/brk.c
index 9ae565631..7575ebcf0 100644
--- a/libc/sysdeps/linux/i386/brk.c
+++ b/libc/sysdeps/linux/i386/brk.c
@@ -21,16 +21,14 @@
#include <unistd.h>
#include <sys/syscall.h>
-#ifndef __ptrvalue
-#define __ptrvalue
-#endif
/* This must be initialized data because commons can't have aliases. */
void *___brk_addr = 0;
+
int brk (void *addr)
{
- void *newbrk, *scratch;
+ void *__unbounded newbrk, *__unbounded scratch;
asm ("movl %%ebx, %1\n" /* Save %ebx in scratch register. */
"movl %3, %%ebx\n" /* Put ADDR in %ebx to be syscall arg. */