]> git.proxmox.com Git - wasi-libc.git/commit
__wasi_thread_spawn: stop truncating the return value (#353)
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 7 Dec 2022 17:18:28 +0000 (02:18 +0900)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
commit30a103b5059d397465c21c5b09e01a2ac398741a
tree8bae9afbde34e62c6054f8169cf6b3312a244e43
parentcf850d1abf299edab5bd79d459f0e0106b438042
__wasi_thread_spawn: stop truncating the return value (#353)

as __wasi_errno_t is uint16_t, with the current coding,
__pthread_create will never see negative return values from
wasi:thread_spawn.
eg. (int)(uint16_t)-1 == 65535.
libc-bottom-half/headers/public/wasi/api.h
libc-bottom-half/sources/__wasilibc_real.c