提交 09c54607 编写于 作者: R Rich Felker

handle possibility that SIGEMT replaces SIGSTKFLT in strsignal

presently all archs define SIGSTKFLT but this is not correct. change
strsignal as a prerequisite for fixing that.
上级 1b4e84c5
...@@ -31,7 +31,11 @@ static const char map[] = { ...@@ -31,7 +31,11 @@ static const char map[] = {
[SIGPIPE] = 13, [SIGPIPE] = 13,
[SIGALRM] = 14, [SIGALRM] = 14,
[SIGTERM] = 15, [SIGTERM] = 15,
#if defined(SIGSTKFLT)
[SIGSTKFLT] = 16, [SIGSTKFLT] = 16,
#elif defined(SIGEMT)
[SIGEMT] = 16,
#endif
[SIGCHLD] = 17, [SIGCHLD] = 17,
[SIGCONT] = 18, [SIGCONT] = 18,
[SIGSTOP] = 19, [SIGSTOP] = 19,
...@@ -70,7 +74,13 @@ static const char strings[] = ...@@ -70,7 +74,13 @@ static const char strings[] =
"Broken pipe\0" "Broken pipe\0"
"Alarm clock\0" "Alarm clock\0"
"Terminated\0" "Terminated\0"
#if defined(SIGSTKFLT)
"Stack fault\0" "Stack fault\0"
#elif defined(SIGEMT)
"Emulator trap\0"
#else
"Unknown signal\0"
#endif
"Child process status\0" "Child process status\0"
"Continued\0" "Continued\0"
"Stopped (signal)\0" "Stopped (signal)\0"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册