From d6501661161522a3ad6272f17695a7b325f356e1 Mon Sep 17 00:00:00 2001 From: stratact Date: Fri, 1 Jun 2018 01:01:20 -0700 Subject: [PATCH] Add `gethostname` support to Redox module --- src/redox/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redox/mod.rs b/src/redox/mod.rs index fb3c3f68..793fd32c 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;