@@ -668,8 +668,6 @@ fn test_solarish(target: &str) {
668
668
669
669
cfg. field_name ( move |struct_, field| {
670
670
match struct_ {
671
- // rust struct uses raw u64, rather than union
672
- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
673
671
// rust struct was committed with typo for Solaris
674
672
"door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
675
673
"stat" if field. ends_with ( "_nsec" ) => {
@@ -893,7 +891,6 @@ fn test_netbsd(target: &str) {
893
891
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
894
892
s. replace ( "e_nsec" , ".tv_nsec" )
895
893
}
896
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
897
894
s => s. to_string ( ) ,
898
895
}
899
896
} ) ;
@@ -1094,7 +1091,6 @@ fn test_dragonflybsd(target: &str) {
1094
1091
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1095
1092
s. replace ( "e_nsec" , ".tv_nsec" )
1096
1093
}
1097
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1098
1094
// Field is named `type` in C but that is a Rust keyword,
1099
1095
// so these fields are translated to `type_` in the bindings.
1100
1096
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1424,8 +1420,6 @@ fn test_android(target: &str) {
1424
1420
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1425
1421
s. to_string ( )
1426
1422
}
1427
- // FIXME: appears that `epoll_event.data` is an union
1428
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1429
1423
s => s. to_string ( ) ,
1430
1424
}
1431
1425
} ) ;
@@ -1960,8 +1954,6 @@ fn test_emscripten(target: &str) {
1960
1954
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1961
1955
s. replace ( "e_nsec" , ".tv_nsec" )
1962
1956
}
1963
- // FIXME: appears that `epoll_event.data` is an union
1964
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1965
1957
s => s. to_string ( ) ,
1966
1958
}
1967
1959
} ) ;
@@ -2389,10 +2381,6 @@ fn test_linux(target: &str) {
2389
2381
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
2390
2382
s. replace ( "e_nsec" , ".tv_nsec" )
2391
2383
}
2392
- // FIXME: epoll_event.data is actuall a union in C, but in Rust
2393
- // it is only a u64 because we only expose one field
2394
- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
2395
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
2396
2384
// The following structs have a field called `type` in C,
2397
2385
// but `type` is a Rust keyword, so these fields are translated
2398
2386
// to `type_` in Rust.
0 commit comments