Skip to content

Commit 91ff43c

Browse files
committed
Merge pull request #160 from alexcrichton/netbsd-pthread
Add pthread_setname_np for NetBSD
2 parents f9073f4 + 9c8643f commit 91ff43c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/bsd/openbsdlike/netbsd.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,7 @@ extern {
366366
addr: *mut ::c_void,
367367
data: ::c_int) -> ::c_int;
368368
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
369+
pub fn pthread_setname_np(t: ::pthread_t,
370+
name: *const ::c_char,
371+
arg: *mut ::c_void) -> ::c_int;
369372
}

0 commit comments

Comments
 (0)