Move inotify_event to the linux and android sub-modules

This commit is contained in:
gnzlbg 2019-03-25 19:15:53 +01:00
parent e1c9ad190b
commit 0a9511eb21
4 changed files with 25 additions and 22 deletions

View File

@ -1065,22 +1065,18 @@ fn test_openbsd(target: &str) {
}
});
cfg.field_name(move |struct_, field| {
match field {
"st_birthtime" if struct_.starts_with("stat") => {
"__st_birthtime".to_string()
}
"st_birthtime_nsec" if struct_.starts_with("stat") => {
"__st_birthtimensec".to_string()
}
s if s.ends_with("_nsec") && struct_.starts_with("stat") => {
s.replace("e_nsec", ".tv_nsec")
}
"sa_sigaction" if struct_ == "sigaction" => {
"sa_handler".to_string()
}
s => s.to_string(),
cfg.field_name(move |struct_, field| match field {
"st_birthtime" if struct_.starts_with("stat") => {
"__st_birthtime".to_string()
}
"st_birthtime_nsec" if struct_.starts_with("stat") => {
"__st_birthtimensec".to_string()
}
s if s.ends_with("_nsec") && struct_.starts_with("stat") => {
s.replace("e_nsec", ".tv_nsec")
}
"sa_sigaction" if struct_ == "sigaction" => "sa_handler".to_string(),
s => s.to_string(),
});
cfg.skip_field_type(move |struct_, field| {

View File

@ -249,6 +249,13 @@ s_no_extra_traits!{
pub ivlen: u32,
pub iv: [::c_uchar; 0],
}
pub struct inotify_event {
pub wd: ::c_int,
pub mask: ::uint32_t,
pub cookie: ::uint32_t,
pub len: ::uint32_t
}
}
cfg_if! {

View File

@ -524,6 +524,13 @@ s_no_extra_traits!{
pub ivlen: u32,
pub iv: [::c_uchar; 0],
}
pub struct inotify_event {
pub wd: ::c_int,
pub mask: ::uint32_t,
pub cookie: ::uint32_t,
pub len: ::uint32_t
}
}
cfg_if! {

View File

@ -208,13 +208,6 @@ s! {
pub ar_op: u16,
}
pub struct inotify_event {
pub wd: ::c_int,
pub mask: ::uint32_t,
pub cookie: ::uint32_t,
pub len: ::uint32_t
}
pub struct mmsghdr {
pub msg_hdr: ::msghdr,
pub msg_len: ::c_uint,