NAME
|
brk, sbrk – change memory allocation |
SYNOPSIS
|
#include <u.h> #include <libc.h> |
DESCRIPTION
|
Brk sets the system's idea of the lowest bss location not used
by the program (called the break) to addr rounded up to the next
multiple of 8 bytes. Locations not less than addr and below the
stack pointer may cause a memory violation if accessed.
|
SOURCE
|
/sys/src/libc/9sys/sbrk.c |
SEE ALSO
|
intro(2), malloc(2), segattach(2), segbrk(2) |
DIAGNOSTICS
|
These functions set errstr.
|