blob: 833160ddbe63232b3a10015899f34db3937c714f [file] [log] [blame]
Xiao Yang4ca27ac2015-12-03 19:31:13 +08001/*
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"
Richard Palethorpe817d8092017-07-24 14:48:25 +020022#include "lapi/syscalls.h"
Xiao Yang4ca27ac2015-12-03 19:31:13 +080023
24#if !defined(HAVE_PWRITEV)
25int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset)
26{
Xiao Yang6e3be082016-04-12 12:53:08 +080027 return tst_syscall(__NR_pwritev, fd, iov, iovcnt, offset);
Xiao Yang4ca27ac2015-12-03 19:31:13 +080028}
29#endif
30
31#endif /* PWRITEV_H */