summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <vorner@vorner.cz>2021-05-27 17:56:05 +0200
committerMichal 'vorner' Vaner <vorner@vorner.cz>2021-06-01 20:45:50 +0200
commit707294d2b678d9cdea975d4e7f9d94b03cccdab5 (patch)
tree365beccb56603be32f5fcc00b3743d3528eabd77 /src/windows
parent5d2c3a43961f4e7b5f07d56f8fdf7793b60fcb6e (diff)
downloadrust-libc-707294d2b678d9cdea975d4e7f9d94b03cccdab5.tar.gz
Signal controlling constants for windows
SIG_DFL and similar. Closes #1600.
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/windows/mod.rs b/src/windows/mod.rs
index 377a6c75f9..ad0dc77d23 100644
--- a/src/windows/mod.rs
+++ b/src/windows/mod.rs
@@ -244,7 +244,13 @@ pub const SIGSEGV: ::c_int = 11;
pub const SIGTERM: ::c_int = 15;
pub const SIGABRT: ::c_int = 22;
pub const NSIG: ::c_int = 23;
+
pub const SIG_ERR: ::c_int = -1;
+pub const SIG_DFL: ::sighandler_t = 0;
+pub const SIG_IGN: ::sighandler_t = 1;
+pub const SIG_GET: ::sighandler_t = 2;
+pub const SIG_SGE: ::sighandler_t = 3;
+pub const SIG_ACK: ::sighandler_t = 4;
// inline comment below appeases style checker
#[cfg(all(target_env = "msvc", feature = "rustc-dep-of-std"))] // " if "