File tree 3 files changed +27
-0
lines changed
src/unix/bsd/netbsdlike/netbsd
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -943,6 +943,7 @@ fn test_netbsd(target: &str) {
943
943
"semaphore.h" ,
944
944
"signal.h" ,
945
945
"string.h" ,
946
+ "sys/endian.h" ,
946
947
"sys/extattr.h" ,
947
948
"sys/file.h" ,
948
949
"sys/ioctl.h" ,
Original file line number Diff line number Diff line change @@ -1088,8 +1088,13 @@ freeifaddrs
1088
1088
freelocale
1089
1089
fsid_t
1090
1090
futimes
1091
+ getbootfile
1092
+ getbyteorder
1093
+ getdiskrawname
1094
+ getdistcookedname
1091
1095
getdomainname
1092
1096
getdtablesize
1097
+ getfsspecname
1093
1098
getgrent
1094
1099
getgrent_r
1095
1100
getgrgid
Original file line number Diff line number Diff line change @@ -1453,6 +1453,9 @@ pub const TIME_OOP: ::c_int = 3;
1453
1453
pub const TIME_WAIT : :: c_int = 4 ;
1454
1454
pub const TIME_ERROR : :: c_int = 5 ;
1455
1455
1456
+ pub const LITTLE_ENDIAN : :: c_int = 1234 ;
1457
+ pub const BIG_ENDIAN : :: c_int = 4321 ;
1458
+
1456
1459
cfg_if ! {
1457
1460
if #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ,
1458
1461
target_arch = "x86" , target_arch = "x86_64" ) ) ] {
@@ -2258,6 +2261,24 @@ extern "C" {
2258
2261
val : u64 ,
2259
2262
max : :: size_t ,
2260
2263
) -> :: c_int ;
2264
+
2265
+ pub fn getbootfile ( ) -> * const :: c_char ;
2266
+ pub fn getbyteorder ( ) -> :: c_int ;
2267
+ pub fn getdiskrawname (
2268
+ buf : * mut :: c_char ,
2269
+ buflen : :: size_t ,
2270
+ name : * const :: c_char ,
2271
+ ) -> * const :: c_char ;
2272
+ pub fn getdiskcookedname (
2273
+ buf : * mut :: c_char ,
2274
+ buflen : :: size_t ,
2275
+ name : * const :: c_char ,
2276
+ ) -> * const :: c_char ;
2277
+ pub fn getfsspecname (
2278
+ buf : * mut :: c_char ,
2279
+ buflen : :: size_t ,
2280
+ spec : * const :: c_char ,
2281
+ ) -> * const :: c_char ;
2261
2282
}
2262
2283
2263
2284
cfg_if ! {
You can’t perform that action at this time.
0 commit comments