File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4234,6 +4234,7 @@ fn test_haiku(target: &str) {
4234
4234
"link.h" ,
4235
4235
"pty.h" ,
4236
4236
"stringlist.h" ,
4237
+ "sys/link_elf.h" ,
4237
4238
}
4238
4239
4239
4240
// Native API
Original file line number Diff line number Diff line change @@ -445,6 +445,13 @@ s! {
445
445
pub sl_max: :: size_t,
446
446
pub sl_cur: :: size_t,
447
447
}
448
+
449
+ pub struct dl_phdr_info {
450
+ pub dlpi_addr: :: Elf_Addr ,
451
+ pub dlpi_name: * const :: c_char,
452
+ pub dlpi_phdr: * const :: Elf_Phdr ,
453
+ pub dlpi_phnum: :: Elf_Half ,
454
+ }
448
455
}
449
456
450
457
s_no_extra_traits ! {
@@ -2033,6 +2040,16 @@ extern "C" {
2033
2040
2034
2041
pub fn getprogname ( ) -> * const :: c_char ;
2035
2042
pub fn setprogname ( progname : * const :: c_char ) ;
2043
+ pub fn dl_iterate_phdr (
2044
+ callback : :: Option <
2045
+ unsafe extern "C" fn (
2046
+ info : * mut dl_phdr_info ,
2047
+ size : usize ,
2048
+ data : * mut :: c_void ,
2049
+ ) -> :: c_int ,
2050
+ > ,
2051
+ data : * mut :: c_void ,
2052
+ ) -> :: c_int ;
2036
2053
}
2037
2054
2038
2055
#[ link( name = "unix" ) ]
You can’t perform that action at this time.
0 commit comments