move Dl_info struct per system

- under openbsd and bitrig: dli_saddr member is *mut ::c_void
- under netbsd: it is *const ::c_void
This commit is contained in:
Sébastien Marie 2015-12-21 10:52:28 +01:00
parent 9e8707902f
commit 15cb33670d
4 changed files with 21 additions and 7 deletions

View File

@ -99,6 +99,13 @@ s! {
pub si_errno: ::c_int,
pub si_addr: *mut ::c_void
}
pub struct Dl_info {
pub dli_fname: *const ::c_char,
pub dli_fbase: *mut ::c_void,
pub dli_sname: *const ::c_char,
pub dli_saddr: *mut ::c_void,
}
}
pub const O_CLOEXEC: ::c_int = 0x10000;

View File

@ -24,13 +24,6 @@ s! {
pub ss_flags: ::c_int,
}
pub struct Dl_info {
pub dli_fname: *const ::c_char,
pub dli_fbase: *mut ::c_void,
pub dli_sname: *const ::c_char,
pub dli_saddr: *const ::c_void,
}
pub struct sockaddr_in {
pub sin_len: u8,
pub sin_family: ::sa_family_t,

View File

@ -182,6 +182,13 @@ s! {
pub dqb_btime: ::int32_t,
pub dqb_itime: ::int32_t,
}
pub struct Dl_info {
pub dli_fname: *const ::c_char,
pub dli_fbase: *mut ::c_void,
pub dli_sname: *const ::c_char,
pub dli_saddr: *const ::c_void,
}
}
pub const O_CLOEXEC: ::c_int = 0x400000;

View File

@ -102,6 +102,13 @@ s! {
pub si_addr: *mut ::c_void,
__pad: [u8; 116],
}
pub struct Dl_info {
pub dli_fname: *const ::c_char,
pub dli_fbase: *mut ::c_void,
pub dli_sname: *const ::c_char,
pub dli_saddr: *mut ::c_void,
}
}
pub const O_CLOEXEC: ::c_int = 0x10000;