]> git.proxmox.com Git - wasi-libc.git/commit
add `__wasilibc_reset_preopens` (#489)
authorJoel Dice <joel.dice@fermyon.com>
Thu, 11 Apr 2024 22:27:43 +0000 (16:27 -0600)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 25 Jun 2024 10:13:35 +0000 (12:13 +0200)
commite825de37a3d04f6835fed610f13d5569a0098424
treebbc827718e0859af4dc7332e03e2e8ddc56cc09c
parent22199f80b6892bc612fb282fcbd2e7e70fb14683
add `__wasilibc_reset_preopens` (#489)

This resets the preopens table to an uninitialized state, forcing it to be
reinitialized next time it is needed.  This is useful when pre-initializing
using e.g. `wizer` or `component-init`.  Such tools are capable of taking a
snapshot of a running application which may later be resumed on an unrelated
runtime (which may have its own, unrelated preopens).

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
expected/wasm32-wasip1-threads/defined-symbols.txt
expected/wasm32-wasip1/defined-symbols.txt
expected/wasm32-wasip2/defined-symbols.txt
libc-bottom-half/sources/preopens.c