wasm-micro-runtime/core/iwasm/libraries
Marcin Kolny c505da7464
Update __wasi_sock_accept signature to match wasi_snapshot_preview1 (#1531)
The function was introduced to WASI about half a year ago after it already
existed in WAMR.

It caused problems with compiling `wasi_socket_ext.c` with the wasi-sdk
that already had this hostcall exported (wasi-sdk >= 15).

The approach we take is the following:
- we update WASI interface to be compatible with the wasi_snapshot_preview1
- compilation with `wasi_socket_ext.c` supports both wasi_sdk >= 15 and wasi_sdk < 15
  (although we intend to drop support for < 15 at one point of time)
- we override `accept()` from wasi-libc - we do that because `accept()` in `wasi-libc`
  doesn't support returning address (as it doesn't have `getpeername()` implemented),
  so `wasi_socket_ext.c` offers more functionality right now

Resolves #1167 and #1528.

[1] https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/witx/wasi_snapshot_preview1.witx
2022-09-29 09:29:54 +08:00
..
debug-engine Merge dev/socket into main (#1393) 2022-09-22 21:46:14 +08:00
lib-pthread Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
lib-rats Fix a potential memory leak issue in wasm_native_init (#1465) 2022-09-08 14:22:34 +08:00
lib-socket Update __wasi_sock_accept signature to match wasi_snapshot_preview1 (#1531) 2022-09-29 09:29:54 +08:00
libc-builtin Make libc-builtin buffered printf be a common feature (#1483) 2022-09-15 15:09:01 +08:00
libc-emcc Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
libc-uvwasi Fix libc-wasi/uvwasi poll/environ_get issues (#1300) 2022-07-20 20:02:26 +08:00
libc-wasi Update __wasi_sock_accept signature to match wasi_snapshot_preview1 (#1531) 2022-09-29 09:29:54 +08:00
thread-mgr thread-mgr: Prevent an already detached thread from being detached again (#1487) 2022-09-15 17:13:33 +08:00