# std.os: Add DeviceBusy as a possible write error · gitcafe/zig

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

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

Visibility: public

Requested revision: a63134a4a56e8683aeee292b641b4e943cbfb999

Requested commit: a63134a4a56e8683aeee292b641b4e943cbfb999

Commit: a63134a4a56e8683aeee292b641b4e943cbfb999

Tree: 29b1dfb59fa9181676893a2fbfc8d84d2e54e10b

Author: jim price

Committer: Veikka Tuominen

## Message

```
std.os: Add DeviceBusy as a possible write error

In Linux when writing to various files in the virtual file system,
for example /sys/fs/cgroup, if you write an invalid value to a file
you'll get errno 16.

This change allows for these specific cases to be caught instead of
being lumped together in UnexpectedError.

```

## Parents

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

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