wasm-micro-runtime/core
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
..
app-framework esp-idf: Make esp-idf support Libc WASI (#1356) 2022-08-15 16:17:28 +08:00
app-mgr Fix some issues reported by Coverity (#1150) 2022-05-07 16:51:43 +08:00
deps Fix littlevgl link error issues (#1006) 2022-02-15 08:41:36 +08:00
iwasm Update __wasi_sock_accept signature to match wasi_snapshot_preview1 (#1531) 2022-09-29 09:29:54 +08:00
shared linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
config.h linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
version.h Enable the semantic version mechanism for WAMR (#1374) 2022-08-18 19:01:05 +08:00
version.h.in Enable the semantic version mechanism for WAMR (#1374) 2022-08-18 19:01:05 +08:00