Skip to content

Commit 8a77755

Browse files
no1wuditgross35
authored andcommitted
Remove pthread_set_name_np from NuttX
Removed `pthread_set_name_np` function from the NuttX bindings as it does not exist in the NuttX API, this change aligns the code with the actual NuttX implementation Signed-off-by: Huang Qi <[email protected]> (backport <rust-lang#4251>) (cherry picked from commit f4ab0b1)
1 parent 89d2bbf commit 8a77755

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/unix/nuttx/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ extern "C" {
556556
pub fn clock_gettime(clockid: clockid_t, tp: *mut timespec) -> i32;
557557
pub fn futimens(fd: i32, times: *const timespec) -> i32;
558558
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t, clock_id: clockid_t) -> i32;
559-
pub fn pthread_set_name_np(thread: pthread_t, name: *const c_char) -> i32;
560559
pub fn pthread_setname_np(thread: pthread_t, name: *const c_char) -> i32;
561560
pub fn pthread_getname_np(thread: pthread_t, name: *mut c_char, len: usize) -> i32;
562561
pub fn getrandom(buf: *mut c_void, buflen: usize, flags: u32) -> isize;

0 commit comments

Comments
 (0)