File wamr/env.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 getFaasmEnvApi(NativeSymbol **nativeSymbols)
-
uint32_t getFaasmWasiEnvApi(NativeSymbol **nativeSymbols)
-
static int32_t getrlimit_wrapper(wasm_exec_env_t exec_env, int32_t a, int32_t b)
-
uint32_t wasi_args_get(wasm_exec_env_t exec_env, uint32_t *argvOffsetsWasm, char *argvBuffWasm)
-
uint32_t wasi_args_sizes_get(wasm_exec_env_t exec_env, uint32_t *argcWasm, uint32_t *argvBuffSizeWasm)
-
uint32_t wasi_environ_get(wasm_exec_env_t exec_env, uint32_t *envOffsetsWasm, char *envBuffWasm)
-
uint32_t wasi_environ_sizes_get(wasm_exec_env_t exec_env, int32_t *envCountWasm, int32_t *envBufferSizeWasm)
-
void wasi_proc_exit(wasm_exec_env_t execEnv, int32_t retCode)
-
static uint32_t wasi_random_get(wasm_exec_env_t exec_env, void *buf, uint32_t bufLen)
Variables
-
static NativeSymbol ns[] = {REG_NATIVE_FUNC(getrlimit, "(ii)i"),}
-
static NativeSymbol wasiNs[] = {REG_WASI_NATIVE_FUNC(args_get, "(**)i"), REG_WASI_NATIVE_FUNC(args_sizes_get, "(**)i"), REG_WASI_NATIVE_FUNC(environ_get, "(**)i"), REG_WASI_NATIVE_FUNC(environ_sizes_get, "(**)i"), REG_WASI_NATIVE_FUNC(proc_exit, "(i)"), REG_WASI_NATIVE_FUNC(random_get, "(*~)i"),}
-
uint32_t getFaasmEnvApi(NativeSymbol **nativeSymbols)