summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-28 19:32:20 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-28 19:32:20 -0800
commit91ff43c736de664f8d3cd351e148c09cdea6731e (patch)
tree7ad8d413dfc30b302e98e2254c251cbe246180ab
parentf9073f462b8b41495dafba6eb5f8b21b38e7d29a (diff)
parent9c8643fb4ef00c586468174fe8e6f1736530ca2c (diff)
downloadrust-libc-91ff43c736de664f8d3cd351e148c09cdea6731e.tar.gz
Merge pull request #160 from alexcrichton/netbsd-pthread
Add pthread_setname_np for NetBSD
-rw-r--r--src/unix/bsd/openbsdlike/netbsd.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/openbsdlike/netbsd.rs b/src/unix/bsd/openbsdlike/netbsd.rs
index 6f09ea976e..51d5b3fee7 100644
--- a/src/unix/bsd/openbsdlike/netbsd.rs
+++ b/src/unix/bsd/openbsdlike/netbsd.rs
@@ -366,4 +366,7 @@ extern {
addr: *mut ::c_void,
data: ::c_int) -> ::c_int;
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
+ pub fn pthread_setname_np(t: ::pthread_t,
+ name: *const ::c_char,
+ arg: *mut ::c_void) -> ::c_int;
}