6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
7 * For copying and distribution information, please see the file
12 static char *rcsid_sms_sbrk_c = "$Header$";
15 #include <mit-copyright.h>
18 * The following routine is a kludge around a deficiency in the Ingres
19 * memory allocator; it likes to call sbrk(0) a lot to check on the
20 * amount of memory allocated.
22 #include <sys/types.h>
27 asm(" .globl curbrk");
28 asm(" .globl minbrk");
30 asm("curbrk: .long _end");
32 asm("minbrk: .long _end");
34 extern caddr_t curbrk;
35 extern caddr_t minbrk;
40 register caddr_t oldbrk = curbrk;
42 if (brk(oldbrk + incr) < 0)
54 * c-continued-statement-offset: 4