We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb7f0c commit 6e94220Copy full SHA for 6e94220
src/unix/newlib/espidf/mod.rs
@@ -99,6 +99,8 @@ pub const SIGHUP: ::c_int = 1;
99
pub const SIGQUIT: ::c_int = 3;
100
pub const NSIG: ::size_t = 32;
101
102
+pub const _SC_HOST_NAME_MAX: ::c_int = 65;
103
+
104
extern "C" {
105
pub fn pthread_create(
106
native: *mut ::pthread_t,
@@ -109,6 +111,8 @@ extern "C" {
109
111
110
112
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
113
114
+ pub fn gethostname(name: *mut ::c_char, namelen: ::ssize_t);
115
116
#[link_name = "lwip_sendmsg"]
117
pub fn sendmsg(s: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t;
118
#[link_name = "lwip_recvmsg"]
0 commit comments