9srv Manual Collection/plan9/readv(2) | 9srv Manual Collection/plan9/readv(2) |
---|
long readv(int fd, IOchunk *io, int nio)
long preadv(int fd, IOchunk *io, int nio, vlong off)
long writev(int fd, IOchunk *io, int nio)
long pwritev(int fd, IOchunk *io, int nio, vlong off)
Readv reads data from fd and returns the total number of bytes received. The received data is stored in the successive nio elements of the IOchunk array, storing io[0].len bytes at io[0].addr, the next io[1].len at io[1].addr, and so on. Preadv does the same, but implicitly seeks to I/O offset off by analogy with readv.
Writev and pwritev are the analogous write routines.
9srv Manual Collection/plan9/readv(2) | Rev: Sun Dec 02 23:42:21 GMT 2007 |