@@ -11,14 +11,10 @@ use sys::time::TimeVal;
11
11
use sys:: uio:: IoVec ;
12
12
#[ cfg( any(
13
13
target_os = "linux" ,
14
- target_os = "freebsd" ,
15
- target_os = "netbsd" ,
16
14
) ) ]
17
15
use sys:: time:: TimeSpec ;
18
16
#[ cfg( any(
19
17
target_os = "linux" ,
20
- target_os = "freebsd" ,
21
- target_os = "netbsd" ,
22
18
) ) ]
23
19
use std:: marker:: PhantomData ;
24
20
@@ -1349,17 +1345,13 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
1349
1345
1350
1346
#[ cfg( any(
1351
1347
target_os = "linux" ,
1352
- target_os = "freebsd" ,
1353
- target_os = "netbsd" ,
1354
1348
) ) ]
1355
1349
#[ repr( C ) ]
1356
1350
#[ allow( missing_debug_implementations) ]
1357
1351
pub struct SendMMsgHdr < ' a > ( libc:: mmsghdr , PhantomData < & ' a ( ) > ) ;
1358
1352
1359
1353
#[ cfg( any(
1360
1354
target_os = "linux" ,
1361
- target_os = "freebsd" ,
1362
- target_os = "netbsd" ,
1363
1355
) ) ]
1364
1356
impl < ' a > SendMMsgHdr < ' a > {
1365
1357
pub fn new ( iov : & mut [ IoVec < & ' a mut [ u8 ] > ] ,
@@ -1444,17 +1436,13 @@ impl<'a> SendMMsgHdr<'a> {
1444
1436
1445
1437
#[ cfg( any(
1446
1438
target_os = "linux" ,
1447
- target_os = "freebsd" ,
1448
- target_os = "netbsd" ,
1449
1439
) ) ]
1450
1440
#[ repr( C ) ]
1451
1441
#[ allow( missing_debug_implementations) ]
1452
1442
pub struct RecvMMsgHdr < ' a > ( libc:: mmsghdr , PhantomData < & ' a ( ) > ) ;
1453
1443
1454
1444
#[ cfg( any(
1455
1445
target_os = "linux" ,
1456
- target_os = "freebsd" ,
1457
- target_os = "netbsd" ,
1458
1446
) ) ]
1459
1447
impl < ' a > RecvMMsgHdr < ' a > {
1460
1448
pub fn new < T > ( iov : & mut [ IoVec < & ' a mut [ u8 ] > ] ,
@@ -1517,8 +1505,6 @@ impl<'a> RecvMMsgHdr<'a> {
1517
1505
/// Receive multiple messages from a socket using a single system call.
1518
1506
#[ cfg( any(
1519
1507
target_os = "linux" ,
1520
- target_os = "freebsd" ,
1521
- target_os = "netbsd" ,
1522
1508
) ) ]
1523
1509
pub fn recvmmsg ( fd : RawFd , msgvec : & mut [ RecvMMsgHdr ] ,
1524
1510
flags : MsgFlags ,
@@ -1542,8 +1528,6 @@ pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
1542
1528
/// Transmit multiple messages on a socket using a single system call.
1543
1529
#[ cfg( any(
1544
1530
target_os = "linux" ,
1545
- target_os = "freebsd" ,
1546
- target_os = "netbsd" ,
1547
1531
) ) ]
1548
1532
pub fn sendmmsg ( fd : RawFd , msgvec : & mut [ SendMMsgHdr ] ) -> Result < usize > {
1549
1533
let ret = unsafe {
0 commit comments