summaryrefslogtreecommitdiff
path: root/string/Versions
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-07-03 17:24:32 -0300
commitffe78f0e3bc507c78b7ade1f50918e8aaeb57745 (patch)
tree2d6083350a9f5e7188503aa55ea3a444db47e0f6 /string/Versions
parent158cf9ff079c8dfbd0ebcbd679c9e3eed18b0afb (diff)
downloadglibc-ffe78f0e3bc507c78b7ade1f50918e8aaeb57745.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 the string describing the 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. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'string/Versions')
-rw-r--r--string/Versions3
1 files changed, 3 insertions, 0 deletions
diff --git a/string/Versions b/string/Versions
index 9b709d12a9..6f8dd2d372 100644
--- a/string/Versions
+++ b/string/Versions
@@ -85,4 +85,7 @@ libc {
GLIBC_2.25 {
explicit_bzero;
}
+ GLIBC_2.32 {
+ sigdescr_np; sigabbrev_np;
+ }
}