Skip to content

Commit 613b81f

Browse files
authored
Merge pull request #4003 from YohDeadfall/nettx-pthread-name
Added pthread_[get/set]name_np functions for NuttX
2 parents ddeff5b + c414761 commit 613b81f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/nuttx/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,5 +551,7 @@ extern "C" {
551551
pub fn futimens(fd: i32, times: *const timespec) -> i32;
552552
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t, clock_id: clockid_t) -> i32;
553553
pub fn pthread_set_name_np(thread: pthread_t, name: *const c_char) -> i32;
554+
pub fn pthread_setname_np(thread: pthread_t, name: *const c_char) -> i32;
555+
pub fn pthread_getname_np(thread: pthread_t, name: *mut c_char, len: usize) -> i32;
554556
pub fn getrandom(buf: *mut c_void, buflen: usize, flags: u32) -> isize;
555557
}

0 commit comments

Comments
 (0)