@@ -1876,6 +1876,7 @@ fn test_freebsd(target: &str) {
1876
1876
"sys/vmmeter.h" ,
1877
1877
"sys/wait.h" ,
1878
1878
"libprocstat.h" ,
1879
+ "devstat.h" ,
1879
1880
"syslog.h" ,
1880
1881
"termios.h" ,
1881
1882
"time.h" ,
@@ -1918,7 +1919,9 @@ fn test_freebsd(target: &str) {
1918
1919
}
1919
1920
// Field is named `type` in C but that is a Rust keyword,
1920
1921
// 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 ( ) ,
1922
1925
s => s. to_string ( ) ,
1923
1926
}
1924
1927
} ) ;
@@ -2142,6 +2145,9 @@ fn test_freebsd(target: &str) {
2142
2145
// obsolete version
2143
2146
"vmtotal" if Some ( 11 ) == freebsd_ver => true ,
2144
2147
2148
+ // A wrapper around "long double".
2149
+ "LongDoubleWrap" => true ,
2150
+
2145
2151
_ => false ,
2146
2152
}
2147
2153
} ) ;
@@ -2172,6 +2178,10 @@ fn test_freebsd(target: &str) {
2172
2178
// https://github.com/gnzlbg/ctest/issues/68
2173
2179
"lio_listio" => true ,
2174
2180
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
+
2175
2185
_ => false ,
2176
2186
}
2177
2187
} ) ;
@@ -2244,6 +2254,11 @@ fn test_freebsd(target: &str) {
2244
2254
2245
2255
// `__sem_base` is a private struct field
2246
2256
( "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
+
2247
2262
_ => false ,
2248
2263
}
2249
2264
} ) ;
0 commit comments