comparison lib/sig2str.h @ 3831:68803dccd533

(SIGNUM_BOUND): Do not use WTERMSIG, to avoid depending on <sys/wait.h> and WTERMSIG. Default to 64 instead of 127, since 64 is the largest conceivable number for ancient nonstandard hosts.
author Jim Meyering <jim@meyering.net>
date Mon, 29 Apr 2002 06:59:24 +0000
parents 22b17205df86
children ec62790f0938
comparison
equal deleted inserted replaced
3830:55d776be7c7c 3831:68803dccd533
40 40
41 #if defined _sys_nsig 41 #if defined _sys_nsig
42 # define SIGNUM_BOUND (_sys_nsig - 1) 42 # define SIGNUM_BOUND (_sys_nsig - 1)
43 #elif defined NSIG 43 #elif defined NSIG
44 # define SIGNUM_BOUND (NSIG - 1) 44 # define SIGNUM_BOUND (NSIG - 1)
45 #elif defined WTERMSIG
46 # define SIGNUM_BOUND WTERMSIG (~ 0)
47 #else 45 #else
48 # define SIGNUM_BOUND 127 46 # define SIGNUM_BOUND 64
49 #endif 47 #endif