mirror of git://sourceware.org/git/glibc.git
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> |
||
|---|---|---|
| .. | ||
| bits | ||
| sys | ||
| Implies | ||
| Makefile | ||
| Versions | ||
| arch-syscall.h | ||
| atomic-machine.h | ||
| c++-types.data | ||
| cacheflush.c | ||
| clone.S | ||
| configure | ||
| configure.ac | ||
| getcontext.S | ||
| jmp_buf-macros.h | ||
| kernel_rt_sigframe.h | ||
| kernel_sigaction.h | ||
| ld.abilist | ||
| libBrokenLocale.abilist | ||
| libanl.abilist | ||
| libc.abilist | ||
| libcrypt.abilist | ||
| libdl.abilist | ||
| libm.abilist | ||
| libnsl.abilist | ||
| libpthread.abilist | ||
| libresolv.abilist | ||
| librt.abilist | ||
| libthread_db.abilist | ||
| libutil.abilist | ||
| localplt.data | ||
| makecontext.c | ||
| setcontext.S | ||
| shlib-versions | ||
| sigcontextinfo.h | ||
| swapcontext.S | ||
| syscall.S | ||
| sysdep.S | ||
| sysdep.h | ||
| ucontext_i.sym | ||
| vfork.S | ||