@@ -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
} ) ;
@@ -1321,7 +1318,6 @@ fn test_dragonflybsd(target: &str) {
1321
1318
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1322
1319
s. replace ( "e_nsec" , ".tv_nsec" )
1323
1320
}
1324
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1325
1321
// Field is named `type` in C but that is a Rust keyword,
1326
1322
// so these fields are translated to `type_` in the bindings.
1327
1323
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1678,8 +1674,6 @@ fn test_android(target: &str) {
1678
1674
// Our stat *_nsec fields normally don't actually exist but are part
1679
1675
// of a timeval struct
1680
1676
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1681
- // FIXME: appears that `epoll_event.data` is an union
1682
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1683
1677
// The following structs have a field called `type` in C,
1684
1678
// but `type` is a Rust keyword, so these fields are translated
1685
1679
// to `type_` in Rust.
@@ -2748,8 +2742,6 @@ fn test_emscripten(target: &str) {
2748
2742
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
2749
2743
s. replace ( "e_nsec" , ".tv_nsec" )
2750
2744
}
2751
- // FIXME: appears that `epoll_event.data` is an union
2752
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
2753
2745
s => s. to_string ( ) ,
2754
2746
}
2755
2747
} ) ;
@@ -3495,10 +3487,6 @@ fn test_linux(target: &str) {
3495
3487
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
3496
3488
s. replace ( "e_nsec" , ".tv_nsec" )
3497
3489
}
3498
- // FIXME: epoll_event.data is actually a union in C, but in Rust
3499
- // it is only a u64 because we only expose one field
3500
- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3501
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
3502
3490
// The following structs have a field called `type` in C,
3503
3491
// but `type` is a Rust keyword, so these fields are translated
3504
3492
// to `type_` in Rust.
0 commit comments