@@ -45,13 +45,9 @@ const READ_LIMIT: usize = libc::ssize_t::MAX as usize;
45
45
#[ cfg( any(
46
46
target_os = "dragonfly" ,
47
47
target_os = "freebsd" ,
48
- target_os = "ios" ,
49
- target_os = "tvos" ,
50
- target_os = "macos" ,
51
48
target_os = "netbsd" ,
52
49
target_os = "openbsd" ,
53
- target_os = "watchos" ,
54
- target_os = "visionos" ,
50
+ target_vendor = "apple" ,
55
51
) ) ]
56
52
const fn max_iov ( ) -> usize {
57
53
libc:: IOV_MAX as usize
@@ -72,17 +68,13 @@ const fn max_iov() -> usize {
72
68
target_os = "dragonfly" ,
73
69
target_os = "emscripten" ,
74
70
target_os = "freebsd" ,
75
- target_os = "ios" ,
76
- target_os = "tvos" ,
77
71
target_os = "linux" ,
78
- target_os = "macos" ,
79
72
target_os = "netbsd" ,
80
73
target_os = "nto" ,
81
74
target_os = "openbsd" ,
82
75
target_os = "horizon" ,
83
76
target_os = "vita" ,
84
- target_os = "watchos" ,
85
- target_os = "visionos" ,
77
+ target_vendor = "apple" ,
86
78
) ) ) ]
87
79
const fn max_iov ( ) -> usize {
88
80
16 // The minimum value required by POSIX.
@@ -201,14 +193,10 @@ impl FileDesc {
201
193
target_os = "fuchsia" ,
202
194
target_os = "hurd" ,
203
195
target_os = "illumos" ,
204
- target_os = "ios" ,
205
- target_os = "tvos" ,
206
196
target_os = "linux" ,
207
- target_os = "macos" ,
208
197
target_os = "netbsd" ,
209
198
target_os = "openbsd" ,
210
- target_os = "watchos" ,
211
- target_os = "visionos" ,
199
+ target_vendor = "apple" ,
212
200
) ) ) ]
213
201
pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
214
202
io:: default_read_vectored ( |b| self . read_at ( b, offset) , bufs)
@@ -362,14 +350,10 @@ impl FileDesc {
362
350
target_os = "fuchsia" ,
363
351
target_os = "hurd" ,
364
352
target_os = "illumos" ,
365
- target_os = "ios" ,
366
- target_os = "tvos" ,
367
353
target_os = "linux" ,
368
- target_os = "macos" ,
369
354
target_os = "netbsd" ,
370
355
target_os = "openbsd" ,
371
- target_os = "watchos" ,
372
- target_os = "visionos" ,
356
+ target_vendor = "apple" ,
373
357
) ) ) ]
374
358
pub fn write_vectored_at ( & self , bufs : & [ IoSlice < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
375
359
io:: default_write_vectored ( |b| self . write_at ( b, offset) , bufs)
0 commit comments