From 01d42747118522b7a486ece1736b93c6d5751344 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 18 Apr 2015 18:00:22 -0400 Subject: make dlerror state and message thread-local and dynamically-allocated this fixes truncation of error messages containing long pathnames or symbol names. the dlerror state was previously required by POSIX to be global. the resolution of bug 97 relaxed the requirements to allow thread-safe implementations of dlerror with thread-local state and message buffer. --- src/internal/pthread_impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/internal/pthread_impl.h') diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index a0226a63..56877b3a 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -44,6 +44,8 @@ struct pthread { volatile int exitlock[2]; volatile int startlock[2]; unsigned long sigmask[_NSIG/8/sizeof(long)]; + char *dlerror_buf; + int dlerror_flag; void *stdio_locks; void **dtv_copy; }; -- cgit v1.2.1