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 @@ -3401,6 +3401,9 @@ fn test_linux(target: &str) {
3401
3401
// Not defined in uclibc as of 1.0.34
3402
3402
"gettid" if uclibc => true ,
3403
3403
3404
+ // Needs musl 1.2.3 or later.
3405
+ "pthread_getname_np" if musl => true ,
3406
+
3404
3407
_ => false ,
3405
3408
}
3406
3409
} ) ;
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 @@ -2950,6 +2950,7 @@ pthread_condattr_setpshared
2950
2950
pthread_getaffinity_np
2951
2951
pthread_getattr_np
2952
2952
pthread_getcpuclockid
2953
+ pthread_getname_np
2953
2954
pthread_getschedparam
2954
2955
pthread_kill
2955
2956
pthread_mutex_consistent
@@ -2962,6 +2963,7 @@ pthread_mutexattr_getrobust
2962
2963
pthread_mutexattr_setrobust
2963
2964
pthread_rwlockattr_setpshared
2964
2965
pthread_setaffinity_np
2966
+ pthread_setname_np
2965
2967
pthread_setschedparam
2966
2968
pthread_setschedprio
2967
2969
pthread_spin_destroy
Original file line number Diff line number Diff line change @@ -1301,8 +1301,6 @@ extern "C" {
1301
1301
buflen : :: size_t ,
1302
1302
result : * mut * mut :: group ,
1303
1303
) -> :: c_int ;
1304
- pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1305
- pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
1306
1304
1307
1305
pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
1308
1306
Original file line number Diff line number Diff line change @@ -4097,6 +4097,9 @@ extern "C" {
4097
4097
needlelen : :: size_t ,
4098
4098
) -> * mut :: c_void ;
4099
4099
pub fn sched_getcpu ( ) -> :: c_int ;
4100
+
4101
+ pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
4102
+ pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
4100
4103
}
4101
4104
4102
4105
cfg_if ! {
You can’t perform that action at this time.
0 commit comments