fn preadv(fd: fd_t, iov: []const iovec, offset: u64) PReadError!usize
[src]
Number of bytes read is returned. Upon reading end-of-file, zero is returned.
Retries when interrupted by a signal.
For POSIX systems, if fd
is opened in non blocking mode, the function will return error.WouldBlock when EAGAIN is received. On Windows, if the application has a global event loop enabled, I/O Completion Ports are used to perform the I/O. error.WouldBlock
is not possible on Windows.
This operation is non-atomic on the following systems:
- Darwin
- Windows On these systems, the read races with concurrent writes to the same file descriptor.