1570af302Sopenharmony_ci#define _BSD_SOURCE 2570af302Sopenharmony_ci#include <sys/uio.h> 3570af302Sopenharmony_ci#include <unistd.h> 4570af302Sopenharmony_ci#include "syscall.h" 5570af302Sopenharmony_ci 6570af302Sopenharmony_cissize_t preadv(int fd, const struct iovec *iov, int count, off_t ofs) 7570af302Sopenharmony_ci{ 8570af302Sopenharmony_ci return syscall_cp(SYS_preadv, fd, iov, count, 9570af302Sopenharmony_ci (long)(ofs), (long)(ofs>>32)); 10570af302Sopenharmony_ci} 11570af302Sopenharmony_ci 12570af302Sopenharmony_ciweak_alias(preadv, preadv64); 13