Skip to content

Commit e66a88c

Browse files
Integrate freebsd 14 as well
1 parent 6499a3e commit e66a88c

File tree

1 file changed

+8
-11
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+8
-11
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ pub const CTLFLAG_STATS: ::c_int = 0x00002000;
910910
pub const CTLFLAG_NOFETCH: ::c_int = 0x00001000;
911911
pub const CTLFLAG_CAPRW: ::c_int = CTLFLAG_CAPRD | CTLFLAG_CAPWR;
912912
cfg_if! {
913-
if #[cfg(freebsd13)] {
913+
if #[cfg(any(freebsd13, freebsd14))] {
914914
pub const CTLFLAG_NEEDGIANT: ::c_int = 0x00000800;
915915
}
916916
}
@@ -930,7 +930,7 @@ pub const CTL_SYSCTL_OIDFMT: ::c_int = 4;
930930
pub const CTL_SYSCTL_OIDDESCR: ::c_int = 5;
931931
pub const CTL_SYSCTL_OIDLABEL: ::c_int = 6;
932932
cfg_if! {
933-
if #[cfg(freebsd13)] {
933+
if #[cfg(any(freebsd13, freebsd14))] {
934934
pub const CTL_SYSCTL_NEXTNOSKIP: ::c_int = 7;
935935
}
936936
}
@@ -972,11 +972,8 @@ pub const KERN_LOGSIGEXIT: ::c_int = 34;
972972
pub const KERN_IOV_MAX: ::c_int = 35;
973973
pub const KERN_HOSTUUID: ::c_int = 36;
974974
pub const KERN_ARND: ::c_int = 37;
975-
cfg_if! {
976-
if #[cfg(any(freebsd12, freebsd13))] {
977-
pub const KERN_MAXPHYS: ::c_int = 38;
978-
}
979-
}
975+
pub const KERN_MAXPHYS: ::c_int = 38;
976+
pub const KERN_STACKTOP: ::c_int = 39;
980977

981978
pub const KERN_PROC_ALL: ::c_int = 0;
982979
pub const KERN_PROC_PID: ::c_int = 1;
@@ -1008,7 +1005,7 @@ pub const KERN_PROC_SIGTRAMP: ::c_int = 41;
10081005
pub const KERN_PROC_CWD: ::c_int = 42;
10091006
pub const KERN_PROC_NFDS: ::c_int = 43;
10101007
cfg_if! {
1011-
if #[cfg(freebsd13)] {
1008+
if #[cfg(any(freebsd13, freebsd14))] {
10121009
pub const KERN_PROC_SIGFASTBLK: ::c_int = 44;
10131010
}
10141011
}
@@ -1055,7 +1052,7 @@ pub const USER_POSIX2_UPE: ::c_int = 18;
10551052
pub const USER_STREAM_MAX: ::c_int = 19;
10561053
pub const USER_TZNAME_MAX: ::c_int = 20;
10571054
cfg_if! {
1058-
if #[cfg(freebsd13)] {
1055+
if #[cfg(any(freebsd13, freebsd14))] {
10591056
pub const USER_LOCALBASE: ::c_int = 21;
10601057
}
10611058
}
@@ -2131,7 +2128,7 @@ pub const SLOCK: ::c_char = 7;
21312128
pub const P_MAGIC: ::c_int = 0xbeefface;
21322129

21332130
cfg_if! {
2134-
if #[cfg(freebsd13)] {
2131+
if #[cfg(any(freebsd13, freebsd14))] {
21352132
pub const TDP_SIGFASTBLOCK: ::c_int = 0x00000100;
21362133
pub const TDP_UIOHELD: ::c_int = 0x10000000;
21372134
pub const TDP_SIGFASTPENDING: ::c_int = 0x80000000;
@@ -2141,7 +2138,7 @@ cfg_if! {
21412138
}
21422139
}
21432140
cfg_if! {
2144-
if #[cfg(any(freebsd12, freebsd13))] {
2141+
if #[cfg(any(freebsd12, freebsd13, freebsd14))] {
21452142
pub const TDP2_SBPAGES: ::c_int = 0x00000001;
21462143
pub const P2_ASLR_ENABLE: ::c_int = 0x00000040;
21472144
pub const P2_ASLR_DISABLE: ::c_int = 0x00000080;

0 commit comments

Comments
 (0)