File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2572,7 +2572,7 @@ fn test_freebsd(target: &str) {
2572
2572
"TDF_CANSWAP" | "TDF_SWAPINREQ" => true ,
2573
2573
2574
2574
// Unaccessible in FreeBSD 15
2575
- "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" => true ,
2575
+ "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" | "P_UNUSED3" => true ,
2576
2576
2577
2577
// Removed in FreeBSD 14 (git a6b55ee6be1)
2578
2578
"IFF_KNOWSEPOCH" => true ,
@@ -2981,6 +2981,8 @@ fn test_freebsd(target: &str) {
2981
2981
// `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
2982
2982
( "tcp_info" , "tcp_snd_wscale" ) => true ,
2983
2983
( "tcp_info" , "tcp_rcv_wscale" ) => true ,
2984
+ // mc_spare can change in size between OS releases. It's a spare field, after all.
2985
+ ( "__mcontext" , "mc_spare" ) => true ,
2984
2986
2985
2987
_ => false ,
2986
2988
}
Original file line number Diff line number Diff line change @@ -4114,7 +4114,9 @@ pub const TDI_IWAIT: c_int = 0x0010;
4114
4114
pub const P_ADVLOCK : c_int = 0x00000001 ;
4115
4115
pub const P_CONTROLT : c_int = 0x00000002 ;
4116
4116
pub const P_KPROC : c_int = 0x00000004 ;
4117
+ #[ deprecated( since="1.0" , note="Replaced in FreeBSD 15 by P_IDLEPROC" ) ]
4117
4118
pub const P_UNUSED3 : c_int = 0x00000008 ;
4119
+ pub const P_IDLEPROC : c_int = 0x00000008 ;
4118
4120
pub const P_PPWAIT : c_int = 0x00000010 ;
4119
4121
pub const P_PROFIL : c_int = 0x00000020 ;
4120
4122
pub const P_STOPPROF : c_int = 0x00000040 ;
Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ s_no_extra_traits! {
137
137
pub mc_gsbase: register_t,
138
138
pub mc_xfpustate: register_t,
139
139
pub mc_xfpustate_len: register_t,
140
- pub mc_spare: [ c_long; 4 ] ,
140
+ pub mc_tlsbase: register_t,
141
+ pub mc_spare: [ c_long; 3 ] ,
141
142
}
142
143
}
143
144
You can’t perform that action at this time.
0 commit comments