summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys/uio.h
blob: 13aa56b925cc4599f6a4ce037c9b260bd4d0dbf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <sys/cdefs.h>
#include <sys/types.h>

__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