psiginfo.c\signal\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/signal/psiginfo.c
blob: 57be34cd017ca4041f7cb2029e825ad45e796cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#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);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月27日 02:54:58 +0000

AltStyle によって変換されたページ (->オリジナル) /