@@ -208,6 +208,7 @@ impl FileDesc {
208
208
target_os = "netbsd" ,
209
209
target_os = "openbsd" ,
210
210
target_os = "watchos" ,
211
+ target_os = "visionos" ,
211
212
) ) ) ]
212
213
pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
213
214
io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs)
@@ -249,6 +250,7 @@ impl FileDesc {
249
250
target_os = "tvos" , // tvos 14.0
250
251
target_os = "macos" , // macos 11.0
251
252
target_os = "watchos" , // watchos 7.0
253
+ target_os = "visionos" , // visionos 1.0
252
254
) ) ]
253
255
pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
254
256
super :: weak:: weak!( fn preadv64( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
@@ -367,6 +369,7 @@ impl FileDesc {
367
369
target_os = "netbsd" ,
368
370
target_os = "openbsd" ,
369
371
target_os = "watchos" ,
372
+ target_os = "visionos" ,
370
373
) ) ) ]
371
374
pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
372
375
io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs)
@@ -408,6 +411,7 @@ impl FileDesc {
408
411
target_os = "tvos" , // tvos 14.0
409
412
target_os = "macos" , // macos 11.0
410
413
target_os = "watchos" , // watchos 7.0
414
+ target_os = "visionos" , // visionos 1.0
411
415
) ) ]
412
416
pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
413
417
super :: weak:: weak!( fn pwritev64( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
0 commit comments