summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/libc.abilist
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-05-18 17:41:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-07-03 18:02:35 -0300
commitc3160a7ce3f845bd751811b14086cc1d2bfca994 (patch)
tree7eb973643f68630d0b0d3490bee78713d91f6c9a /sysdeps/unix/sysv/linux/i386/libc.abilist
parentffe78f0e3bc507c78b7ade1f50918e8aaeb57745 (diff)
downloadglibc-azanella/sig_err-improvements-v6.tar.gz
string: Add strerrorname_np and strerrordesc_npazanella/sig_err-improvements-v6
The strerrorname_np returns error number name (i.g. "EINVAL" for EINVAL) while strerrordesc_np returns string describing error number (i.g "Invalid argument" for EINVAL). Different than strerror, strerrordesc_np does not attempt to translate the return description, both functions return NULL for an invalid error number. They should be used instead of sys_errlist and sys_nerr and both are thread and async-signal safe. These functions are GNU extensions. Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu, and s390x-linux-gnu. Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/libc.abilist')
-rw-r--r--sysdeps/unix/sysv/linux/i386/libc.abilist2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/libc.abilist b/sysdeps/unix/sysv/linux/i386/libc.abilist
index f18de50f9e..c84fb17c81 100644
--- a/sysdeps/unix/sysv/linux/i386/libc.abilist
+++ b/sysdeps/unix/sysv/linux/i386/libc.abilist
@@ -2226,6 +2226,8 @@ GLIBC_2.32 pthread_getattr_np F
GLIBC_2.32 pthread_sigmask F
GLIBC_2.32 sigabbrev_np F
GLIBC_2.32 sigdescr_np F
+GLIBC_2.32 strerrordesc_np F
+GLIBC_2.32 strerrorname_np F
GLIBC_2.4 __confstr_chk F
GLIBC_2.4 __fgets_chk F
GLIBC_2.4 __fgets_unlocked_chk F