Brk v0.1.0

Source
Changes the process program break.

Package: Bsd

Signature

func Brk(addr: *opaque) -> int64;

Parameters

NameTypeDescription
addr*opaqueRequested 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