| ... | ... | @@ -1676,10 +1676,8 @@ pub fn openatWasi( |
| 1676 | 1676 | .INTR => continue, |
| 1677 | 1677 | |
| 1678 | 1678 | .FAULT => unreachable, |
| 1679 | | // FIXME: It is worth looking into returning a `error.BadPathName` |
| 1680 | | // here if wasi follows other posix behavior |
| 1681 | | // see: https://github.com/ziglang/zig/issues/15607 |
| 1682 | | .INVAL => unreachable, |
| 1679 | // Provides INVAL with a linux host on a bad path name, but NOENT on Windows |
| 1680 | .INVAL => return error.BadPathName, |
| 1683 | 1681 | .BADF => unreachable, |
| 1684 | 1682 | .ACCES => return error.AccessDenied, |
| 1685 | 1683 | .FBIG => return error.FileTooBig, |