File tree 3 files changed +15
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2781,6 +2781,9 @@ fn test_freebsd(target: &str) {
2781
2781
// FIXME(freebsd): Removed in FreeBSD 15, deprecated in libc
2782
2782
"TCP_PCAP_OUT" | "TCP_PCAP_IN" => true ,
2783
2783
2784
+ // Added in FreeBSD 14.2
2785
+ "SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
2786
+
2784
2787
_ => false ,
2785
2788
}
2786
2789
} ) ;
@@ -2832,6 +2835,9 @@ fn test_freebsd(target: &str) {
2832
2835
// FIXME(freebsd): Changed in FreeBSD 15
2833
2836
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2834
2837
2838
+ // `splice` introduced in FreeBSD 14.2
2839
+ "splice" if Some ( 14 ) > freebsd_ver => true ,
2840
+
2835
2841
_ => false ,
2836
2842
}
2837
2843
} ) ;
Original file line number Diff line number Diff line change @@ -1460,6 +1460,7 @@ SO_PROTOTYPE
1460
1460
SO_REUSEPORT
1461
1461
SO_REUSEPORT_LB
1462
1462
SO_SETFIB
1463
+ SO_SPLICE
1463
1464
SO_TIMESTAMP
1464
1465
SO_TS_BINTIME
1465
1466
SO_TS_CLOCK
@@ -2353,6 +2354,7 @@ sigwait
2353
2354
sigwaitinfo
2354
2355
sockaddr_dl
2355
2356
sockcred
2357
+ splice
2356
2358
srand
2357
2359
srand48
2358
2360
stack_t
Original file line number Diff line number Diff line change @@ -1396,6 +1396,12 @@ s! {
1396
1396
tqh_first: * mut c_void,
1397
1397
tqh_last: * mut * mut c_void,
1398
1398
}
1399
+
1400
+ pub struct splice {
1401
+ pub sp_fd: c_int,
1402
+ pub sp_max: off_t,
1403
+ pub sp_idle: crate :: timeval,
1404
+ }
1399
1405
}
1400
1406
1401
1407
s_no_extra_traits ! {
@@ -3186,6 +3192,7 @@ pub const SO_PROTOCOL: c_int = 0x1016;
3186
3192
pub const SO_PROTOTYPE : c_int = SO_PROTOCOL ;
3187
3193
pub const SO_TS_CLOCK : c_int = 0x1017 ;
3188
3194
pub const SO_DOMAIN : c_int = 0x1019 ;
3195
+ pub const SO_SPLICE : c_int = 0x1023 ;
3189
3196
pub const SO_VENDOR : c_int = 0x80000000 ;
3190
3197
3191
3198
pub const SO_TS_REALTIME_MICRO : c_int = 0 ;
You can’t perform that action at this time.
0 commit comments