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
e7b6a18331Ryan Liptak committed on 8/1/2022, 4:38:05 PM· committed by Veikka Tuominenparentff125db
2 files changedLine totals unavailable