File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -615,10 +615,15 @@ PT_ATTACH
615615PT_CONTINUE
616616PT_DETACH
617617PT_FIRSTMACH
618+ PT_GET_EVENT_MASK
619+ PT_GET_PROCESS_STATE
620+ PT_GET_THREAD_FIRST
621+ PT_GET_THREAD_NEXT
618622PT_IO
619623PT_KILL
620624PT_READ_D
621625PT_READ_I
626+ PT_SET_EVENT_MASK
622627PT_TRACE_ME
623628PT_WRITE_D
624629PT_WRITE_I
@@ -1060,6 +1065,8 @@ pthread_spinlock_t
10601065pthread_stackseg_np
10611066ptrace
10621067ptrace_io_desc
1068+ ptrace_state
1069+ ptrace_thread_state
10631070pwritev
10641071qsort
10651072rand
Original file line number Diff line number Diff line change @@ -401,6 +401,16 @@ s! {
401401 pub kve_inheritance: :: c_int,
402402 pub kve_flags: u8 ,
403403 }
404+
405+ pub struct ptrace_state {
406+ pub pe_report_event: :: c_int,
407+ pub pe_other_pid: :: pid_t,
408+ pub pe_tid: :: pid_t,
409+ }
410+
411+ pub struct ptrace_thread_state {
412+ pub pts_tid: :: pid_t,
413+ }
404414}
405415
406416impl siginfo_t {
@@ -1428,6 +1438,11 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1_usize << _MAX_PAGE_SHIFT;
14281438pub const MINSIGSTKSZ : :: size_t = 3_usize << _MAX_PAGE_SHIFT;
14291439pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + ( 1_usize << _MAX_PAGE_SHIFT) * 4 ;
14301440
1441+ pub const PT_SET_EVENT_MASK : :: c_int = 12 ;
1442+ pub const PT_GET_EVENT_MASK : :: c_int = 13 ;
1443+ pub const PT_GET_PROCESS_STATE : :: c_int = 14 ;
1444+ pub const PT_GET_THREAD_FIRST : :: c_int = 15 ;
1445+ pub const PT_GET_THREAD_NEXT : :: c_int = 16 ;
14311446pub const PT_FIRSTMACH : :: c_int = 32 ;
14321447
14331448pub const SOCK_CLOEXEC : :: c_int = 0x8000 ;
You can’t perform that action at this time.
0 commit comments