diff options
author | bors <bors@rust-lang.org> | 2018-06-01 13:53:40 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-06-01 13:53:40 +0000 |
commit | 6acb091b5e317e8eb887801ef3d7249ebbbc4682 (patch) | |
tree | 9c802cb97330ad4a12b0b65eb2d75a875bb1117c | |
parent | 6578c7c7d15fa0e6174bab9c8144b4c43ee703fa (diff) | |
parent | d6501661161522a3ad6272f17695a7b325f356e1 (diff) | |
download | rust-libc-6acb091b5e317e8eb887801ef3d7249ebbbc4682.tar.gz |
Auto merge of #1008 - stratact:master, r=alexcrichton
Add `gethostname` support to Redox module
We need this for hostname support in Ion shell.
-rw-r--r-- | src/redox/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redox/mod.rs b/src/redox/mod.rs index fb3c3f68e0..793fd32c88 100644 --- a/src/redox/mod.rs +++ b/src/redox/mod.rs @@ -118,6 +118,7 @@ pub const SIGPWR: ::c_int = 30; 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; |