summaryrefslogtreecommitdiff
path: root/src/fuchsia
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-24 09:01:49 +0000
committerbors <bors@rust-lang.org>2020-12-24 09:01:49 +0000
commit6e7a919ce35d7a09666579b47e7d4206bb95afe5 (patch)
tree89b4c6a82d0a01359fc153e877753b7af7bcf5b0 /src/fuchsia
parentb1ee97b6178bd543a534f7016d3a19684dd889f5 (diff)
parentd116ee592d1814a40598fe068fd8c8fc6a0e68b0 (diff)
downloadrust-libc-6e7a919ce35d7a09666579b47e7d4206bb95afe5.tar.gz
Auto merge of #2004 - dylni:define-cld-constants-for-more-targets, r=JohnTitor
Define CLD_ constants for more targets This is an extension of #1860 to support more targets. The values for these constants should be correct, but I'm not familiar with most of the targets, so they should be verified. These files should define the constants too, but the targets are closed source, so I don't know their values: - [src/unix/solarish/mod.rs](https://github.com/rust-lang/libc/blob/master/src/unix/solarish/mod.rs) - [src/vxworks/mod.rs](https://github.com/rust-lang/libc/blob/master/src/vxworks/mod.rs)
Diffstat (limited to 'src/fuchsia')
-rw-r--r--src/fuchsia/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index 1ef2fadc76..f7fd67dfa2 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -1986,6 +1986,13 @@ pub const PIPE_BUF: usize = 4096;
pub const SI_LOAD_SHIFT: ::c_uint = 16;
+pub const CLD_EXITED: ::c_int = 1;
+pub const CLD_KILLED: ::c_int = 2;
+pub const CLD_DUMPED: ::c_int = 3;
+pub const CLD_TRAPPED: ::c_int = 4;
+pub const CLD_STOPPED: ::c_int = 5;
+pub const CLD_CONTINUED: ::c_int = 6;
+
pub const SIGEV_SIGNAL: ::c_int = 0;
pub const SIGEV_NONE: ::c_int = 1;
pub const SIGEV_THREAD: ::c_int = 2;