aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libhost/include/host/CopyFile.h
diff options
context:
space:
mode:
authorJP Sugarbroad <jpsugar@google.com>2018-09-10 21:49:21 (GMT)
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-09-10 21:49:21 (GMT)
commit7728c817e34d959b99fc0ae54cff7b8041dadd04 (patch)
treefd6e7a1ead20e0353e4dbaf06836ebef3f167856 /tools/libhost/include/host/CopyFile.h
parent5c6df3c9a2039e7323155c0b8a8734db54ca6fe1 (diff)
parent2df512843fd71c8c3de525a85857eabae99c8141 (diff)
downloadandroid_build-7728c817e34d959b99fc0ae54cff7b8041dadd04.zip
android_build-7728c817e34d959b99fc0ae54cff7b8041dadd04.tar.gz
android_build-7728c817e34d959b99fc0ae54cff7b8041dadd04.tar.bz2
Merge changes from topic "am-b8fbc025-dd1b-4d0d-90bb-1a3f2f2e8d15" into nyc-mr1-dev
* changes: [automerger] [RESTRICT AUTOMERGE] Remove build/libs am: 62a11cf698 am: 41a932d505 [automerger] [RESTRICT AUTOMERGE] Remove build/libs am: 62a11cf698 [RESTRICT AUTOMERGE] Remove build/libs
Diffstat (limited to 'tools/libhost/include/host/CopyFile.h')
-rw-r--r--tools/libhost/include/host/CopyFile.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/libhost/include/host/CopyFile.h b/tools/libhost/include/host/CopyFile.h
new file mode 100644
index 0000000..e65712b
--- /dev/null
+++ b/tools/libhost/include/host/CopyFile.h
@@ -0,0 +1,30 @@
+#ifndef _HOST_COPYFILE_H
+#define _HOST_COPYFILE_H
+
+#include <stdbool.h>
+#include <sys/stat.h>
+
+#if __cplusplus
+extern "C" {
+#endif
+
+// command line options
+enum {
+ COPY_NO_DEREFERENCE = 0x00010000, // copy symlink link instead of target
+ COPY_TRY_EXE = 0x00020000, // on Win32, try adding '.exe' to filename
+ COPY_FORCE = 0x00040000, // override access permissions
+ COPY_PERMISSIONS = 0x00080000, // preserve mode, ownership, timestamps
+ COPY_TIMESTAMPS = 0x00100000, // preserve mode, ownership, timestamps
+ COPY_RECURSIVE = 0x00200000, // copy directories
+ COPY_UPDATE_ONLY = 0x00400000, // only copy if source file is newer
+ COPY_VERBOSE_MASK = 0x000000ff // talk lots
+};
+
+int copyFile(const char* src, const char* dst, unsigned int options);
+
+#if __cplusplus
+} // extern "C"
+#endif
+
+#endif // _HOST_COPYFILE_H
+