Solaris: fixes build and tests, adds CI (#2544) · nix-rust/nix@0f45593 (original) (raw)
`@@ -110,7 +110,8 @@ libc_enum! {
`
110
110
`SIGEMT,
`
111
111
` #[cfg(not(any(linux_android, target_os = "emscripten",
`
112
112
` target_os = "fuchsia", target_os = "redox",
`
113
``
`-
target_os = "haiku", target_os = "aix")))]
`
``
113
`+
target_os = "haiku", target_os = "aix",
`
``
114
`+
target_os = "solaris")))]
`
114
115
`/// Information request
`
115
116
`SIGINFO,
`
116
117
`}
`
`@@ -188,7 +189,8 @@ impl FromStr for Signal {
`
188
189
` target_os = "fuchsia",
`
189
190
` target_os = "redox",
`
190
191
` target_os = "aix",
`
191
``
`-
target_os = "haiku"
`
``
192
`+
target_os = "haiku",
`
``
193
`+
target_os = "solaris"
`
192
194
`)))]
`
193
195
`"SIGINFO" => Signal::SIGINFO,
`
194
196
` _ => return Err(Errno::EINVAL),
`
`@@ -272,7 +274,8 @@ impl Signal {
`
272
274
` target_os = "fuchsia",
`
273
275
` target_os = "redox",
`
274
276
` target_os = "aix",
`
275
``
`-
target_os = "haiku"
`
``
277
`+
target_os = "haiku",
`
``
278
`+
target_os = "solaris"
`
276
279
`)))]
`
277
280
`Signal::SIGINFO => "SIGINFO",
`
278
281
`}
`
`@@ -356,13 +359,22 @@ const SIGNALS: [Signal; 30] = [
`
356
359
`SIGURG, SIGPOLL, SIGIO, SIGSTOP, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU,
`
357
360
`SIGVTALRM, SIGPROF, SIGXCPU, SIGXFSZ, SIGTRAP,
`
358
361
`];
`
``
362
`+
#[cfg(target_os = "solaris")]
`
``
363
`+
#[cfg(feature = "signal")]
`
``
364
`+
const SIGNALS: [Signal; 30] = [
`
``
365
`+
SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGBUS, SIGFPE, SIGKILL,
`
``
366
`+
SIGUSR1, SIGSEGV, SIGUSR2, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGCONT,
`
``
367
`+
SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPU, SIGXFSZ, SIGVTALRM,
`
``
368
`+
SIGPROF, SIGWINCH, SIGIO, SIGSYS, SIGEMT,
`
``
369
`+
];
`
359
370
`#[cfg(not(any(
`
360
371
` linux_android,
`
361
372
` target_os = "fuchsia",
`
362
373
` target_os = "emscripten",
`
363
374
` target_os = "aix",
`
364
375
` target_os = "redox",
`
365
``
`-
target_os = "haiku"
`
``
376
`+
target_os = "haiku",
`
``
377
`+
target_os = "solaris"
`
366
378
`)))]
`
367
379
`#[cfg(feature = "signal")]
`
368
380
`const SIGNALS: [Signal; 31] = [
`