Brk
Changes the process program break.
Module: BSD
Signature
rux
func Brk(addr: *opaque) -> int64;Parameters
| Name | Type | Description |
|---|---|---|
addr | *opaque | Requested new program break. |
Returns
int64 - the raw BSD syscall result.
DANGER
Brk changes memory traditionally managed by process allocators. Calling it independently of the runtime allocator can corrupt the heap. Prefer Std::Memory or Mmap for application allocations.
See also
Memory- memory API overview