Brk v0.1.0
Changes the process program break.
Package: Bsd
Signature
func Brk(addr: *opaque) -> int64;
Parameters
| Name | Type | Description |
|---|---|---|
addr | *opaque | Requested new program break. |
Returns
int64 - 0 on success, or a negative errno value on failure.
Brk changes memory traditionally managed by process allocators. Calling it
independently of the runtime allocator can corrupt the heap. Prefer
Memory or Mmap for application allocations.See also
Bsd— the package overview