native_brk function

int native_brk(
  1. Pointer<Void> addr
)

Set the end of accessible data space (aka "the break") to ADDR. Returns zero on success and -1 for errors (with errno set).

Implementation

int native_brk(
  ffi.Pointer<ffi.Void> addr,
) {
  _brk ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(ffi.Pointer<ffi.Void>), _dart_brk>(
          'brk');
  return _brk!(
    addr,
  );
}