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