From 0340f7765a6aa78de6e6a3ea8c3878713201e94e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 00:31:20 -0500 Subject: Add copy.c, copy.h * copytree() * mkdirs() * copy2() --- include/copy.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/copy.h (limited to 'include/copy.h') diff --git a/include/copy.h b/include/copy.h new file mode 100644 index 0000000..9e8bc11 --- /dev/null +++ b/include/copy.h @@ -0,0 +1,19 @@ +#ifndef OMC_COPY_H + +#include +#include +#include +#include +#include +#include +#include +#include "omc.h" + +#define CT_OWNER 1 << 1 +#define CT_PERM 1 << 2 + +int copytree(const char *srcdir, const char *destdir, unsigned op); +int mkdirs(const char *_path, mode_t mode); +int copy2(const char *src, const char *dest, unsigned op); + +#endif // OMC_COPY_H \ No newline at end of file -- cgit