Next: , Previous: , Up: posix fd   [Index]


4.13.5 Scatter–gather operations

Function: readv fd buffers

Interface to the C function readv(), (libc)readv. Read bytes from the file descriptor fd and store them into the list of bytevectors referenced by buffers. If successful return a non–negative exact integer representing the number of bytes actually read, else raise an exception.

Function: writev fd buffers

Interface to the C function writev(), (libc)writev. Write bytes to the file descriptor fd from the list of bytevectors referenced by buffers. If successful return a non–negative exact integer representing the number of bytes actually written, else raise an exception.