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) {
28532853 // FIXME(freebsd): Removed in FreeBSD 15, deprecated in libc
28542854 "TCP_PCAP_OUT" | "TCP_PCAP_IN" => true ,
28552855
2856+ // Added in FreeBSD 14.2
2857+ "SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
2858+
28562859 _ => false ,
28572860 }
28582861 } ) ;
@@ -2904,6 +2907,9 @@ fn test_freebsd(target: &str) {
29042907 // FIXME(freebsd): Changed in FreeBSD 15
29052908 "tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
29062909
2910+ // `splice` introduced in FreeBSD 14.2
2911+ "splice" if Some ( 14 ) > freebsd_ver => true ,
2912+
29072913 _ => false ,
29082914 }
29092915 } ) ;
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ SO_PROTOTYPE
14661466SO_REUSEPORT
14671467SO_REUSEPORT_LB
14681468SO_SETFIB
1469+ SO_SPLICE
14691470SO_TIMESTAMP
14701471SO_TS_BINTIME
14711472SO_TS_CLOCK
@@ -2360,6 +2361,7 @@ sigwait
23602361sigwaitinfo
23612362sockaddr_dl
23622363sockcred
2364+ splice
23632365srand
23642366srand48
23652367stack_t
Original file line number Diff line number Diff line change @@ -1398,6 +1398,12 @@ s! {
13981398 tqh_first: * mut c_void,
13991399 tqh_last: * mut * mut c_void,
14001400 }
1401+
1402+ pub struct splice {
1403+ pub sp_fd: c_int,
1404+ pub sp_max: off_t,
1405+ pub sp_idle: crate :: timeval,
1406+ }
14011407}
14021408
14031409s_no_extra_traits ! {
@@ -3193,6 +3199,7 @@ pub const SO_PROTOCOL: c_int = 0x1016;
31933199pub const SO_PROTOTYPE : c_int = SO_PROTOCOL ;
31943200pub const SO_TS_CLOCK : c_int = 0x1017 ;
31953201pub const SO_DOMAIN : c_int = 0x1019 ;
3202+ pub const SO_SPLICE : c_int = 0x1023 ;
31963203pub const SO_VENDOR : c_int = 0x80000000 ;
31973204
31983205pub const SO_TS_REALTIME_MICRO : c_int = 0 ;
You can’t perform that action at this time.
0 commit comments