@@ -10,14 +10,10 @@ use sys::time::TimeVal;
10
10
use sys:: uio:: IoVec ;
11
11
#[ cfg( any(
12
12
target_os = "linux" ,
13
- target_os = "freebsd" ,
14
- target_os = "netbsd" ,
15
13
) ) ]
16
14
use sys:: time:: TimeSpec ;
17
15
#[ cfg( any(
18
16
target_os = "linux" ,
19
- target_os = "freebsd" ,
20
- target_os = "netbsd" ,
21
17
) ) ]
22
18
use std:: marker:: PhantomData ;
23
19
@@ -1217,17 +1213,13 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
1217
1213
1218
1214
#[ cfg( any(
1219
1215
target_os = "linux" ,
1220
- target_os = "freebsd" ,
1221
- target_os = "netbsd" ,
1222
1216
) ) ]
1223
1217
#[ repr( C ) ]
1224
1218
#[ allow( missing_debug_implementations) ]
1225
1219
pub struct SendMMsgHdr < ' a > ( libc:: mmsghdr , PhantomData < & ' a ( ) > ) ;
1226
1220
1227
1221
#[ cfg( any(
1228
1222
target_os = "linux" ,
1229
- target_os = "freebsd" ,
1230
- target_os = "netbsd" ,
1231
1223
) ) ]
1232
1224
impl < ' a > SendMMsgHdr < ' a > {
1233
1225
pub fn new ( iov : & mut [ IoVec < & ' a mut [ u8 ] > ] ,
@@ -1312,17 +1304,13 @@ impl<'a> SendMMsgHdr<'a> {
1312
1304
1313
1305
#[ cfg( any(
1314
1306
target_os = "linux" ,
1315
- target_os = "freebsd" ,
1316
- target_os = "netbsd" ,
1317
1307
) ) ]
1318
1308
#[ repr( C ) ]
1319
1309
#[ allow( missing_debug_implementations) ]
1320
1310
pub struct RecvMMsgHdr < ' a > ( libc:: mmsghdr , PhantomData < & ' a ( ) > ) ;
1321
1311
1322
1312
#[ cfg( any(
1323
1313
target_os = "linux" ,
1324
- target_os = "freebsd" ,
1325
- target_os = "netbsd" ,
1326
1314
) ) ]
1327
1315
impl < ' a > RecvMMsgHdr < ' a > {
1328
1316
pub fn new < T > ( iov : & mut [ IoVec < & ' a mut [ u8 ] > ] ,
@@ -1385,8 +1373,6 @@ impl<'a> RecvMMsgHdr<'a> {
1385
1373
/// Receive multiple messages from a socket using a single system call.
1386
1374
#[ cfg( any(
1387
1375
target_os = "linux" ,
1388
- target_os = "freebsd" ,
1389
- target_os = "netbsd" ,
1390
1376
) ) ]
1391
1377
pub fn recvmmsg ( fd : RawFd , msgvec : & mut [ RecvMMsgHdr ] ,
1392
1378
flags : MsgFlags ,
@@ -1410,8 +1396,6 @@ pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
1410
1396
/// Transmit multiple messages on a socket using a single system call.
1411
1397
#[ cfg( any(
1412
1398
target_os = "linux" ,
1413
- target_os = "freebsd" ,
1414
- target_os = "netbsd" ,
1415
1399
) ) ]
1416
1400
pub fn sendmmsg ( fd : RawFd , msgvec : & mut [ SendMMsgHdr ] ) -> Result < usize > {
1417
1401
let ret = unsafe {
0 commit comments