wasm-micro-runtime/core/shared/platform
Huang Qi 24aa1cb408
Extend os_mmap to support map file from fd (#2763)
Add an extra argument `os_file_handle file` for `os_mmap` to support
mapping file from a file fd, and remove `os_get_invalid_handle` from
`posix_file.c` and `win_file.c`, instead, add it in the `platform_internal.h`
files to remove the dependency on libc-wasi.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-11-16 08:28:54 +08:00
..
alios Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
android Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
common Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
cosmopolitan Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
darwin Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
freebsd Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
include Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
linux Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
linux-sgx Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
nuttx Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
riot Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
rt-thread Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
vxworks Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
windows Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
zephyr Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +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.