io_wrapper_writev
Last updated March 2020
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)
.
- io
-
The resource.
- options
-
An iovec struct.
- iovcnt
-
The number of bytes to write.
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)
.
It is legal to call this function in any thread.
See Also
Was this page helpful?