File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2148,6 +2148,9 @@ fn test_freebsd(target: &str) {
2148
2148
// Added in FreeBSD 14
2149
2149
"LIO_READV" | "LIO_WRITEV" | "LIO_VECTORED" if Some ( 14 ) > freebsd_ver => true ,
2150
2150
2151
+ // Added in FreeBSD 13
2152
+ "FIOSSHMLPGCNF" if Some ( 13 ) > freebsd_ver => true ,
2153
+
2151
2154
_ => false ,
2152
2155
}
2153
2156
} ) ;
@@ -2178,6 +2181,8 @@ fn test_freebsd(target: &str) {
2178
2181
2179
2182
// `sockcred2` is not available in FreeBSD 12.
2180
2183
"sockcred2" if Some ( 13 ) > freebsd_ver => true ,
2184
+ // `shm_largepage_conf` was introduced in FreeBSD 13.
2185
+ "shm_largepage_conf" if Some ( 13 ) > freebsd_ver => true ,
2181
2186
2182
2187
_ => false ,
2183
2188
}
Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ FIONWRITE
341
341
FIOSEEKDATA
342
342
FIOSEEKHOLE
343
343
FIOSETOWN
344
+ FIOSSHMLPGCNF
344
345
FLUSHO
345
346
FOPEN_MAX
346
347
F_DUP2FD
Original file line number Diff line number Diff line change @@ -992,6 +992,12 @@ s! {
992
992
pub _flags: u32 ,
993
993
pub _clockid: u32 ,
994
994
}
995
+
996
+ pub struct shm_largepage_conf {
997
+ pub psind: :: c_int,
998
+ pub alloc_policy: :: c_int,
999
+ __pad: [ :: c_int; 10 ] ,
1000
+ }
995
1001
}
996
1002
997
1003
s_no_extra_traits ! {
@@ -2254,6 +2260,7 @@ pub const FIONWRITE: ::c_ulong = 0x40046677;
2254
2260
pub const FIONSPACE : :: c_ulong = 0x40046676 ;
2255
2261
pub const FIOSEEKDATA : :: c_ulong = 0xc0086661 ;
2256
2262
pub const FIOSEEKHOLE : :: c_ulong = 0xc0086662 ;
2263
+ pub const FIOSSHMLPGCNF : :: c_ulong = 0x80306664 ;
2257
2264
2258
2265
pub const JAIL_API_VERSION : u32 = 2 ;
2259
2266
pub const JAIL_CREATE : :: c_int = 0x01 ;
You can’t perform that action at this time.
0 commit comments