^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef PERF_COPYFILE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define PERF_COPYFILE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <sys/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <fcntl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct nsinfo;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) int copyfile(const char *from, const char *to);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int copyfile_mode(const char *from, const char *to, mode_t mode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) int copyfile_offset(int ifd, loff_t off_in, int ofd, loff_t off_out, u64 size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif // PERF_COPYFILE_H_