1f08c3bdfSopenharmony_ci/* 2f08c3bdfSopenharmony_ci* Copyright (c) 2015 Fujitsu Ltd. 3f08c3bdfSopenharmony_ci* Author: Xiao Yang <yangx.jy@cn.fujitsu.com> 4f08c3bdfSopenharmony_ci* 5f08c3bdfSopenharmony_ci* This program is free software; you can redistribute it and/or modify it 6f08c3bdfSopenharmony_ci* under the terms of version 2 of the GNU General Public License as 7f08c3bdfSopenharmony_ci* published by the Free Software Foundation. 8f08c3bdfSopenharmony_ci* 9f08c3bdfSopenharmony_ci* This program is distributed in the hope that it would be useful, but 10f08c3bdfSopenharmony_ci* WITHOUT ANY WARRANTY; without even the implied warranty of 11f08c3bdfSopenharmony_ci* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12f08c3bdfSopenharmony_ci* 13f08c3bdfSopenharmony_ci* You should have received a copy of the GNU General Public License 14f08c3bdfSopenharmony_ci* alone with this program. 15f08c3bdfSopenharmony_ci*/ 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ci#ifndef PREADV_H 18f08c3bdfSopenharmony_ci#define PREADV_H 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci#include <sys/types.h> 21f08c3bdfSopenharmony_ci#include "config.h" 22f08c3bdfSopenharmony_ci#include "lapi/syscalls.h" 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_ci#if !defined(HAVE_PREADV) 25f08c3bdfSopenharmony_ciint preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset) 26f08c3bdfSopenharmony_ci{ 27f08c3bdfSopenharmony_ci return tst_syscall(__NR_preadv, fd, iov, iovcnt, offset); 28f08c3bdfSopenharmony_ci} 29f08c3bdfSopenharmony_ci#endif 30f08c3bdfSopenharmony_ci 31f08c3bdfSopenharmony_ci#endif /* RREADV_H */ 32