1 /* 2 * Copyright 2023, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BSD_SYS_UIO_H_ 6 #define _BSD_SYS_UIO_H_ 7 8 9 #include_next <sys/uio.h> 10 #include <features.h> 11 12 13 #ifdef _DEFAULT_SOURCE 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 21 static inline ssize_t 22 preadv(int fd, const struct iovec *vecs, int count, off_t pos) 23 { 24 return readv_pos(fd, pos, vecs, count); 25 } 26 27 28 static inline ssize_t 29 pwritev(int fd, const struct iovec *vecs, int count, off_t pos) 30 { 31 return writev_pos(fd, pos, vecs, count); 32 } 33 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 40 #endif 41 42 43 #endif /* _BSD_SYS_UIO_H_ */ 44