Skip to content

Commit

Permalink
add p_name field in kinfo_proc struct on OpenBSD
Browse files Browse the repository at this point in the history
pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage 
and could be viewed from outside the process.

Reference: openbsd/src@cef5a14
  • Loading branch information
semarie committed Feb 22, 2023
1 parent 5e98ea3 commit 37c024d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ s! {
pub p_tid: i32,
pub p_rtableid: u32,
pub p_pledge: u64,
pub p_name: [::c_char; KI_MAXCOMLEN as usize],
}

pub struct kinfo_vmentry {
Expand Down

0 comments on commit 37c024d

Please sign in to comment.