Skip to main content

Name

io_wrapper_writev — Write a vector

Synopsis

#include "io_wrapper.h"

| **io_wrapper_writev** ( | io, |   | |   | iov, |   | |   | iovcnt); |   |

io_object * <var class="pdparam">io</var>; const struct iovec * <var class="pdparam">iov</var>; int <var class="pdparam">iovcnt</var>;

Description

Write a vector. This function behaves like the system function, writev(2).

Parameters

io

The resource.

options

An iovec struct.

iovcnt

The number of bytes to write.

Return Values

On success, this function returns the number of bytes read and the file position is advanced by this number. On failure, it returns -1 and sets errno appropriately to a system error defined by writev(2).

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?