wasm-micro-runtime/core/iwasm/libraries/libc-wasi
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
..
sandboxed-system-primitives Portably handle fd_advise on directory fd (#2875) 2023-12-07 09:52:53 +08:00
libc_wasi_wrapper.c Refactor clock functions to use WASI types (#2666) 2023-10-25 18:06:04 +08:00
libc_wasi_wrapper.h Return uint32 from WASI functions (#2749) 2023-11-13 20:07:32 +08:00
libc_wasi.cmake Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00