aboutsummaryrefslogtreecommitdiff
path: root/include/copy.h
blob: 9e8bc11599fa281b331d450eb227a23cc9ee845a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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