Finds
#include <sys/uio.h> ssize_t writev ( int fildes, const struct iovec *iov, int iovcnt);
(IN) Specifies the file handle from which data is to be written.
(IN) Points to the iovec structure containing the base address and the length of an area in memory where data can be copied.
(IN) Specifies the number of buffers in the iov array.
If successful, returns either 0 or the number of bytes actually written. Otherwise, returns -1 and sets errno to one of the following:
Each iovec entry specifies the base address and length of an area in memory from which data can be copied.
When calling nonblocking I/O on SOCK_STREAM sockets, writev might write fewer bytes than requested. Note the return value, call select to determine when to try the operation again, and retry the remainder of the operation.
The writev function can also write data to SOCK_DGRAM sockets, but send is usually called. The writev function is identical to a send request, except flags is not available.