Xiao Yang | 4ca27ac | 2015-12-03 19:31:13 +0800 | [diff] [blame] | 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" |
Richard Palethorpe | 817d809 | 2017-07-24 14:48:25 +0200 | [diff] [blame^] | 22 | #include "lapi/syscalls.h" |
Xiao Yang | 4ca27ac | 2015-12-03 19:31:13 +0800 | [diff] [blame] | 23 | |
| 24 | #if !defined(HAVE_PWRITEV) |
| 25 | int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset) |
| 26 | { |
Xiao Yang | 6e3be08 | 2016-04-12 12:53:08 +0800 | [diff] [blame] | 27 | return tst_syscall(__NR_pwritev, fd, iov, iovcnt, offset); |
Xiao Yang | 4ca27ac | 2015-12-03 19:31:13 +0800 | [diff] [blame] | 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif /* PWRITEV_H */ |