KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
uio.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 sys/uio.h
4 Copyright (C) 2017 Lawrence Sebald
5
6*/
7
8/** \file sys/uio.h
9 \brief Header for vector I/O.
10 \ingroup vfs_posix
11
12 This file contains definitions for vector I/O operations, as specified by
13 the POSIX 2008 specification. Full vector-based I/O is not supported for
14 file operations, but the stuff in here is still useful elsewhere.
15
16 \author Lawrence Sebald
17*/
18
19#ifndef __SYS_UIO_H
20#define __SYS_UIO_H
21
22#include <sys/cdefs.h>
23#include <sys/types.h>
24
25__BEGIN_DECLS
26
27/** \addtogroup vfs_posix
28 @{
29*/
30
31/** \brief I/O vector structure
32 \headerfile sys/uio.h
33*/
34struct iovec {
35 /** \brief Base address of memory for I/O. */
36 void * iov_base;
37 /** \brief Size of memory pointed to by iov_base. */
38 size_t iov_len;
39};
40
41/** \brief Old alias for the maximum length of an iovec. */
42#define UIO_MAXIOV IOV_MAX
43
44/** @} */
45
46__END_DECLS
47
48#endif /* __SYS_UIO_H */
I/O vector structure.
Definition uio.h:34
size_t iov_len
Size of memory pointed to by iov_base.
Definition uio.h:38
void * iov_base
Base address of memory for I/O.
Definition uio.h:36