88use crate :: backend:: c;
99#[ cfg( target_arch = "x86" ) ]
1010use crate :: backend:: conv:: by_mut;
11+ #[ cfg( target_arch = "x86_64" ) ]
12+ use crate :: backend:: conv:: c_uint;
1113use crate :: backend:: conv:: {
12- by_ref, c_int, c_uint , ret, ret_c_int, ret_c_int_infallible, ret_error, ret_infallible,
13- ret_void_star , size_of, zero,
14+ by_ref, c_int, ret, ret_c_int, ret_c_int_infallible, ret_error, ret_infallible, ret_void_star ,
15+ size_of, zero,
1416} ;
1517#[ cfg( feature = "fs" ) ]
1618use crate :: fd:: BorrowedFd ;
@@ -30,7 +32,6 @@ use linux_raw_sys::general::__kernel_old_timespec;
3032use linux_raw_sys:: general:: kernel_sigset_t;
3133#[ cfg( target_arch = "x86_64" ) ]
3234use linux_raw_sys:: general:: ARCH_SET_FS ;
33- use linux_raw_sys:: prctl:: PR_SET_NAME ;
3435
3536#[ inline]
3637pub ( crate ) unsafe fn fork ( ) -> io:: Result < Fork > {
@@ -139,18 +140,6 @@ pub(crate) mod tls {
139140 Pid :: from_raw_unchecked ( tid)
140141 }
141142
142- #[ inline]
143- pub ( crate ) unsafe fn set_thread_name ( name : & CStr ) -> io:: Result < ( ) > {
144- ret ( syscall_readonly ! (
145- __NR_prctl,
146- c_uint( PR_SET_NAME ) ,
147- name,
148- zero( ) ,
149- zero( ) ,
150- zero( )
151- ) )
152- }
153-
154143 #[ inline]
155144 pub ( crate ) fn exit_thread ( code : c:: c_int ) -> ! {
156145 unsafe { syscall_noreturn ! ( __NR_exit, c_int( code) ) }
0 commit comments