Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
signal
/
psiginfo.c
blob: 57be34cd017ca4041f7cb2029e825ad45e796cd7 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<string.h>
#include
<signal.h>
void
psiginfo
(
const
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
);
}