wasm-micro-runtime/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives
Yage Hu 0b332d8987
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:
https://github.com/bytecodealliance/wasmtime/issues/6505#issuecomment-1574122949
2023-12-07 09:52:53 +08:00
..
include Refactor clock functions to use WASI types (#2666) 2023-10-25 18:06:04 +08:00
src Portably handle fd_advise on directory fd (#2875) 2023-12-07 09:52:53 +08:00
LICENSE Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00