1 #ifndef _HOST_COPYFILE_H
2 #define _HOST_COPYFILE_H
3 
4 #include <stdbool.h>
5 #include <sys/stat.h>
6 
7 #if __cplusplus
8 extern "C" {
9 #endif
10 
11 // command line options
12 enum {
13     COPY_NO_DEREFERENCE = 0x00010000, // copy symlink link instead of target
14     COPY_TRY_EXE        = 0x00020000, // on Win32, try adding '.exe' to filename
15     COPY_FORCE          = 0x00040000, // override access permissions
16     COPY_PERMISSIONS    = 0x00080000, // preserve mode, ownership, timestamps
17     COPY_TIMESTAMPS     = 0x00100000, // preserve mode, ownership, timestamps
18     COPY_RECURSIVE      = 0x00200000, // copy directories
19     COPY_UPDATE_ONLY    = 0x00400000, // only copy if source file is newer
20     COPY_VERBOSE_MASK   = 0x000000ff  // talk lots
21 };
22 
23 int copyFile(const char* src, const char* dst, unsigned int options);
24 
25 #if __cplusplus
26 } // extern "C"
27 #endif
28 
29 #endif // _HOST_COPYFILE_H
30 
31