Expose sysCopyFileToFile() and use it.

Moved from ZipArchive.c, with tweaks to for argument order and name. Also
tweaked a related function in ZipArchive to match.

Change-Id: I4d2e3c8b44386d87c5aa1c4565f72da87357fce8
diff --git a/libdex/SysUtil.h b/libdex/SysUtil.h
index 01b4e1a..4de0289 100644
--- a/libdex/SysUtil.h
+++ b/libdex/SysUtil.h
@@ -113,4 +113,10 @@
  */
 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg);
 
+/*
+ * Copy the given number of bytes from one fd to another. Returns
+ * 0 on success, -1 on failure.
+ */
+int sysCopyFileToFile(int outFd, int inFd, size_t count);
+
 #endif /*_DALVIK_SYSUTIL*/