summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_name.c
blob: 0679055e6412924e321aa220b0fd75e7616348a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/sig.h>
#include "sig-internal.h"

char const *sig_name (int sig)
{
  sigtable_t const *p = skalibs_sigtable ;
  for (; p->number ; p++) if (sig == p->number) break ;
  return p->number ? p->name : "???" ;
}