1 /* SPDX-License-Identifier: GPL-2.0-or-later
2 *
3 * Copyright (c) 2015 Fujitsu Ltd.
4 * Author: Xiao Yang <[email protected]>
5 * Copyright (c) Linux Test Project, 2016-2023
6 */
7
8 #ifndef PREADV_H
9 #define PREADV_H
10
11 #include <sys/types.h>
12 #include "config.h"
13 #include "lapi/syscalls.h"
14
15 #if !defined(HAVE_PREADV)
preadv(int fd,const struct iovec * iov,int iovcnt,off_t offset)16 int preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset)
17 {
18 return tst_syscall(__NR_preadv, fd, iov, iovcnt, offset);
19 }
20 #endif
21
22 #endif /* RREADV_H */
23