File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -1668,3 +1668,55 @@ pub const sigevent = extern struct {
1668
1668
sigev_notify_function : ? * const fn (sigval ) callconv (.C ) void ,
1669
1669
sigev_notify_attributes : ? * pthread_attr_t ,
1670
1670
};
1671
+
1672
+ pub const PTRACE = struct {
1673
+ pub const FORK = 0x0001 ;
1674
+ pub const VFORK = 0x0002 ;
1675
+ pub const VFORK_DONE = 0x0004 ;
1676
+ pub const LWP_CREATE = 0x0008 ;
1677
+ pub const LWP_EXIT = 0x0010 ;
1678
+ pub const POSIX_SPAWN = 0x0020 ;
1679
+ };
1680
+
1681
+ pub const PT = struct {
1682
+ pub const TRACE_ME = 0 ;
1683
+ pub const READ_I = 1 ;
1684
+ pub const READ_D = 2 ;
1685
+ pub const WRITE_I = 4 ;
1686
+ pub const WRITE_D = 5 ;
1687
+ pub const CONTINUE = 7 ;
1688
+ pub const KILL = 8 ;
1689
+ pub const ATTACH = 9 ;
1690
+ pub const DETACH = 10 ;
1691
+ pub const IO = 11 ;
1692
+ pub const DUMPCORE = 11 ;
1693
+ pub const LWPINFO = 12 ;
1694
+ };
1695
+
1696
+ pub const ptrace_event = extern struct {
1697
+ set_event : c_int ,
1698
+ };
1699
+
1700
+ pub const ptrace_state = extern struct {
1701
+ report_event : c_int ,
1702
+ _option : extern union {
1703
+ other_pid : pid_t ,
1704
+ lwp : lwpid_t ,
1705
+ },
1706
+ };
1707
+
1708
+ pub const ptrace_io_desc = extern struct {
1709
+ op : c_int ,
1710
+ offs : ? * anyopaque ,
1711
+ addr : ? * anyopaque ,
1712
+ len : usize ,
1713
+ };
1714
+
1715
+ pub const PIOD = struct {
1716
+ pub const READ_D = 1 ;
1717
+ pub const WRITE_D = 2 ;
1718
+ pub const READ_I = 3 ;
1719
+ pub const WRITE_I = 4 ;
1720
+ };
1721
+
1722
+ pub extern "c" fn ptrace (request : c_int , pid : pid_t , addr : ? * anyopaque , data : c_int ) c_int ;
You can’t perform that action at this time.
0 commit comments