about summary refs log tree commit diff
path: root/src/libstd/os.rs
diff options
context:
space:
mode:
authorDave Huseby <dhuseby@mozilla.com>2015-01-16 23:51:04 -0800
committerDave Huseby <dhuseby@mozilla.com>2015-02-11 14:49:06 -0800
commitcd8f31759fd04b9ce9c903fa00cae81dc5bba546 (patch)
tree7c0cb181b5e808735036346cb9ce7789847111e3 /src/libstd/os.rs
parente29f42025513374f1a88404491d1b40386acf994 (diff)
downloadrust-cd8f31759fd04b9ce9c903fa00cae81dc5bba546.tar.gz
rust-cd8f31759fd04b9ce9c903fa00cae81dc5bba546.zip
bitrig integration
Diffstat (limited to 'src/libstd/os.rs')
-rw-r--r--src/libstd/os.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index 526b5edd4cb..8a6b31e77da 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -639,6 +639,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
           target_os = "android",
           target_os = "freebsd",
           target_os = "dragonfly",
+          target_os = "bitrig",
           target_os = "openbsd"))]
 fn real_args_as_bytes() -> Vec<Vec<u8>> {
     use rt;
@@ -1287,6 +1288,39 @@ pub mod consts {
     pub const EXE_EXTENSION: &'static str = "";
 }
 
+#[cfg(target_os = "bitrig")]
+#[deprecated(since = "1.0.0", reason = "renamed to env::consts")]
+#[unstable(feature = "os")]
+pub mod consts {
+    pub use os::arch_consts::ARCH;
+
+    pub const FAMILY: &'static str = "unix";
+
+    /// A string describing the specific operating system in use: in this
+    /// case, `bitrig`.
+    pub const SYSNAME: &'static str = "bitrig";
+
+    /// Specifies the filename prefix used for shared libraries on this
+    /// platform: in this case, `lib`.
+    pub const DLL_PREFIX: &'static str = "lib";
+
+    /// Specifies the filename suffix used for shared libraries on this
+    /// platform: in this case, `.so`.
+    pub const DLL_SUFFIX: &'static str = ".so";
+
+    /// Specifies the file extension used for shared libraries on this
+    /// platform that goes after the dot: in this case, `so`.
+    pub const DLL_EXTENSION: &'static str = "so";
+
+    /// Specifies the filename suffix used for executable binaries on this
+    /// platform: in this case, the empty string.
+    pub const EXE_SUFFIX: &'static str = "";
+
+    /// Specifies the file extension, if any, used for executable binaries
+    /// on this platform: in this case, the empty string.
+    pub const EXE_EXTENSION: &'static str = "";
+}
+
 #[cfg(target_os = "openbsd")]
 #[deprecated(since = "1.0.0", reason = "renamed to env::consts")]
 #[unstable(feature = "os")]