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) {
21482148 // Added in FreeBSD 14
21492149 "LIO_READV" | "LIO_WRITEV" | "LIO_VECTORED" if Some ( 14 ) > freebsd_ver => true ,
21502150
2151+ // Added in FreeBSD 13
2152+ "FIOSSHMLPGCNF" if Some ( 13 ) > freebsd_ver => true ,
2153+
21512154 _ => false ,
21522155 }
21532156 } ) ;
@@ -2178,6 +2181,8 @@ fn test_freebsd(target: &str) {
21782181
21792182 // `sockcred2` is not available in FreeBSD 12.
21802183 "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 ,
21812186
21822187 _ => false ,
21832188 }
Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ FIONWRITE
341341FIOSEEKDATA
342342FIOSEEKHOLE
343343FIOSETOWN
344+ FIOSSHMLPGCNF
344345FLUSHO
345346FOPEN_MAX
346347F_DUP2FD
Original file line number Diff line number Diff line change @@ -992,6 +992,12 @@ s! {
992992 pub _flags: u32 ,
993993 pub _clockid: u32 ,
994994 }
995+
996+ pub struct shm_largepage_conf {
997+ pub psind: :: c_int,
998+ pub alloc_policy: :: c_int,
999+ __pad: [ :: c_int; 10 ] ,
1000+ }
9951001}
9961002
9971003s_no_extra_traits ! {
@@ -2254,6 +2260,7 @@ pub const FIONWRITE: ::c_ulong = 0x40046677;
22542260pub const FIONSPACE : :: c_ulong = 0x40046676 ;
22552261pub const FIOSEEKDATA : :: c_ulong = 0xc0086661 ;
22562262pub const FIOSEEKHOLE : :: c_ulong = 0xc0086662 ;
2263+ pub const FIOSSHMLPGCNF : :: c_ulong = 0x80306664 ;
22572264
22582265pub const JAIL_API_VERSION : u32 = 2 ;
22592266pub const JAIL_CREATE : :: c_int = 0x01 ;
You can’t perform that action at this time.
0 commit comments