6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
9 * Revision 1.1 1987-06-21 16:42:40 wesommer
15 static char *rcsid_sms_sbrk_c = "$Header$";
19 * The following routine is a kludge around a deficiency in the Ingres
20 * memory allocator; it likes to call sbrk(0) a lot to check on the
21 * amount of memory allocated.
23 #include <sys/types.h>
28 asm(" .globl curbrk");
29 asm(" .globl minbrk");
31 asm("curbrk: .long _end");
33 asm("minbrk: .long _end");
35 extern caddr_t curbrk;
36 extern caddr_t minbrk;
41 register caddr_t oldbrk = curbrk;
43 if (brk(oldbrk + incr) < 0)
55 * c-continued-statement-offset: 4