@@ -208,6 +208,7 @@ impl FileDesc {
208208 target_os = "netbsd" ,
209209 target_os = "openbsd" ,
210210 target_os = "watchos" ,
211+ target_os = "visionos" ,
211212 ) ) ) ]
212213 pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
213214 io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs)
@@ -249,6 +250,7 @@ impl FileDesc {
249250 target_os = "tvos" , // tvos 14.0
250251 target_os = "macos" , // macos 11.0
251252 target_os = "watchos" , // watchos 7.0
253+ target_os = "visionos" , // visionos 1.0
252254 ) ) ]
253255 pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
254256 super :: weak:: weak!( fn preadv64( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
@@ -367,6 +369,7 @@ impl FileDesc {
367369 target_os = "netbsd" ,
368370 target_os = "openbsd" ,
369371 target_os = "watchos" ,
372+ target_os = "visionos" ,
370373 ) ) ) ]
371374 pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
372375 io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs)
@@ -408,6 +411,7 @@ impl FileDesc {
408411 target_os = "tvos" , // tvos 14.0
409412 target_os = "macos" , // macos 11.0
410413 target_os = "watchos" , // watchos 7.0
414+ target_os = "visionos" , // visionos 1.0
411415 ) ) ]
412416 pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
413417 super :: weak:: weak!( fn pwritev64( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
0 commit comments