diff options
author | stratact <stratact1@gmail.com> | 2018-06-01 01:01:20 -0700 |
---|---|---|
committer | stratact <stratact1@gmail.com> | 2018-06-01 01:01:20 -0700 |
commit | d6501661161522a3ad6272f17695a7b325f356e1 (patch) | |
tree | 9c802cb97330ad4a12b0b65eb2d75a875bb1117c | |
parent | 6578c7c7d15fa0e6174bab9c8144b4c43ee703fa (diff) | |
download | rust-libc-d6501661161522a3ad6272f17695a7b325f356e1.tar.gz |
Add `gethostname` support to Redox module
-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; |