diff options
Diffstat (limited to '')
-rw-r--r-- | libbb/u_signal_names.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libbb/u_signal_names.c b/libbb/u_signal_names.c index f7d598c7a..e233849c5 100644 --- a/libbb/u_signal_names.c +++ b/libbb/u_signal_names.c | |||
@@ -27,10 +27,19 @@ | |||
27 | 27 | ||
28 | #include "libbb.h" | 28 | #include "libbb.h" |
29 | 29 | ||
30 | #if ENABLE_PLATFORM_POSIX || defined(SIGSTKFLT) || defined(SIGVTALRM) | ||
31 | # define SIGLEN 7 | ||
32 | #elif defined(SIGWINCH) || (ENABLE_FEATURE_RTMINMAX && \ | ||
33 | !ENABLE_FEATURE_RTMINMAX_USE_LIBC_DEFINITIONS && defined(__SIGRTMIN)) | ||
34 | # define SIGLEN 6 | ||
35 | #else | ||
36 | # define SIGLEN 5 | ||
37 | #endif | ||
38 | |||
30 | /* Believe it or not, but some arches have more than 32 SIGs! | 39 | /* Believe it or not, but some arches have more than 32 SIGs! |
31 | * HPPA: SIGSTKFLT == 36. */ | 40 | * HPPA: SIGSTKFLT == 36. */ |
32 | 41 | ||
33 | static const char signals[][7] ALIGN1 = { | 42 | static const char signals[][SIGLEN] ALIGN1 = { |
34 | // SUSv3 says kill must support these, and specifies the numerical values, | 43 | // SUSv3 says kill must support these, and specifies the numerical values, |
35 | // http://www.opengroup.org/onlinepubs/009695399/utilities/kill.html | 44 | // http://www.opengroup.org/onlinepubs/009695399/utilities/kill.html |
36 | // {0, "EXIT"}, {1, "HUP"}, {2, "INT"}, {3, "QUIT"}, | 45 | // {0, "EXIT"}, {1, "HUP"}, {2, "INT"}, {3, "QUIT"}, |