wasm-micro-runtime/core/shared/platform
Marcin Kolny f96773410a
Fix bind() calls to receive the correct size of sockaddr structure (#1490)
For some implementations (e.g. Mac OS) `bind()` requires the length to be exactly
equal to either `sockaddr_in` or `sockaddr_in6` structure. Because we always used
 `sizeof(struct sockaddr_storage)`, `bind()` was returning errors. In this change we
 fix the behavior. See StackOverflow [1] for details.

[1] https://stackoverflow.com/questions/73707162/socket-bind-failed-with-invalid-argument-error-for-program-running-on-macos
2022-09-16 11:09:03 +08:00
..
alios Fix build error on alios platform (#1459) 2022-09-07 13:50:11 +08:00
android Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
common Fix bind() calls to receive the correct size of sockaddr structure (#1490) 2022-09-16 11:09:03 +08:00
darwin Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
esp-idf esp-idf: Make esp-idf support Libc WASI (#1356) 2022-08-15 16:17:28 +08:00
include Added http downloader and multicast socket options (#1467) 2022-09-15 17:09:39 +08:00
linux Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
linux-sgx Added http downloader and multicast socket options (#1467) 2022-09-15 17:09:39 +08:00
nuttx Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
riot Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
rt-thread Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
vxworks Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
windows Added http downloader and multicast socket options (#1467) 2022-09-15 17:09:39 +08:00
zephyr Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +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.