wasm-micro-runtime/core/shared/platform
Marcin Kolny f6bbeade2a
Implement wasi_addr_resolve function (#1319)
Implement wasi_addr_resolve function.
    
Also slightly modify the interface to make it more accessible for the end user:
- replace port argument with the service - so the user can actually get the port for a given service if unknown
- introduce __wasi_addr_info_t and use it as a buffer for addresses, instead of generic buffer
- introduce __wasi_addr_info_hints_t so user can enable filtering on the syscall level (and therefore use smaller buffers for addresses)
- add max_size parameter for the API as an output - in case the number of addresses is bigger than the buffer size, user can repeat the call with bigger buffer

This change is very minimalistic, and it doesn't include the followings:
 1. implementation of getaddrinfo in the lib-socket
 2. sample application
Which are to be added in the following change #1336
2022-07-28 12:25:05 +08:00
..
alios Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
android Upgrade uvwasi to 1.42.0 and fix Android link issues (#938) 2022-01-06 18:25:37 +08:00
common Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
darwin Enable source debugging feature for windows platform (#910) 2021-12-22 19:52:07 +08:00
esp-idf Refactor Orc JIT to enable lazy compilation (#974) 2022-01-20 18:40:13 +08:00
include Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
linux Enable source debugging feature for windows platform (#910) 2021-12-22 19:52:07 +08:00
linux-sgx Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
nuttx Set nuttx isatty definition according to CONFIG_SERIAL_TERMIOS (#1234) 2022-06-20 11:58:48 +08:00
riot Correct RIOT os_mmap size type to size_t (#1002) 2022-02-09 10:21:54 +08:00
rt-thread Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
vxworks Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
windows Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
zephyr Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +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.