vmsplice.h 508 字节
Newer Older
M
m00302376 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) International Business Machines  Corp., 2007
 * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz>
 */

#ifndef VMSPLICE_H
#define VMSPLICE_H

#include "config.h"
#include "lapi/syscalls.h"

#include "lapi/iovec.h"

#if !defined(HAVE_VMSPLICE)
ssize_t vmsplice(int fd, const struct iovec *iov,
	         unsigned long nr_segs, unsigned int flags)
{
	return tst_syscall(__NR_vmsplice, fd, iov, nr_segs, flags);
}
#endif

#endif /* VMSPLICE_H */