xref: /aosp_15_r20/external/ltp/testcases/kernel/syscalls/pwritev/pwritev.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
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 PWRITEV_H
9 #define PWRITEV_H
10 
11 #include <sys/types.h>
12 #include "config.h"
13 #include "lapi/syscalls.h"
14 
15 #if !defined(HAVE_PWRITEV)
pwritev(int fd,const struct iovec * iov,int iovcnt,off_t offset)16 int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset)
17 {
18 	return tst_syscall(__NR_pwritev, fd, iov, iovcnt, offset);
19 }
20 #endif
21 
22 #endif /* PWRITEV_H */
23