summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMackenzie Clark <mackenzie.a.z.c@gmail.com>2018-12-20 13:25:16 -0800
committerMackenzie Clark <mackenzie.a.z.c@gmail.com>2018-12-20 13:25:16 -0800
commite92ed6d0ae724e8b347f87d0183c26841e931290 (patch)
treef4f7111d3b44039ac1a83791de8fa5d9f84497fc
parent027d4834615cf8bce3faa9c4a1c2706413a7b275 (diff)
downloadrust-libc-e92ed6d0ae724e8b347f87d0183c26841e931290.tar.gz
add stdio constants for windows
-rw-r--r--src/windows/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/windows/mod.rs b/src/windows/mod.rs
index e4db343ec2..4f4ffe214e 100644
--- a/src/windows/mod.rs
+++ b/src/windows/mod.rs
@@ -188,6 +188,11 @@ pub const SIGABRT: ::c_int = 22;
pub const NSIG: ::c_int = 23;
pub const SIG_ERR: ::c_int = -1;
+// stdio file descriptor numbers
+pub const STDIN_FILENO: ::c_int = 0;
+pub const STDOUT_FILENO: ::c_int = 1;
+pub const STDERR_FILENO: ::c_int = 2;
+
// inline comment below appeases style checker
#[cfg(all(target_env = "msvc", feature = "rustc-dep-of-std"))] // " if "
#[link(name = "msvcrt", cfg(not(target_feature = "crt-static")))]