# std: \[breaking\] move errno to become an nonexhaustive enum · gitcafe/zig

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

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

Visibility: public

Requested revision: a98fa56ae9ad437d3e4241bc2c231e0745766ba9

Requested commit: a98fa56ae9ad437d3e4241bc2c231e0745766ba9

Commit: a98fa56ae9ad437d3e4241bc2c231e0745766ba9

Tree: fa621754f81e0007a6f894c0f726e810f0462d95

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: [breaking] move errno to become an nonexhaustive enum

The primary purpose of this change is to eliminate one usage of
`usingnamespace` in the standard library - specifically the usage for
errno values in `std.os.linux`.

This is accomplished by truncating the `E` prefix from error values, and
making errno a proper enum.

A similar strategy can be used to eliminate some other `usingnamespace`
sites in the std lib.

```

## Parents

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

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