Stream: wasi

Topic: Who is expected to make `posix_fallocate` work?


view this post on Zulip Brett Cannon (Nov 06 2023 at 23:40):

It looks like posix_fallocate() is defined by WASI-libc, but it is returning a 58 error code when used under wasmtime. Is this a WASI-libc issue or a wasmtime issue? I ask because this apparently used to work with much older versions of both, but not with WASI-SDK 20 and wasmtime 14, so I'm trying to track down where to ask for more information.

view this post on Zulip Alex Crichton (Nov 07 2023 at 05:29):

I believe fallocate is not implemented in wasmtime's implementation of wasi_snapshot_preview1 because it's been removed from preview2 due to portability concerns

view this post on Zulip Brett Cannon (Nov 07 2023 at 21:24):

Thanks! I'll then forcibly skip it existing in Python then.


Last updated: Dec 23 2024 at 12:05 UTC