2023-02-24 11:12:35 -05:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
2024-08-24 14:55:07 -04:00
|
|
|
static __inline ssize_t
|
2023-02-24 11:12:35 -05:00
|
|
|
preadv(int fd, const struct iovec *vecs, int count, off_t pos)
|
|
|
|
{
|
|
|
|
return readv_pos(fd, pos, vecs, count);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-08-24 14:55:07 -04:00
|
|
|
static __inline ssize_t
|
2023-02-24 11:12:35 -05:00
|
|
|
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_ */
|