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
615
615
PT_CONTINUE
616
616
PT_DETACH
617
617
PT_FIRSTMACH
618
+ PT_GET_EVENT_MASK
619
+ PT_GET_PROCESS_STATE
620
+ PT_GET_THREAD_FIRST
621
+ PT_GET_THREAD_NEXT
618
622
PT_IO
619
623
PT_KILL
620
624
PT_READ_D
621
625
PT_READ_I
626
+ PT_SET_EVENT_MASK
622
627
PT_TRACE_ME
623
628
PT_WRITE_D
624
629
PT_WRITE_I
@@ -1060,6 +1065,8 @@ pthread_spinlock_t
1060
1065
pthread_stackseg_np
1061
1066
ptrace
1062
1067
ptrace_io_desc
1068
+ ptrace_state
1069
+ ptrace_thread_state
1063
1070
pwritev
1064
1071
qsort
1065
1072
rand
Original file line number Diff line number Diff line change @@ -401,6 +401,16 @@ s! {
401
401
pub kve_inheritance: :: c_int,
402
402
pub kve_flags: u8 ,
403
403
}
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
+ }
404
414
}
405
415
406
416
impl siginfo_t {
@@ -1428,6 +1438,11 @@ pub const PTHREAD_STACK_MIN: ::size_t = 1_usize << _MAX_PAGE_SHIFT;
1428
1438
pub const MINSIGSTKSZ : :: size_t = 3_usize << _MAX_PAGE_SHIFT;
1429
1439
pub const SIGSTKSZ : :: size_t = MINSIGSTKSZ + ( 1_usize << _MAX_PAGE_SHIFT) * 4 ;
1430
1440
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 ;
1431
1446
pub const PT_FIRSTMACH : :: c_int = 32 ;
1432
1447
1433
1448
pub const SOCK_CLOEXEC : :: c_int = 0x8000 ;
You can’t perform that action at this time.
0 commit comments