# std.fs: Split Iterator.next on Linux and WASI to allow for handling platform-specific errors · gitcafe/zig

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

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

Visibility: public

Requested revision: e7b6a1833106a5d808e4e82a2d61abf417aff407

Requested commit: e7b6a1833106a5d808e4e82a2d61abf417aff407

Commit: e7b6a1833106a5d808e4e82a2d61abf417aff407

Tree: 004d9b0f4dc4fbc7957760ab0299eff52780933e

Author: Ryan Liptak

Committer: Veikka Tuominen

## Message

```
std.fs: Split Iterator.next on Linux and WASI to allow for handling platform-specific errors

Follow up to #12226, implements the compromise detailed in https://github.com/ziglang/zig/issues/12211#issuecomment-1196011590

```

## Parents

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

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