# Plan 9: add more features to std.os.plan9 · gitcafe/zig

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

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

Visibility: public

Requested revision: d0fbfd3c9f419ceb7112d06d4a3500e9c13f6044

Requested commit: d0fbfd3c9f419ceb7112d06d4a3500e9c13f6044

Commit: d0fbfd3c9f419ceb7112d06d4a3500e9c13f6044

Tree: ad6eeb111777476b7bf5a0411f98c38006131625

Author: Jacob G-W

Committer: Jacob G-W

## Message

```
Plan 9: add more features to std.os.plan9

* Replaces the exit assembly with the function from std.
* Reads the top-of-stack struct at program startup that can get information
  like the pid.
* Changes the read and write functions to use the Pread and Pwrite syscalls
  instead of the depreciated _READ and _WRITE
* Changes the openat function to use flags instead of perms.
  Plan9 does not support perms when opening, just when creating.
* Adds an errstr function to read the errstr buf created by the kernel

```

## Parents

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

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