Skip to content

Commit 5d3421e

Browse files
committed
Auto merge of #2192 - devnexen:netbsd_auxinfo, r=JohnTitor
netbsd mapping auxiliary vectors type
2 parents 02887ba + 749ffed commit 5d3421e

File tree

1 file changed

+14
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+14
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,16 @@ s! {
403403
pub p_align: Elf64_Xword,
404404
}
405405

406+
pub struct Aux32Info {
407+
pub a_type: Elf32_Word,
408+
pub a_v: Elf32_Word,
409+
}
410+
411+
pub struct Aux64Info {
412+
pub a_type: Elf64_Word,
413+
pub a_v: Elf64_Xword,
414+
}
415+
406416
// link.h
407417

408418
pub struct dl_phdr_info {
@@ -2074,6 +2084,10 @@ extern "C" {
20742084
data: *mut ::c_void,
20752085
) -> ::c_int;
20762086

2087+
// dlfcn.h
2088+
2089+
pub fn _dlauxinfo() -> *mut ::c_void;
2090+
20772091
pub fn iconv_open(tocode: *const ::c_char, fromcode: *const ::c_char) -> iconv_t;
20782092
pub fn iconv(
20792093
cd: iconv_t,

0 commit comments

Comments
 (0)