// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2018, Tulio A. M. Mendes <[email protected]>
* All rights reserved.
* See LICENSE for details.
*
* Source: https://github.com/tadryanom/AdrOS
*/
/* sys/uio.h — Scatter/gather I/O (POSIX compat header for AdrOS/newlib) */
#ifndef _SYS_UIO_H
#define _SYS_UIO_H
#include <stddef.h>
struct iovec {
void *iov_base;
size_t iov_len;
};
ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
#endif