+++ /dev/null
-/* sbrk.c -- allocate memory dynamically.\r
- * \r
- * Copyright (c) 1995 Cygnus Support\r
- *\r
- * The authors hereby grant permission to use, copy, modify, distribute,\r
- * and license this software and its documentation for any purpose, provided\r
- * that existing copyright notices are retained in all copies and that this\r
- * notice is included verbatim in any distributions. No written agreement,\r
- * license, or royalty fee is required for any of the authorized uses.\r
- * Modifications to this software may be copyrighted by their authors\r
- * and need not follow the licensing terms described here, provided that\r
- * the new terms are clearly indicated on the first page of each file where\r
- * they apply.\r
- */\r
-#include <errno.h>\r
-#include "glue.h"\r
-\r
-#define RAMSIZE (caddr_t)0x80000\r
-/*\r
- * sbrk -- changes heap size size. Get nbytes more\r
- * RAM. We just increment a pointer in what's\r
- * left of memory on the board.\r
- */\r
-char *\r
-sbrk (nbytes)\r
- int nbytes;\r
-{\r
- static long heap_ptr=_end; \r
- char *base;\r
- #ifdef debuglg\r
- prs("[sbrk]\n");\r
- #endif\r
- \r
- base = heap_ptr;\r
- heap_ptr += nbytes;\r
- \r
- return base;\r
-}\r