thread/pthread_condattr_setclock.c \
thread/pthread_condattr_setpshared.c \
thread/pthread_create.c \
+ thread/pthread_join.c \
thread/pthread_mutex_consistent.c \
thread/pthread_mutex_destroy.c \
thread/pthread_mutex_init.c \
__pthread_cond_timedwait
__pthread_create
__pthread_exit
+__pthread_join
__pthread_mutex_lock
__pthread_mutex_timedlock
__pthread_mutex_trylock
pthread_condattr_setpshared
pthread_create
pthread_exit
+pthread_join
pthread_mutex_consistent
pthread_mutex_destroy
pthread_mutex_getprioceiling
pthread_rwlockattr_setpshared
pthread_setcancelstate
pthread_testcancel
+pthread_timedjoin_np
+pthread_tryjoin_np
putc
putc_unlocked
putchar
#define _GNU_SOURCE
#include "pthread_impl.h"
+#ifdef __wasilibc_unmodified_upstream
#include <sys/mman.h>
+#endif
static void dummy1(pthread_t t)
{
if (r == ETIMEDOUT || r == EINVAL) return r;
__tl_sync(t);
if (res) *res = t->result;
+#ifdef __wasilibc_unmodified_upstream
if (t->map_base) __munmap(t->map_base, t->map_size);
+#else
+ if (t->map_base) free(t->map_base);
+#endif
return 0;
}