We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys_signame[]
1 parent 0b47e51 commit 10231eaCopy full SHA for 10231ea
Sources/Testing/ExitTests/ExitStatus.swift
@@ -121,6 +121,7 @@ extension ExitStatus: CustomStringConvertible {
121
var signalName: String?
122
123
#if SWT_TARGET_OS_APPLE || os(FreeBSD) || os(OpenBSD) || os(Android)
124
+#if !SWT_NO_SYS_SIGNAME
125
// These platforms define sys_signame with a size, which is imported
126
// into Swift as a tuple.
127
withUnsafeBytes(of: sys_signame) { sys_signame in
@@ -130,6 +131,7 @@ extension ExitStatus: CustomStringConvertible {
130
131
}
132
133
134
+#endif
135
#elseif os(Linux)
136
#if !SWT_NO_DYNAMIC_LINKING
137
signalName = _sigabbrev_np?(signal).flatMap(String.init(validatingCString:))
0 commit comments