diff options
Diffstat (limited to 'libgloss/libnosys/sbrk.c')
-rw-r--r-- | libgloss/libnosys/sbrk.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libgloss/libnosys/sbrk.c b/libgloss/libnosys/sbrk.c deleted file mode 100644 index 39f411cdd..000000000 --- a/libgloss/libnosys/sbrk.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Version of sbrk for no operating system. */ - -#include "config.h" -#include <_syslist.h> - -void * -_sbrk (incr) - int incr; -{ - extern char end; /* Set by linker. */ - static char * heap_end; - char * prev_heap_end; - - if (heap_end == 0) - heap_end = & end; - - prev_heap_end = heap_end; - heap_end += incr; - - return (void *) prev_heap_end; -} |