diff options
Diffstat (limited to 'libgloss/libnosys/sbrk.c')
-rw-r--r-- | libgloss/libnosys/sbrk.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libgloss/libnosys/sbrk.c b/libgloss/libnosys/sbrk.c deleted file mode 100644 index 8091d70..0000000 --- a/libgloss/libnosys/sbrk.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Version of sbrk for no operating system. - */ - -#include "config.h" -#include <_ansi.h> -#include <_syslist.h> -#include <sys/types.h> -#include <errno.h> -#undef errno -extern int errno; - -caddr_t -_DEFUN (_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 (caddr_t) prev_heap_end; -} |