Skip to content

Commit 44ba265

Browse files
committed
fuchsia adding pthread_set/getname_np
1 parent 2f93bfb commit 44ba265

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/fuchsia.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,10 @@ pthread_cancel
13771377
pthread_condattr_getclock
13781378
pthread_condattr_setclock
13791379
pthread_getattr_np
1380+
pthread_getname_np
13801381
pthread_kill
13811382
pthread_mutex_timedlock
1383+
pthread_setname_np
13821384
ptsname_r
13831385
pwritev
13841386
quotactl

src/fuchsia/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3826,6 +3826,8 @@ extern "C" {
38263826
pub fn pthread_rwlock_unlock(lock: *mut pthread_rwlock_t) -> ::c_int;
38273827
pub fn pthread_rwlockattr_init(attr: *mut pthread_rwlockattr_t) -> ::c_int;
38283828
pub fn pthread_rwlockattr_destroy(attr: *mut pthread_rwlockattr_t) -> ::c_int;
3829+
pub fn pthread_getname_np(thread: ::pthread_t, name: *mut ::c_char, len: ::size_t) -> ::c_int;
3830+
pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;
38293831
pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int;
38303832

38313833
pub fn getsockopt(

0 commit comments

Comments
 (0)