@@ -1876,6 +1876,7 @@ fn test_freebsd(target: &str) {
18761876 "sys/vmmeter.h" ,
18771877 "sys/wait.h" ,
18781878 "libprocstat.h" ,
1879+ "devstat.h" ,
18791880 "syslog.h" ,
18801881 "termios.h" ,
18811882 "time.h" ,
@@ -1918,7 +1919,9 @@ fn test_freebsd(target: &str) {
19181919 }
19191920 // Field is named `type` in C but that is a Rust keyword,
19201921 // so these fields are translated to `type_` in the bindings.
1921- "type_" if struct_ == "rtprio" || struct_ == "sockstat" => "type" . to_string ( ) ,
1922+ "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
1923+ "type_" if struct_ == "sockstat" => "type" . to_string ( ) ,
1924+ "type_" if struct_ == "devstat_match_table" => "type" . to_string ( ) ,
19221925 s => s. to_string ( ) ,
19231926 }
19241927 } ) ;
@@ -2142,6 +2145,9 @@ fn test_freebsd(target: &str) {
21422145 // obsolete version
21432146 "vmtotal" if Some ( 11 ) == freebsd_ver => true ,
21442147
2148+ // A wrapper around "long double".
2149+ "LongDoubleWrap" => true ,
2150+
21452151 _ => false ,
21462152 }
21472153 } ) ;
@@ -2172,6 +2178,10 @@ fn test_freebsd(target: &str) {
21722178 // https://github.com/gnzlbg/ctest/issues/68
21732179 "lio_listio" => true ,
21742180
2181+ // It returns a `long double`, but it's a nightmare to bind correctly in rust
2182+ // for the moment, so it's a best effort thing...
2183+ "devstat_compute_etime" => true ,
2184+
21752185 _ => false ,
21762186 }
21772187 } ) ;
@@ -2244,6 +2254,11 @@ fn test_freebsd(target: &str) {
22442254
22452255 // `__sem_base` is a private struct field
22462256 ( "semid_ds" , "__sem_base" ) => true ,
2257+
2258+ // `snap_time` is a `long double`, but it's a nightmare to bind correctly in rust
2259+ // for the moment, so it's a best effort thing...
2260+ ( "statinfo" , "snap_time" ) => true ,
2261+
22472262 _ => false ,
22482263 }
22492264 } ) ;
0 commit comments