From 37c024d53bee0a5cb3a74ab94879e9e03827d6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Wed, 22 Feb 2023 09:55:21 +0000 Subject: 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 --- src/unix/bsd/netbsdlike/openbsd/mod.rs | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.1