glibc/sysdeps/unix/sysv/linux/sh
Adhemerval Zanella bfe05aa289 string: Add sigabbrev_np and sigdescr_np
The sigabbrev_np returns the abbreviated signal name (e.g. "HUP" for
SIGHUP) while sigdescr_np returns the string describing the error
number (e.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>
2020-07-07 14:57:14 -03:00
..
be string: Add sigabbrev_np and sigdescr_np 2020-07-07 14:57:14 -03:00
bits
le string: Add sigabbrev_np and sigdescr_np 2020-07-07 14:57:14 -03:00
sh3
sh4
sys
Implies
Makefile
Versions
____longjmp_chk.S
arch-syscall.h
atomic-machine.h
brk.c
c++-types.data
clone.S
configure
configure.ac
fxstat.c
fxstatat.c
jmp_buf-macros.h
kernel-features.h
kernel_sigaction.h
localplt.data
lowlevel-atomic.h
lxstat.c
makecontext.S
pipe.S
register-dump.h
shlib-versions
sigaltstack-offsets.sym
sigcontextinfo.h
smp.h
syscall.S
syscalls.list
sysdep.S
sysdep.h
vfork.S
xstat.c