mirror of
https://review.haiku-os.org/haiku
synced 2025-02-21 04:58:56 +01:00
Fixes #18243. Change-Id: Ib5867f86100430f5e5c43ce4b2d6d561f546cc1e Reviewed-on: https://review.haiku-os.org/c/haiku/+/6068 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
44 lines
611 B
C
44 lines
611 B
C
/*
|
|
* Copyright 2023, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BSD_SYS_UIO_H_
|
|
#define _BSD_SYS_UIO_H_
|
|
|
|
|
|
#include_next <sys/uio.h>
|
|
#include <features.h>
|
|
|
|
|
|
#ifdef _DEFAULT_SOURCE
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
static inline ssize_t
|
|
preadv(int fd, const struct iovec *vecs, int count, off_t pos)
|
|
{
|
|
return readv_pos(fd, pos, vecs, count);
|
|
}
|
|
|
|
|
|
static inline ssize_t
|
|
pwritev(int fd, const struct iovec *vecs, int count, off_t pos)
|
|
{
|
|
return writev_pos(fd, pos, vecs, count);
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _BSD_SYS_UIO_H_ */
|