musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/strsignal.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020年05月21日 13:14:40 -0400
committerRich Felker <dalias@aerifal.cx>2020年05月21日 16:25:12 -0400
commit09c54607e372336c243a4b0b52f7a0b579eba73e (patch)
tree37d0dc4f9e19d29c638c4529e983b8845077c3a8 /src/string/strsignal.c
parent1b4e84c56df0f8ca30f6bc05962a860f869e71df (diff)
downloadmusl-09c54607e372336c243a4b0b52f7a0b579eba73e.tar.gz
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.
Diffstat (limited to 'src/string/strsignal.c')
-rw-r--r--src/string/strsignal.c 10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/string/strsignal.c b/src/string/strsignal.c
index 96bfe841..5156366e 100644
--- a/src/string/strsignal.c
+++ b/src/string/strsignal.c
@@ -31,7 +31,11 @@ static const char map[] = {
[SIGPIPE] = 13,
[SIGALRM] = 14,
[SIGTERM] = 15,
+#if defined(SIGSTKFLT)
[SIGSTKFLT] = 16,
+#elif defined(SIGEMT)
+ [SIGEMT] = 16,
+#endif
[SIGCHLD] = 17,
[SIGCONT] = 18,
[SIGSTOP] = 19,
@@ -70,7 +74,13 @@ static const char strings[] =
"Broken pipe0円"
"Alarm clock0円"
"Terminated0円"
+#if defined(SIGSTKFLT)
"Stack fault0円"
+#elif defined(SIGEMT)
+ "Emulator trap0円"
+#else
+ "Unknown signal0円"
+#endif
"Child process status0円"
"Continued0円"
"Stopped (signal)0円"
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月16日 12:21:25 +0000

AltStyle によって変換されたページ (->オリジナル) /