@@ -250,13 +250,15 @@ impl FileDesc {
250
250
}
251
251
}
252
252
253
- // We support old MacOS, iOS, watchOS, tvOS and visionOS versions that do not have `preadv`.
254
- // There is no `syscall` possible in these platform for following apple versions:
253
+ // We support old MacOS, iOS, watchOS, tvOS and visionOS. `preadv` was added in the following
254
+ // Apple OS versions:
255
255
// ios 14.0
256
256
// tvos 14.0
257
257
// macos 11.0
258
258
// watchos 7.0
259
- // visionos 1.0
259
+ //
260
+ // These versions may be newer than the minimum supported versions of OS's we support so we must
261
+ // use "weak" linking.
260
262
#[ cfg( target_vendor = "apple" ) ]
261
263
pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
262
264
super :: weak:: weak!( fn preadv( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
@@ -425,13 +427,15 @@ impl FileDesc {
425
427
}
426
428
}
427
429
428
- // We support old MacOS, iOS, watchOS, tvOS and visionOS versions that do not have `pwritev`.
429
- // There is no `syscall` possible in these platform for following apple versions:
430
+ // We support old MacOS, iOS, watchOS, tvOS and visionOS. `pwritev` was added in the following
431
+ // Apple OS versions:
430
432
// ios 14.0
431
433
// tvos 14.0
432
434
// macos 11.0
433
435
// watchos 7.0
434
- // visionos 1.0
436
+ //
437
+ // These versions may be newer than the minimum supported versions of OS's we support so we must
438
+ // use "weak" linking.
435
439
#[ cfg( target_vendor = "apple" ) ]
436
440
pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
437
441
super :: weak:: weak!( fn pwritev( libc:: c_int, * const libc:: iovec, libc:: c_int, off64_t) -> isize ) ;
0 commit comments