3 brk, sbrk \- change memory allocation
14 void* sbrk(ulong incr)
17 sets the system's idea of the lowest bss location not used by the program
21 rounded up to the next multiple of 8 bytes.
22 Locations not less than
24 and below the stack pointer
25 may cause a memory violation if accessed.
27 In the alternate function
30 more bytes are added to the
31 program's data space and a pointer to the
32 start of the new area is returned.
33 Rounding occurs as with
36 When a program begins execution via
38 the break is set at the
39 highest location defined by the program
40 and data storage areas.
41 Ordinarily, therefore, only programs with growing
42 data areas need to use
46 with a zero argument returns the lowest address
47 in the dynamic segment.
49 .B /sys/src/libc/9sys/sbrk.c