1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Kernel+LibC: Share definitions for sys/uio.h

This commit is contained in:
Andreas Kling 2021-08-14 19:38:47 +02:00
parent 37e98a55b7
commit c9a5d83ccc
3 changed files with 25 additions and 13 deletions

View file

@ -1,21 +1,15 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
#include <Kernel/API/POSIX/sys/uio.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);