File tree 2 files changed +9
-1
lines changed
src/unix/bsd/freebsdlike/freebsd
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2338,6 +2338,9 @@ fn test_freebsd(target: &str) {
2338
2338
// base system anyway.
2339
2339
"CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => true ,
2340
2340
2341
+ // Deprecated and removed in FreeBSD 15. It was never actually implemented.
2342
+ "TCP_MAXPEAKRATE" => true ,
2343
+
2341
2344
// FIXME: This is deprecated - remove in a couple of releases.
2342
2345
// This was removed in FreeBSD 14 (git 1b4701fe1e8) and never
2343
2346
// should've been used anywhere anyway.
@@ -2364,6 +2367,10 @@ fn test_freebsd(target: &str) {
2364
2367
| "PWAIT" | "PLOCK" | "PPAUSE" | "PRI_MIN_TIMESHARE" | "PUSER" | "PI_AV" | "PI_NET"
2365
2368
| "PI_DISK" | "PI_TTY" | "PI_DULL" | "PI_SOFT" => true ,
2366
2369
2370
+ // This constant changed in FreeBSD 15 (git 3458bbd397783). It was never intended to
2371
+ // be stable, and probably shouldn't be bound by libc at all.
2372
+ "RLIM_NLIMITS" => true ,
2373
+
2367
2374
// This symbol changed in FreeBSD 14 (git 051e7d78b03), but the new
2368
2375
// version should be safe to use on older releases.
2369
2376
"IFCAP_CANTCHANGE" => true ,
@@ -2494,7 +2501,6 @@ fn test_freebsd(target: &str) {
2494
2501
2495
2502
// Flags introduced in FreeBSD 14.
2496
2503
"TCP_MAXUNACKTIME"
2497
- | "TCP_MAXPEAKRATE"
2498
2504
| "TCP_IDLE_REDUCE"
2499
2505
| "TCP_REMOTE_UDP_ENCAPS_PORT"
2500
2506
| "TCP_DELACK"
Original file line number Diff line number Diff line change @@ -3843,6 +3843,8 @@ pub const TCP_INFO: ::c_int = 32;
3843
3843
pub const TCP_CONGESTION : :: c_int = 64 ;
3844
3844
pub const TCP_CCALGOOPT : :: c_int = 65 ;
3845
3845
pub const TCP_MAXUNACKTIME : :: c_int = 68 ;
3846
+ #[ doc( hidden) ]
3847
+ #[ deprecated( since = "0.2.160" , note = "Removed in FreeBSD 15" ) ]
3846
3848
pub const TCP_MAXPEAKRATE : :: c_int = 69 ;
3847
3849
pub const TCP_IDLE_REDUCE : :: c_int = 70 ;
3848
3850
pub const TCP_REMOTE_UDP_ENCAPS_PORT : :: c_int = 71 ;
You can’t perform that action at this time.
0 commit comments