]> git.proxmox.com Git - wasi-libc.git/commit
Define an `__errno_location` function. (#347)
authorDan Gohman <dev@sunfishcode.online>
Mon, 28 Nov 2022 21:50:04 +0000 (13:50 -0800)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 21:50:04 +0000 (13:50 -0800)
commit2bb5abedbdeed964adb81d2a0284db872e25a329
tree35b49d88e1555e73d3508cbfbd19e5619205c469
parenta00bf321eeeca836ee2a0d2d25aeb8524107b8cc
Define an `__errno_location` function. (#347)

This function returns the address of `errno`, which makes it easier to
access from non-C languages since `errno` is a thread-local variable
which requires a special ABI.
expected/wasm32-wasi/posix/defined-symbols.txt
expected/wasm32-wasi/single/defined-symbols.txt
libc-bottom-half/sources/__errno_location.c [new file with mode: 0644]