wasm-micro-runtime/core/shared/platform/common/posix
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
..
platform_api_posix.cmake re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00
posix_malloc.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
posix_memmap.c Fix ‘MADV_HUGEPAGE’ undeclared compilation error (#1012) 2022-02-18 11:25:06 +08:00
posix_socket.c Fix bind() calls to receive the correct size of sockaddr structure (#1490) 2022-09-16 11:09:03 +08:00
posix_thread.c Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
posix_time.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00