@@ -30,11 +30,7 @@ pub fn readv(fd: RawFd, iov: &mut [IoVec<&mut [u8]>]) -> Result<usize> {
30
30
/// or an error occurs. The file offset is not changed.
31
31
///
32
32
/// See also: [`writev`](fn.writev.html) and [`pwrite`](fn.pwrite.html)
33
- #[ cfg( any( target_os = "dragonfly" ,
34
- target_os = "freebsd" ,
35
- target_os = "linux" ,
36
- target_os = "netbsd" ,
37
- target_os = "openbsd" ) ) ]
33
+ #[ cfg( not( target_os = "redox" ) ) ]
38
34
pub fn pwritev ( fd : RawFd , iov : & [ IoVec < & [ u8 ] > ] ,
39
35
offset : off_t ) -> Result < usize > {
40
36
let res = unsafe {
@@ -51,11 +47,7 @@ pub fn pwritev(fd: RawFd, iov: &[IoVec<&[u8]>],
51
47
/// changed.
52
48
///
53
49
/// See also: [`readv`](fn.readv.html) and [`pread`](fn.pread.html)
54
- #[ cfg( any( target_os = "dragonfly" ,
55
- target_os = "freebsd" ,
56
- target_os = "linux" ,
57
- target_os = "netbsd" ,
58
- target_os = "openbsd" ) ) ]
50
+ #[ cfg( not( target_os = "redox" ) ) ]
59
51
pub fn preadv ( fd : RawFd , iov : & [ IoVec < & mut [ u8 ] > ] ,
60
52
offset : off_t ) -> Result < usize > {
61
53
let res = unsafe {
@@ -181,7 +173,7 @@ pub fn process_vm_readv(
181
173
182
174
/// A vector of buffers.
183
175
///
184
- /// Vectored I/O methods like [`pwritev `] and [`preadv `] use this structure for
176
+ /// Vectored I/O methods like [`writev `] and [`readv `] use this structure for
185
177
/// both reading and writing. Each `IoVec` specifies the base address and
186
178
/// length of an area in memory.
187
179
#[ repr( transparent) ]
0 commit comments