Skip to content

Commit f4ab0b1

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 <huangqi3@xiaomi.com>
1 parent 9ea78dc commit f4ab0b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/unix/nuttx/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ extern "C" {
558558
pub fn clock_gettime(clockid: clockid_t, tp: *mut timespec) -> i32;
559559
pub fn futimens(fd: i32, times: *const timespec) -> i32;
560560
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t, clock_id: clockid_t) -> i32;
561-
pub fn pthread_set_name_np(thread: pthread_t, name: *const c_char) -> i32;
562561
pub fn pthread_setname_np(thread: pthread_t, name: *const c_char) -> i32;
563562
pub fn pthread_getname_np(thread: pthread_t, name: *mut c_char, len: usize) -> i32;
564563
pub fn getrandom(buf: *mut c_void, buflen: usize, flags: u32) -> isize;

0 commit comments

Comments
 (0)