Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #ifndef PERF_COPYFILE_H_
0003 #define PERF_COPYFILE_H_
0004 
0005 #include <linux/types.h>
0006 #include <sys/types.h>
0007 #include <fcntl.h>
0008 
0009 struct nsinfo;
0010 
0011 int copyfile(const char *from, const char *to);
0012 int copyfile_mode(const char *from, const char *to, mode_t mode);
0013 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
0014 int copyfile_offset(int ifd, loff_t off_in, int ofd, loff_t off_out, u64 size);
0015 
0016 #endif // PERF_COPYFILE_H_