@@ -210,7 +210,7 @@ impl Drop for OwnedFd {
210210 // the latest POSIX wording: http://austingroupbugs.net/view.php?id=529
211211 #[ cfg( not( target_os = "hermit" ) ) ]
212212 {
213- #[ cfg( unix) ]
213+ #[ cfg( all ( unix, not ( target_os = "qurt" ) ) ) ]
214214 crate :: sys:: fs:: debug_assert_fd_is_open ( self . fd . as_inner ( ) ) ;
215215
216216 let _ = libc:: close ( self . fd . as_inner ( ) ) ;
@@ -344,7 +344,7 @@ impl From<OwnedFd> for fs::File {
344344}
345345
346346#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
347- #[ cfg( not( target_os = "trusty" ) ) ]
347+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
348348impl AsFd for crate :: net:: TcpStream {
349349 #[ inline]
350350 fn as_fd ( & self ) -> BorrowedFd < ' _ > {
@@ -353,7 +353,7 @@ impl AsFd for crate::net::TcpStream {
353353}
354354
355355#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
356- #[ cfg( not( target_os = "trusty" ) ) ]
356+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
357357impl From < crate :: net:: TcpStream > for OwnedFd {
358358 /// Takes ownership of a [`TcpStream`](crate::net::TcpStream)'s socket file descriptor.
359359 #[ inline]
@@ -363,7 +363,7 @@ impl From<crate::net::TcpStream> for OwnedFd {
363363}
364364
365365#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
366- #[ cfg( not( target_os = "trusty" ) ) ]
366+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
367367impl From < OwnedFd > for crate :: net:: TcpStream {
368368 #[ inline]
369369 fn from ( owned_fd : OwnedFd ) -> Self {
@@ -374,7 +374,7 @@ impl From<OwnedFd> for crate::net::TcpStream {
374374}
375375
376376#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
377- #[ cfg( not( target_os = "trusty" ) ) ]
377+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
378378impl AsFd for crate :: net:: TcpListener {
379379 #[ inline]
380380 fn as_fd ( & self ) -> BorrowedFd < ' _ > {
@@ -383,7 +383,7 @@ impl AsFd for crate::net::TcpListener {
383383}
384384
385385#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
386- #[ cfg( not( target_os = "trusty" ) ) ]
386+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
387387impl From < crate :: net:: TcpListener > for OwnedFd {
388388 /// Takes ownership of a [`TcpListener`](crate::net::TcpListener)'s socket file descriptor.
389389 #[ inline]
@@ -393,7 +393,7 @@ impl From<crate::net::TcpListener> for OwnedFd {
393393}
394394
395395#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
396- #[ cfg( not( target_os = "trusty" ) ) ]
396+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
397397impl From < OwnedFd > for crate :: net:: TcpListener {
398398 #[ inline]
399399 fn from ( owned_fd : OwnedFd ) -> Self {
@@ -404,7 +404,7 @@ impl From<OwnedFd> for crate::net::TcpListener {
404404}
405405
406406#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
407- #[ cfg( not( target_os = "trusty" ) ) ]
407+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
408408impl AsFd for crate :: net:: UdpSocket {
409409 #[ inline]
410410 fn as_fd ( & self ) -> BorrowedFd < ' _ > {
@@ -413,7 +413,7 @@ impl AsFd for crate::net::UdpSocket {
413413}
414414
415415#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
416- #[ cfg( not( target_os = "trusty" ) ) ]
416+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
417417impl From < crate :: net:: UdpSocket > for OwnedFd {
418418 /// Takes ownership of a [`UdpSocket`](crate::net::UdpSocket)'s file descriptor.
419419 #[ inline]
@@ -423,7 +423,7 @@ impl From<crate::net::UdpSocket> for OwnedFd {
423423}
424424
425425#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
426- #[ cfg( not( target_os = "trusty" ) ) ]
426+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
427427impl From < OwnedFd > for crate :: net:: UdpSocket {
428428 #[ inline]
429429 fn from ( owned_fd : OwnedFd ) -> Self {
@@ -532,47 +532,47 @@ impl<'a> AsFd for io::StderrLock<'a> {
532532}
533533
534534#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
535- #[ cfg( not( target_os = "trusty" ) ) ]
535+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
536536impl AsFd for io:: PipeReader {
537537 fn as_fd ( & self ) -> BorrowedFd < ' _ > {
538538 self . 0 . as_fd ( )
539539 }
540540}
541541
542542#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
543- #[ cfg( not( target_os = "trusty" ) ) ]
543+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
544544impl From < io:: PipeReader > for OwnedFd {
545545 fn from ( pipe : io:: PipeReader ) -> Self {
546546 pipe. 0 . into_inner ( )
547547 }
548548}
549549
550550#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
551- #[ cfg( not( target_os = "trusty" ) ) ]
551+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
552552impl AsFd for io:: PipeWriter {
553553 fn as_fd ( & self ) -> BorrowedFd < ' _ > {
554554 self . 0 . as_fd ( )
555555 }
556556}
557557
558558#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
559- #[ cfg( not( target_os = "trusty" ) ) ]
559+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
560560impl From < io:: PipeWriter > for OwnedFd {
561561 fn from ( pipe : io:: PipeWriter ) -> Self {
562562 pipe. 0 . into_inner ( )
563563 }
564564}
565565
566566#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
567- #[ cfg( not( target_os = "trusty" ) ) ]
567+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
568568impl From < OwnedFd > for io:: PipeReader {
569569 fn from ( owned_fd : OwnedFd ) -> Self {
570570 Self ( FromInner :: from_inner ( owned_fd) )
571571 }
572572}
573573
574574#[ stable( feature = "anonymous_pipe" , since = "1.87.0" ) ]
575- #[ cfg( not( target_os = "trusty" ) ) ]
575+ #[ cfg( not( any ( target_os = "trusty" , target_os = "qurt" ) ) ) ]
576576impl From < OwnedFd > for io:: PipeWriter {
577577 fn from ( owned_fd : OwnedFd ) -> Self {
578578 Self ( FromInner :: from_inner ( owned_fd) )
0 commit comments