File tree Expand file tree Collapse file tree 7 files changed +22
-1
lines changed Expand file tree Collapse file tree 7 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -2846,6 +2846,7 @@ fn test_linux(target: &str) {
28462846 "linux/netlink.h" ,
28472847 // FIXME: requires more recent kernel headers:
28482848 // "linux/openat2.h",
2849+ [ !musl] : "linux/ptrace.h" ,
28492850 "linux/quota.h" ,
28502851 "linux/random.h" ,
28512852 "linux/reboot.h" ,
Original file line number Diff line number Diff line change @@ -3056,6 +3056,7 @@ pthread_spin_unlock
30563056pthread_spinlock_t
30573057pthread_t
30583058ptrace
3059+ ptrace_peeksiginfo_args
30593060ptrdiff_t
30603061ptsname
30613062ptsname_r
Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ pthread_rwlockattr_getkind_np
616616pthread_rwlockattr_getpshared
617617pthread_rwlockattr_setkind_np
618618pthread_setname_np
619+ ptrace_peeksiginfo_args
619620pututxline
620621pwritev2
621622pwritev64
Original file line number Diff line number Diff line change @@ -349,6 +349,12 @@ s! {
349349 pub instruction_pointer: :: __u64,
350350 pub args: [ :: __u64; 6 ] ,
351351 }
352+
353+ pub struct ptrace_peeksiginfo_args {
354+ pub off: :: __u64,
355+ pub flags: :: __u32,
356+ pub nr: :: __s32,
357+ }
352358}
353359
354360s_no_extra_traits ! {
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ pub const POLLWRBAND: ::c_short = 0x100;
353353pub const O_ASYNC : :: c_int = 0x40 ;
354354pub const O_NDELAY : :: c_int = 0x4004 ;
355355
356- pub const PTRACE_DETACH : :: c_uint = 11 ;
356+ pub const PTRACE_DETACH : :: c_uint = 17 ;
357357
358358pub const EFD_NONBLOCK : :: c_int = 0x4000 ;
359359
Original file line number Diff line number Diff line change @@ -318,6 +318,12 @@ s! {
318318 pub semvmx: :: c_int,
319319 pub semaem: :: c_int,
320320 }
321+
322+ pub struct ptrace_peeksiginfo_args {
323+ pub off: :: __u64,
324+ pub flags: :: __u32,
325+ pub nr: :: __s32,
326+ }
321327}
322328
323329impl siginfo_t {
Original file line number Diff line number Diff line change 7272 pub e_termination: :: c_short,
7373 pub e_exit: :: c_short,
7474 }
75+
76+ pub struct ptrace_peeksiginfo_args {
77+ pub off: :: __u64,
78+ pub flags: :: __u32,
79+ pub nr: :: __s32,
80+ }
7581}
7682
7783pub const MCL_CURRENT : :: c_int = 0x0001 ;
You can’t perform that action at this time.
0 commit comments