File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -1677,6 +1677,21 @@ PTRACE_SETSIGINFO
1677
1677
PTRACE_SINGLESTEP
1678
1678
PTRACE_SYSCALL
1679
1679
PTRACE_TRACEME
1680
+ PT_HIOS
1681
+ PT_LOPROC
1682
+ PT_HIPROC
1683
+ PT_DYNAMIC
1684
+ PT_GNU_EH_FRAME
1685
+ PT_GNU_RELRO
1686
+ PT_GNU_STACK
1687
+ PT_INTERP
1688
+ PT_LOAD
1689
+ PT_LOOS
1690
+ PT_NOTE
1691
+ PT_NULL
1692
+ PT_PHDR
1693
+ PT_SHLIB
1694
+ PT_TLS
1680
1695
P_ALL
1681
1696
P_PGID
1682
1697
P_PID
Original file line number Diff line number Diff line change @@ -1867,6 +1867,25 @@ pub const MFD_CLOEXEC: ::c_uint = 0x0001;
1867
1867
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
1868
1868
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
1869
1869
1870
+ // these are used in the p_type field of Elf32_Phdr and Elf64_Phdr, which has
1871
+ // the type Elf32Word and Elf64Word respectively. Luckily, both of those are u32
1872
+ // so we can use that type here to avoid having to cast.
1873
+ pub const PT_NULL : u32 = 0 ;
1874
+ pub const PT_LOAD : u32 = 1 ;
1875
+ pub const PT_DYNAMIC : u32 = 2 ;
1876
+ pub const PT_INTERP : u32 = 3 ;
1877
+ pub const PT_NOTE : u32 = 4 ;
1878
+ pub const PT_SHLIB : u32 = 5 ;
1879
+ pub const PT_PHDR : u32 = 6 ;
1880
+ pub const PT_TLS : u32 = 7 ;
1881
+ pub const PT_LOOS : u32 = 0x60000000 ;
1882
+ pub const PT_GNU_EH_FRAME : u32 = 0x6474e550 ;
1883
+ pub const PT_GNU_STACK : u32 = 0x6474e551 ;
1884
+ pub const PT_GNU_RELRO : u32 = 0x6474e552 ;
1885
+ pub const PT_HIOS : u32 = 0x6fffffff ;
1886
+ pub const PT_LOPROC : u32 = 0x70000000 ;
1887
+ pub const PT_HIPROC : u32 = 0x7fffffff ;
1888
+
1870
1889
// linux/netfilter.h
1871
1890
pub const NF_DROP : :: c_int = 0 ;
1872
1891
pub const NF_ACCEPT : :: c_int = 1 ;
You can’t perform that action at this time.
0 commit comments