mirror of
https://github.com/fluencelabs/musl
synced 2025-07-31 22:31:58 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user