File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2853,6 +2853,9 @@ fn test_freebsd(target: &str) {
2853
2853
// FIXME(freebsd): Removed in FreeBSD 15, deprecated in libc
2854
2854
"TCP_PCAP_OUT" | "TCP_PCAP_IN" => true ,
2855
2855
2856
+ // Added in FreeBSD 14.2
2857
+ "SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
2858
+
2856
2859
_ => false ,
2857
2860
}
2858
2861
} ) ;
@@ -2904,6 +2907,9 @@ fn test_freebsd(target: &str) {
2904
2907
// FIXME(freebsd): Changed in FreeBSD 15
2905
2908
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2906
2909
2910
+ // `splice` introduced in FreeBSD 14.2
2911
+ "splice" if Some ( 14 ) > freebsd_ver => true ,
2912
+
2907
2913
_ => false ,
2908
2914
}
2909
2915
} ) ;
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ SO_PROTOTYPE
1466
1466
SO_REUSEPORT
1467
1467
SO_REUSEPORT_LB
1468
1468
SO_SETFIB
1469
+ SO_SPLICE
1469
1470
SO_TIMESTAMP
1470
1471
SO_TS_BINTIME
1471
1472
SO_TS_CLOCK
@@ -2360,6 +2361,7 @@ sigwait
2360
2361
sigwaitinfo
2361
2362
sockaddr_dl
2362
2363
sockcred
2364
+ splice
2363
2365
srand
2364
2366
srand48
2365
2367
stack_t
Original file line number Diff line number Diff line change @@ -1398,6 +1398,12 @@ s! {
1398
1398
tqh_first: * mut c_void,
1399
1399
tqh_last: * mut * mut c_void,
1400
1400
}
1401
+
1402
+ pub struct splice {
1403
+ pub sp_fd: c_int,
1404
+ pub sp_max: off_t,
1405
+ pub sp_idle: crate :: timeval,
1406
+ }
1401
1407
}
1402
1408
1403
1409
s_no_extra_traits ! {
@@ -3193,6 +3199,7 @@ pub const SO_PROTOCOL: c_int = 0x1016;
3193
3199
pub const SO_PROTOTYPE : c_int = SO_PROTOCOL ;
3194
3200
pub const SO_TS_CLOCK : c_int = 0x1017 ;
3195
3201
pub const SO_DOMAIN : c_int = 0x1019 ;
3202
+ pub const SO_SPLICE : c_int = 0x1023 ;
3196
3203
pub const SO_VENDOR : c_int = 0x80000000 ;
3197
3204
3198
3205
pub const SO_TS_REALTIME_MICRO : c_int = 0 ;
You can’t perform that action at this time.
0 commit comments