@@ -856,8 +856,6 @@ fn test_solarish(target: &str) {
856
856
857
857
cfg. field_name ( move |struct_, field| {
858
858
match struct_ {
859
- // rust struct uses raw u64, rather than union
860
- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
861
859
// rust struct was committed with typo for Solaris
862
860
"door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
863
861
"stat" if field. ends_with ( "_nsec" ) => {
@@ -1114,7 +1112,6 @@ fn test_netbsd(target: &str) {
1114
1112
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1115
1113
s. replace ( "e_nsec" , ".tv_nsec" )
1116
1114
}
1117
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1118
1115
s => s. to_string ( ) ,
1119
1116
}
1120
1117
} ) ;
@@ -1323,7 +1320,6 @@ fn test_dragonflybsd(target: &str) {
1323
1320
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1324
1321
s. replace ( "e_nsec" , ".tv_nsec" )
1325
1322
}
1326
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1327
1323
// Field is named `type` in C but that is a Rust keyword,
1328
1324
// so these fields are translated to `type_` in the bindings.
1329
1325
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1684,8 +1680,6 @@ fn test_android(target: &str) {
1684
1680
// Our stat *_nsec fields normally don't actually exist but are part
1685
1681
// of a timeval struct
1686
1682
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1687
- // FIXME: appears that `epoll_event.data` is an union
1688
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1689
1683
// The following structs have a field called `type` in C,
1690
1684
// but `type` is a Rust keyword, so these fields are translated
1691
1685
// to `type_` in Rust.
@@ -2756,8 +2750,6 @@ fn test_emscripten(target: &str) {
2756
2750
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
2757
2751
s. replace ( "e_nsec" , ".tv_nsec" )
2758
2752
}
2759
- // FIXME: appears that `epoll_event.data` is an union
2760
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
2761
2753
s => s. to_string ( ) ,
2762
2754
}
2763
2755
} ) ;
@@ -3508,10 +3500,6 @@ fn test_linux(target: &str) {
3508
3500
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
3509
3501
s. replace ( "e_nsec" , ".tv_nsec" )
3510
3502
}
3511
- // FIXME: epoll_event.data is actually a union in C, but in Rust
3512
- // it is only a u64 because we only expose one field
3513
- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3514
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
3515
3503
// The following structs have a field called `type` in C,
3516
3504
// but `type` is a Rust keyword, so these fields are translated
3517
3505
// to `type_` in Rust.
0 commit comments