mergerfs/src/fs_copyfile.hpp

25 lines
443 B
C++
Raw Normal View History

2025-06-23 21:57:55 -05:00
#pragma once
#include "int_types.h"
2025-06-23 21:57:55 -05:00
#include <filesystem>
#include <sys/stat.h>
#define FS_COPYFILE_NONE (0)
#define FS_COPYFILE_CLEANUP_FAILURE (1 << 0)
2025-06-23 21:57:55 -05:00
namespace fs
{
int
copyfile(const int src_fd,
const struct stat &src_st,
const int dst_fd);
int
copyfile(const std::filesystem::path &src,
const std::filesystem::path &dst,
const u32 flags);
2025-06-23 21:57:55 -05:00
}