Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/libnosys/sbrk.c')
-rw-r--r--libgloss/libnosys/sbrk.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/libgloss/libnosys/sbrk.c b/libgloss/libnosys/sbrk.c
deleted file mode 100644
index 8091d7083..000000000
--- 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;
-}