]> granicus.if.org Git - procps-ng/commit
sig: Move runtime signal count check to compile time
authorJames Clarke <jrtc27@jrtc27.com>
Fri, 13 Oct 2017 16:09:47 +0000 (17:09 +0100)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Dec 2017 06:48:36 +0000 (17:48 +1100)
commitbd72ba3a4b5f9a2a220a420e5182eaeaeeb88e76
treefc66275ca534e098b747c73dc0e23ef5409eb0a2
parent3e6a208ae501194fdb39d5f259e327c087dc8c84
sig: Move runtime signal count check to compile time

Since the value of number_of_signals is known at compile time, we can
use a compile-time check instead. This also adds SIGLOST for the Hurd,
uses the correct signal counts for the Hurd and FreeBSD, and only gives
a compile-time warning when compiled on an unknown platform that it does
not know whether the number of signals is correct.
proc/sig.c