COHERENT manpages

This page displays the COHERENT manpage for brk() [Change size of data area].

List of available manpages
Index


brk() -- System Call (libc)

Change size of data area
#include <unistd.h>
brk(addr)
char *addr;

The break  is the lowest address  above the data area  of a process.  brk()
sets the  break to the  given addr, possibly  rounding up by  some machine-
dependent factor.

See Also

libc,
malloc(),
sbrk(),
unistd.h
If the request succeeds, brk()  returns zero.  Otherwise, it returns -1 and
sets errno to ENOMEM.