Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2017
 
 

uio.h(3HEAD)

Name

uio.h, uio - definitions for vector I/O operations

Synopsis

#include <sys/uio.h>

Description

The <sys/uio.h> header defines the iovec structure, which includes the following members:

void   *iov_base     /* base address of a memory region 
                        for input or output */
size_t iov_len       /* size of the memory pointed to by 
                        iov_base */

The <sys/uio.h> header uses the iovec structure for scatter/gather I/O.

The ssize_t and size_t types are defined as described in <sys/types.h>.

Usage

The symbol {IOV_MAX} defined in <limits.h> should always be used to learn about the limits on the number of scatter/gather elements that can be processed in one call, instead of assuming a fixed value.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

read(2), write(2), limits.h(3HEAD), types.h(3HEAD), attributes(5), standards(5)