summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-22 10:51:56 +0000
committerbors <bors@rust-lang.org>2023-02-22 10:51:56 +0000
commitf5363564c7ff96f8779043f7971145cb02345760 (patch)
treecfc3454fb717ac893e643ed61a5ebffde61ca95e
parent5e98ea33195cc867faad2355f16c9bef1dad6a47 (diff)
parent37c024d53bee0a5cb3a74ab94879e9e03827d6e2 (diff)
downloadrust-libc-f5363564c7ff96f8779043f7971145cb02345760.tar.gz
Auto merge of #3126 - semarie:openbsd-thrname, r=JohnTitor
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 {