• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) International Business Machines  Corp., 2007
4  * Copyright (c) 2014 Fujitsu Ltd.
5  */
6 
7 #ifndef LAPI_SPLICE_H__
8 #define LAPI_SPLICE_H__
9 
10 #include "config.h"
11 #include "lapi/syscalls.h"
12 
13 #if !defined(HAVE_SPLICE)
splice(int fd_in,loff_t * off_in,int fd_out,loff_t * off_out,size_t len,unsigned int flags)14 static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out,
15                              loff_t *off_out, size_t len, unsigned int flags)
16 {
17 	return tst_syscall(__NR_splice, fd_in, off_in,
18 		fd_out, off_out, len, flags);
19 }
20 #endif
21 
22 #endif /* LAPI_SPLICE_H__ */
23