/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include __BEGIN_DECLS struct iovec { void* iov_base; size_t iov_len; }; ssize_t writev(int fd, const struct iovec*, int iov_count); ssize_t readv(int fd, const struct iovec*, int iov_count); __END_DECLS