summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Marie <semarie@online.fr>2023-02-22 09:55:21 +0000
committerSébastien Marie <semarie@online.fr>2023-02-22 09:55:21 +0000
commit37c024d53bee0a5cb3a74ab94879e9e03827d6e2 (patch)
treecfc3454fb717ac893e643ed61a5ebffde61ca95e
parent5e98ea33195cc867faad2355f16c9bef1dad6a47 (diff)
downloadrust-libc-37c024d53bee0a5cb3a74ab94879e9e03827d6e2.tar.gz
add p_name field in kinfo_proc struct on OpenBSD
pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage and could be viewed from outside the process. Reference: https://github.com/openbsd/src/commit/cef5a146e600a27064f0ea2aa25fc5f8663cb9b7
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index 63a7cdd983..87acecb6a7 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -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 {