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.
2 parents d8a7046 + 7adbc75 commit e183f93Copy full SHA for e183f93
src/unix/bsd/netbsdlike/mod.rs
@@ -529,6 +529,7 @@ extern {
529
abstime: *const ::timespec) -> ::c_int;
530
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t,
531
clock_id: clockid_t) -> ::c_int;
532
+ pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
533
}
534
535
cfg_if! {
src/unix/bsd/netbsdlike/netbsd.rs
@@ -588,7 +588,6 @@ extern {
588
pid: ::pid_t,
589
addr: *mut ::c_void,
590
data: ::c_int) -> ::c_int;
591
- pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
592
pub fn pthread_setname_np(t: ::pthread_t,
593
name: *const ::c_char,
594
arg: *mut ::c_void) -> ::c_int;
0 commit comments