mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
11 lines
233 B
C
11 lines
233 B
C
#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);
|
|
}
|