]> granicus.if.org Git - strace/commit
Use sprintsigname for converting signal number to string
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 7 Oct 2018 03:23:09 +0000 (05:23 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 17 Dec 2018 19:19:23 +0000 (19:19 +0000)
commit63144af13f6433179c2603a2be5c2862fd4927a2
tree72b46a0804dbb21594990101ff2230b6777be9f5
parentb3f92b39f1e4481ff5caf0d4c9eefc156b247b92
Use sprintsigname for converting signal number to string

As signame is being converted to an xlookup-like function, a separate
routine is needed in order to get string representation of signal.

* defs.h (sprintsigname): New prototype.
* signal.c (sprintsigname): New function.
* strace.c (print_debug_info, print_signalled, print_stopped): Use it
instead of signame.
* wait.c (printstatus): Likewise.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
defs.h
signal.c
strace.c
wait.c