1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (c) International Business Machines Corp., 2007
4 * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz>
5 */
6
7 #ifndef VMSPLICE_H
8 #define VMSPLICE_H
9
10 #include "config.h"
11 #include "lapi/syscalls.h"
12
13 #include "lapi/iovec.h"
14
15 #if !defined(HAVE_VMSPLICE)
vmsplice(int fd,const struct iovec * iov,unsigned long nr_segs,unsigned int flags)16 ssize_t vmsplice(int fd, const struct iovec *iov,
17 unsigned long nr_segs, unsigned int flags)
18 {
19 return tst_syscall(__NR_vmsplice, fd, iov, nr_segs, flags);
20 }
21 #endif
22
23 #endif /* VMSPLICE_H */
24