mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 14:42:01 +00:00
11 lines
227 B
C
11 lines
227 B
C
![]() |
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <signal.h>
|
||
|
|
||
|
void psiginfo(siginfo_t *si, const char *msg)
|
||
|
{
|
||
|
char *s = strsignal(si->si_signo);
|
||
|
if (msg) fprintf(stderr, "%s: %s\n", msg, s);
|
||
|
else fprintf(stderr, "%s\n", s);
|
||
|
}
|