File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3413,6 +3413,9 @@ fn test_linux(target: &str) {
3413
3413
// Not defined in uclibc as of 1.0.34
3414
3414
"gettid" if uclibc => true ,
3415
3415
3416
+ // Needs musl 1.2.3 or later.
3417
+ "pthread_getname_np" if musl => true ,
3418
+
3416
3419
_ => false ,
3417
3420
}
3418
3421
} ) ;
Original file line number Diff line number Diff line change @@ -624,11 +624,9 @@ process_vm_readv
624
624
process_vm_writev
625
625
pthread_attr_getaffinity_np
626
626
pthread_attr_setaffinity_np
627
- pthread_getname_np
628
627
pthread_rwlockattr_getkind_np
629
628
pthread_rwlockattr_getpshared
630
629
pthread_rwlockattr_setkind_np
631
- pthread_setname_np
632
630
ptrace_peeksiginfo_args
633
631
ptrace_syscall_info
634
632
pututxline
Original file line number Diff line number Diff line change @@ -2953,6 +2953,7 @@ pthread_condattr_setpshared
2953
2953
pthread_getaffinity_np
2954
2954
pthread_getattr_np
2955
2955
pthread_getcpuclockid
2956
+ pthread_getname_np
2956
2957
pthread_getschedparam
2957
2958
pthread_kill
2958
2959
pthread_mutex_consistent
@@ -2965,6 +2966,7 @@ pthread_mutexattr_getrobust
2965
2966
pthread_mutexattr_setrobust
2966
2967
pthread_rwlockattr_setpshared
2967
2968
pthread_setaffinity_np
2969
+ pthread_setname_np
2968
2970
pthread_setschedparam
2969
2971
pthread_setschedprio
2970
2972
pthread_spin_destroy
Original file line number Diff line number Diff line change @@ -1305,8 +1305,6 @@ extern "C" {
1305
1305
buflen : :: size_t ,
1306
1306
result : * mut * mut :: group ,
1307
1307
) -> :: c_int ;
1308
- pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1309
- pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
1310
1308
1311
1309
pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
1312
1310
Original file line number Diff line number Diff line change @@ -4090,6 +4090,9 @@ extern "C" {
4090
4090
needlelen : :: size_t ,
4091
4091
) -> * mut :: c_void ;
4092
4092
pub fn sched_getcpu ( ) -> :: c_int ;
4093
+
4094
+ pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
4095
+ pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
4093
4096
}
4094
4097
4095
4098
cfg_if ! {
You can’t perform that action at this time.
0 commit comments