Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added pthread_[get/set]name_np functions for NuttX
  • Loading branch information
YohDeadfall committed Nov 4, 2024
commit c4147611a4ff5471fc1d99caae3ea4547b7fb64d
2 changes: 2 additions & 0 deletions src/unix/nuttx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,7 @@ extern "C" {
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;
}