sig_number.c (258B)
1 /* ISC license. */ 2 3 #include <strings.h> 4 5 #include <skalibs/sig.h> 6 #include "sig-internal.h" 7 8 int sig_number (char const *name) 9 { 10 sigtable const *p = skalibs_sigtable ; 11 for (; p->name ; p++) if (!strcasecmp(name, p->name)) break ; 12 return p->number ; 13 }