posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
uio.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
16#ifndef ZEPHYR_INCLUDE_POSIX_SYS_UIO_H_
17#define ZEPHYR_INCLUDE_POSIX_SYS_UIO_H_
18
19#include <stddef.h>
20#include <sys/types.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#if !(defined(_IOVEC_DECLARED) || defined(__iovec_defined)) || defined(__DOXYGEN__)
28struct iovec {
29 void *iov_base;
30 size_t iov_len;
31};
32#define _IOVEC_DECLARED
33#define __iovec_defined
34#endif
35
45ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);
46
56ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* ZEPHYR_INCLUDE_POSIX_SYS_UIO_H_ */
ssize_t readv(int fildes, const struct iovec *iov, int iovcnt)
Read data into multiple buffers (scatter input).
ssize_t writev(int fildes, const struct iovec *iov, int iovcnt)
Write data from multiple buffers (gather output).
Scatter/gather array element.
Definition socket.h:66
void * iov_base
Pointer to data.
Definition socket.h:67
size_t iov_len
Length of the data.
Definition socket.h:68
POSIX fundamental types (<sys/types.h>)