Skip to content

Commit

Permalink
Remove pthread_set_name_np from NuttX
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
no1wudi committed Jan 24, 2025
1 parent 0f9f8c9 commit a42aeb7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/unix/nuttx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ extern "C" {
pub fn clock_gettime(clockid: clockid_t, tp: *mut timespec) -> i32;
pub fn futimens(fd: i32, times: *const timespec) -> i32;
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t, clock_id: clockid_t) -> i32;
pub fn pthread_set_name_np(thread: pthread_t, name: *const c_char) -> i32;
pub fn pthread_setname_np(thread: pthread_t, name: *const c_char) -> i32;
pub fn pthread_getname_np(thread: pthread_t, name: *mut c_char, len: usize) -> i32;
pub fn getrandom(buf: *mut c_void, buflen: usize, flags: u32) -> isize;
Expand Down

0 comments on commit a42aeb7

Please sign in to comment.