Auto merge of #1008 - stratact:master, r=alexcrichton
Add `gethostname` support to Redox module
We need this for hostname support in Ion shell.
diff --git a/src/redox/mod.rs b/src/redox/mod.rs
index fb3c3f6..793fd32 100644
--- a/src/redox/mod.rs
+++ b/src/redox/mod.rs
@@ -118,6 +118,7 @@
pub const SIGSYS: ::c_int = 31;
extern {
+ pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t)
-> ::ssize_t;