summaryrefslogtreecommitdiff
path: root/src/sys/signal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/signal.rs')
-rw-r--r--src/sys/signal.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs
index f533b1b2..10798ba1 100644
--- a/src/sys/signal.rs
+++ b/src/sys/signal.rs
@@ -163,6 +163,8 @@ const SIGNALS: [Signal; 31] = [
pub const NSIG: libc::c_int = 32;
+#[derive(Clone, Copy)]
+#[allow(missing_debug_implementations)]
pub struct SignalIterator {
next: usize,
}
@@ -255,6 +257,7 @@ libc_enum! {
}
#[derive(Clone, Copy)]
+#[allow(missing_debug_implementations)]
pub struct SigSet {
sigset: libc::sigset_t
}
@@ -359,6 +362,8 @@ pub enum SigHandler {
SigAction(extern fn(libc::c_int, *mut libc::siginfo_t, *mut libc::c_void))
}
+#[derive(Clone, Copy)]
+#[allow(missing_debug_implementations)]
pub struct SigAction {
sigaction: libc::sigaction
}
@@ -528,6 +533,7 @@ mod sigevent {
/// Used to request asynchronous notification of the completion of certain
/// events, such as POSIX AIO and timers.
#[repr(C)]
+ #[derive(Clone, Copy)]
pub struct SigEvent {
sigevent: libc::sigevent
}