162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci#ifndef PERF_COPYFILE_H_ 362306a36Sopenharmony_ci#define PERF_COPYFILE_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <linux/types.h> 662306a36Sopenharmony_ci#include <sys/types.h> 762306a36Sopenharmony_ci#include <fcntl.h> 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistruct nsinfo; 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciint copyfile(const char *from, const char *to); 1262306a36Sopenharmony_ciint copyfile_mode(const char *from, const char *to, mode_t mode); 1362306a36Sopenharmony_ciint copyfile_ns(const char *from, const char *to, struct nsinfo *nsi); 1462306a36Sopenharmony_ciint copyfile_offset(int ifd, loff_t off_in, int ofd, loff_t off_out, u64 size); 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#endif // PERF_COPYFILE_H_ 17