39 #include <sys/types.h>
46 void srand(
unsigned int seed) {
51 return (
int)*MACA_RANDOM;
54 extern int __HEAP_START;
55 extern int __HEAP_END;
57 caddr_t _sbrk (
int incr )
59 static unsigned char *heap =
NULL;
60 unsigned char *prev_heap;
63 heap = (
unsigned char *)&__HEAP_START;
68 if((heap + incr) >= (
unsigned char *)&__HEAP_END)
return((
void *)-1);
72 return (caddr_t) prev_heap;