aboutsummaryrefslogtreecommitdiff
path: root/src/lib/GenericOS.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-28 14:53:23 -0700
committerPatrick Walton <[email protected]>2011-04-28 14:54:00 -0700
commit660c742902e0f41898e329703a3f0c413b2016cf (patch)
tree55e7db85038e3a0dce7ee74fdf54800c47cb42c0 /src/lib/GenericOS.rs
parentChange vec-ref-count to handle 1 or 2, so long as non-leaky and non-creeping.... (diff)
downloadrust-660c742902e0f41898e329703a3f0c413b2016cf.tar.xz
rust-660c742902e0f41898e329703a3f0c413b2016cf.zip
stdlib: Add a color_supported() function to Term
Diffstat (limited to 'src/lib/GenericOS.rs')
-rw-r--r--src/lib/GenericOS.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/GenericOS.rs b/src/lib/GenericOS.rs
new file mode 100644
index 00000000..2d375652
--- /dev/null
+++ b/src/lib/GenericOS.rs
@@ -0,0 +1,4 @@
+fn getenv(str n) -> str {
+ ret _str.str_from_cstr(os.libc.getenv(_str.buf(n)));
+}
+