wasm-micro-runtime/core/shared/platform
zoraaver fa5e9d72b0
Abstract POSIX filesystem functions (#2585)
To allow non-POSIX platforms such as Windows to support WASI libc
filesystem functionality, create a set of wrapper functions which provide a
platform-agnostic interface to interact with the host filesystem. For now,
the Windows implementation is stubbed but this will be implemented
properly in a future PR. There are no functional changes in this change,
just a reorganization of code to move any direct POSIX references out of
posix.c in the libc implementation into posix_file.c under the shared
POSIX sources.

See https://github.com/bytecodealliance/wasm-micro-runtime/issues/2495 for a
more detailed overview of the plan to port the WASI libc filesystem to Windows.
2023-10-19 19:19:39 +08:00
..
alios Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
android Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
common Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
cosmopolitan Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
darwin Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
freebsd Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
include Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
linux Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
linux-sgx Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
nuttx Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
riot Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
rt-thread Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
vxworks Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
windows Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
zephyr Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
README.md re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.