wasm-micro-runtime/core/shared/platform/linux-sgx
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
..
untrusted Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
platform_internal.h Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
sgx_file.c Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
sgx_file.h Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
sgx_platform.c Refine codes and fix several issues (#1094) 2022-04-18 17:33:30 +08:00
sgx_pthread.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_pthread.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_rsrv_mem_mngr.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_socket.c Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
sgx_socket.h Implement Berkeley Socket API for Intel SGX (#1061) 2022-03-25 17:46:29 +08:00
sgx_thread.c Implement pthread_cond_broadcast wrapper for lib-pthread (#982) 2022-01-25 09:28:02 +08:00
sgx_time.c Implement os_time_get_boot_microsecond() for sgx platform (#818) 2021-11-06 15:58:21 +08:00
sgx_time.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_wamr.edl Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
shared_platform.cmake Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00