Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Portably handle
fd_advise
on directory fd (#2875)
This commit adds a check to `fd_advise`. If the fd is a directory, return `ebadf`. This brings iwasm in line with Wasmtime's behavior. WASI folks have stated that fd_advise should not work on directories as this is a Linux-specific behavior: bytecodealliance/wasmtime#6505 (comment)
- Loading branch information