summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sh/be/libc.abilist
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-05-18 17:05:05 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-19 10:34:33 -0300
commit6e443c2d7fad5de3e15f55ef479973c7a8655796 (patch)
treefe77ecfe01c2a4272fd0e0c73df6e6c0a41d08ee /sysdeps/unix/sysv/linux/sh/be/libc.abilist
parent2b902d0633dc34a665f13b8c19e48feab84349e6 (diff)
downloadglibc-6e443c2d7fad5de3e15f55ef479973c7a8655796.tar.gz
string: Add sigabbrev_np and sigdescr_np
The sigabbrev_np returns the abbreviated signal name (i.g. "HUP" for SIGHUP) while sigdescr_np returns string describing error number (i.g "Hangup" for SIGHUP). Different than strsignal, sigdescr_np does not attempt to translate the return description and both functions return NULL for an invalid signal number. They should be used instead of sys_siglist or sys_sigabbrev and they are both thread and async-signal safe. They are added as GNU extensions on string.h header (same as strsignal). Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu, and s390x-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/be/libc.abilist')
-rw-r--r--sysdeps/unix/sysv/linux/sh/be/libc.abilist2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/be/libc.abilist b/sysdeps/unix/sysv/linux/sh/be/libc.abilist
index d9988dae90..4f954ac7ee 100644
--- a/sysdeps/unix/sysv/linux/sh/be/libc.abilist
+++ b/sysdeps/unix/sysv/linux/sh/be/libc.abilist
@@ -2065,6 +2065,8 @@ GLIBC_2.32 pthread_attr_setsigmask_np F
GLIBC_2.32 pthread_getaffinity_np F
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.4 __confstr_chk F
GLIBC_2.4 __fgets_chk F
GLIBC_2.4 __fgets_unlocked_chk F