@@ -668,8 +668,6 @@ fn test_solarish(target: &str) {
668668
669669 cfg. field_name ( move |struct_, field| {
670670 match struct_ {
671- // rust struct uses raw u64, rather than union
672- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
673671 // rust struct was committed with typo for Solaris
674672 "door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
675673 "stat" if field. ends_with ( "_nsec" ) => {
@@ -893,7 +891,6 @@ fn test_netbsd(target: &str) {
893891 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
894892 s. replace ( "e_nsec" , ".tv_nsec" )
895893 }
896- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
897894 s => s. to_string ( ) ,
898895 }
899896 } ) ;
@@ -1094,7 +1091,6 @@ fn test_dragonflybsd(target: &str) {
10941091 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
10951092 s. replace ( "e_nsec" , ".tv_nsec" )
10961093 }
1097- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
10981094 // Field is named `type` in C but that is a Rust keyword,
10991095 // so these fields are translated to `type_` in the bindings.
11001096 "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1424,8 +1420,6 @@ fn test_android(target: &str) {
14241420 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
14251421 s. to_string ( )
14261422 }
1427- // FIXME: appears that `epoll_event.data` is an union
1428- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
14291423 s => s. to_string ( ) ,
14301424 }
14311425 } ) ;
@@ -1960,8 +1954,6 @@ fn test_emscripten(target: &str) {
19601954 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
19611955 s. replace ( "e_nsec" , ".tv_nsec" )
19621956 }
1963- // FIXME: appears that `epoll_event.data` is an union
1964- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
19651957 s => s. to_string ( ) ,
19661958 }
19671959 } ) ;
@@ -2389,10 +2381,6 @@ fn test_linux(target: &str) {
23892381 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
23902382 s. replace ( "e_nsec" , ".tv_nsec" )
23912383 }
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 ( ) ,
23962384 // The following structs have a field called `type` in C,
23972385 // but `type` is a Rust keyword, so these fields are translated
23982386 // to `type_` in Rust.
0 commit comments