# std: add SbrkAllocator and use it for Plan 9 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/841b54f5e3447ee94d89007bf670b3924f78b0d2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 841b54f5e3447ee94d89007bf670b3924f78b0d2

Requested commit: 841b54f5e3447ee94d89007bf670b3924f78b0d2

Commit: 841b54f5e3447ee94d89007bf670b3924f78b0d2

Tree: c8f2442e41f06b684e43f0f48f361936b814f57f

Author: Jacob G-W

Committer: Jacob G-W

## Message

```
std: add SbrkAllocator and use it for Plan 9

Implements issue #6451.
This was needed to support allocation on Plan 9 and now other operating
systems like DOS can also use it.

It is a modified version of the WasmAllocator since wasm also uses a
sbrk-esque allocation system.

This commit also adds the necessary system bits for sbrk to work on plan 9.

```

## Parents

- [4d711e8edd1234e727ba7e801b71090dc885249e](https://git.cafe/gitcafe/zig/commit/4d711e8edd1234e727ba7e801b71090dc885249e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/841b54f5e3447ee94d89007bf670b3924f78b0d2?format=markdown)
