File stubs.cpp

namespace wasm

SYSCALL NUMBERING

Have a look in the sysroot at include/bits/syscall.h to determine the system call numbering.

Functions

uint32_t getFaasmStubs(NativeSymbol **nativeSymbols)
static int32_t syscall_wrapper(wasm_exec_env_t exec_env, int32_t syscallNo, int32_t syscallArgs)
static int32_t __cxa_allocate_exception_wrapper(wasm_exec_env_t exec_env, int32_t a)
static void __cxa_throw_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b, int32_t c)
static int32_t shm_open_wrapper(wasm_exec_env_t exec_env, char *a, int32_t b, int32_t c)

Variables

static NativeSymbol ns[] = {REG_NATIVE_FUNC(__cxa_allocate_exception, "(i)i"), REG_NATIVE_FUNC(__cxa_throw, "(iii)"), REG_NATIVE_FUNC(shm_open, "($ii)i"), REG_NATIVE_FUNC(syscall, "(ii)i"),}