aboutsummaryrefslogtreecommitdiff
path: root/include/copy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/copy.h')
-rw-r--r--include/copy.h19
1 files changed, 19 insertions, 0 deletions
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 <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <dirent.h>
+#include <errno.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#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