This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/iwasm
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
..
aot Fix issue in wasm/aot enlarge memory (#1512) 2022-09-23 09:31:44 +08:00
common Merge dev/socket into main (#1393) 2022-09-22 21:46:14 +08:00
compilation core/iwasm/compilation/debug/dwarf_extractor.cpp: remove dead code (#1507) 2022-09-20 14:43:29 +08:00
fast-jit Fix Fast JIT issues reported by instrument test (#1488) 2022-09-22 19:37:59 +08:00
include Merge dev/socket into main (#1393) 2022-09-22 21:46:14 +08:00
interpreter Fix issue in wasm/aot enlarge memory (#1512) 2022-09-23 09:31:44 +08:00
libraries Update __wasi_sock_accept signature to match wasi_snapshot_preview1 (#1531) 2022-09-29 09:29:54 +08:00
README.md Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00