Skip to content

Commit c9222e0

Browse files
semarieJohnTitor
authored andcommitted
fix struct ptrace_thread_state on OpenBSD
1 parent 6fc018e commit c9222e0

File tree

1 file changed

+3
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+3
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ s! {
535535

536536
pub struct ptrace_thread_state {
537537
pub pts_tid: crate::pid_t,
538+
pub pts_name: [c_char; PT_PTS_NAMELEN as usize],
538539
}
539540

540541
// search.h
@@ -1490,6 +1491,8 @@ pub const PT_GET_THREAD_FIRST: c_int = 15;
14901491
pub const PT_GET_THREAD_NEXT: c_int = 16;
14911492
pub const PT_FIRSTMACH: c_int = 32;
14921493

1494+
pub const PT_PTS_NAMELEN: c_int = 32;
1495+
14931496
pub const SOCK_CLOEXEC: c_int = 0x8000;
14941497
pub const SOCK_NONBLOCK: c_int = 0x4000;
14951498
pub const SOCK_DNS: c_int = 0x1000;

0 commit comments

Comments
 (0)