Skip to content
Commit 28aff047 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

string: Implement strerror in terms of strerror_l



If the thread is terminated then __libc_thread_freeres will free the
storage via __glibc_tls_internal_free.

It is only within the calling thread that this matters.  It makes
strerror MT-safe.

Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
and s390x-linux-gnu.

Tested-by: default avatarCarlos O'Donell <carlos@redhat.com>
Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 9deec7c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment