File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2574,7 +2574,7 @@ fn test_freebsd(target: &str) {
2574
2574
"TDF_CANSWAP" | "TDF_SWAPINREQ" => true ,
2575
2575
2576
2576
// Unaccessible in FreeBSD 15
2577
- "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" => true ,
2577
+ "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" | "P_UNUSED3" => true ,
2578
2578
2579
2579
// Removed in FreeBSD 14 (git a6b55ee6be1)
2580
2580
"IFF_KNOWSEPOCH" => true ,
@@ -2986,6 +2986,8 @@ fn test_freebsd(target: &str) {
2986
2986
// `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
2987
2987
( "tcp_info" , "tcp_snd_wscale" ) => true ,
2988
2988
( "tcp_info" , "tcp_rcv_wscale" ) => true ,
2989
+ // mc_spare can change in size between OS releases. It's a spare field, after all.
2990
+ ( "__mcontext" , "mc_spare" ) => true ,
2989
2991
2990
2992
_ => false ,
2991
2993
}
Original file line number Diff line number Diff line change @@ -4186,7 +4186,9 @@ pub const TDI_IWAIT: c_int = 0x0010;
4186
4186
pub const P_ADVLOCK : c_int = 0x00000001 ;
4187
4187
pub const P_CONTROLT : c_int = 0x00000002 ;
4188
4188
pub const P_KPROC : c_int = 0x00000004 ;
4189
+ #[ deprecated( since="1.0" , note="Replaced in FreeBSD 15 by P_IDLEPROC" ) ]
4189
4190
pub const P_UNUSED3 : c_int = 0x00000008 ;
4191
+ pub const P_IDLEPROC : c_int = 0x00000008 ;
4190
4192
pub const P_PPWAIT : c_int = 0x00000010 ;
4191
4193
pub const P_PROFIL : c_int = 0x00000020 ;
4192
4194
pub const P_STOPPROF : c_int = 0x00000040 ;
You can’t perform that action at this time.
0 commit comments