[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dlerror sets errno to ENOSYS
From: |
Diego Nieto Cid |
Subject: |
Re: dlerror sets errno to ENOSYS |
Date: |
Sun, 6 Mar 2016 21:11:58 -0300 |
El 6 mar 2016, a las 20:07, Samuel Thibault <samuel.thibault@gnu.org> escribió:
>
>__libc_getspecific is not a weak symbol,
>keep it as it is, calling
>cthread_getspecific.
Oh, yes that's right. I didn't notice the attribute came from a Debian patch
meant to be dropped.
The problem with the function as it is, is that by calling cthread_getspecific
it forces dlerror to clobber errno; and then the console client is in trouble.
May I do as below?
void *val = NULL;
if ( _cthread_init_routine)
cthread_getspecific (key, &val);
return val;
Thanks,
Diego