]> git.proxmox.com Git - wasi-libc.git/commitdiff
threads: Enable __lock file for posix thread model (#337)
authorMarcin Kolny <mkolny@amazon.com>
Mon, 10 Oct 2022 22:19:25 +0000 (23:19 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 22:19:25 +0000 (15:19 -0700)
Makefile
expected/wasm32-wasi/posix/defined-symbols.txt
expected/wasm32-wasi/posix/undefined-symbols.txt

index 7f71a3e23d476d5db296988154feb06feabd8b8e..9529b0108eb43dd725136e120864ba744b3fa40f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -190,6 +190,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
 ifeq ($(THREAD_MODEL), posix)
 LIBC_TOP_HALF_MUSL_SOURCES += \
     $(addprefix $(LIBC_TOP_HALF_MUSL_SRC_DIR)/, \
+        thread/__lock.c \
         thread/__wait.c \
         thread/__timedwait.c \
         thread/pthread_cleanup_push.c \
index 95f3c788dcccf5a93b7ec65e1f4b1a5f3a03cf32..b793259576c3b472b3b3347c585a3c7123048c9a 100644 (file)
@@ -143,6 +143,7 @@ __loc_is_allocated
 __locale_lock
 __locale_lockptr
 __localtime_r
+__lock
 __log2_data
 __log2f_data
 __log_data
@@ -285,6 +286,7 @@ __tre_mem_new_impl
 __tsearch_balance
 __uflow
 __unlist_locked_file
+__unlock
 __uselocale
 __utc
 __wait
index 2b0d2b3e6477fce8cb42dfff8863ec115f788100..407a6b71bddd8533887ada3f6fce65c2c8eb50dc 100644 (file)
@@ -61,7 +61,6 @@ __imported_wasi_snapshot_preview1_sock_send
 __imported_wasi_snapshot_preview1_sock_shutdown
 __imported_wasi_snapshot_preview2_thread_spawn
 __letf2
-__lock
 __lockfile
 __lttf2
 __main_argc_argv
@@ -72,7 +71,6 @@ __thread_list_lock
 __tls_base
 __trunctfdf2
 __trunctfsf2
-__unlock
 __unlockfile
 __unordtf2
 __wasilibc_pthread_self