Lines Matching refs:options

50 static int copyFileRecursive(const char* src, const char* dst, bool isCmdLine, unsigned int options
98 static void printCopyMsg(const char* src, const char* dst, unsigned int options) in printCopyMsg() argument
100 if ((options & COPY_VERBOSE_MASK) > 0) in printCopyMsg()
104 static void printNotNewerMsg(const char* src, const char* dst, unsigned int options) in printNotNewerMsg() argument
107 if ((options & COPY_VERBOSE_MASK) > 1) in printNotNewerMsg()
160 static int setPermissions(const char* dst, const struct stat* pSrcStat, unsigned int options) in setPermissions() argument
164 if (options & COPY_TIMESTAMPS) { in setPermissions()
179 if (options & COPY_PERMISSIONS) { in setPermissions()
209 …nt copyRegular(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options) in copyRegular() argument
233 if (options & COPY_UPDATE_ONLY) { in copyRegular()
236 printNotNewerMsg(src, dst, options); in copyRegular()
263 if (options & COPY_FORCE) { in copyRegular()
338 setPermissions(dst, pSrcStat, options); in copyRegular()
340 printCopyMsg(src, dst, options); in copyRegular()
355 …nt copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options)
362 …nt copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options) in copySymlink() argument
368 assert(options & COPY_NO_DEREFERENCE); in copySymlink()
389 if (options & COPY_UPDATE_ONLY) { in copySymlink()
392 printNotNewerMsg(src, dst, options); in copySymlink()
427 if (options & COPY_PERMISSIONS) { in copySymlink()
432 printCopyMsg(src, dst, options); in copySymlink()
442 … copyDirectory(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options) in copyDirectory() argument
478 printCopyMsg(src, dst, options); in copyDirectory()
521 if (copyFileRecursive(srcFile, dstFile, false, options) != 0) in copyDirectory()
529 setPermissions(dst, pSrcStat, options); in copyDirectory()
541 static int copyFileRecursive(const char* src, const char* dst, bool isCmdLine, unsigned int options) in copyFileRecursive() argument
554 if (options & COPY_NO_DEREFERENCE) in copyFileRecursive()
577 if (!(options & COPY_RECURSIVE)) { in copyFileRecursive()
580 retVal = copyDirectory(src, dst, &srcStat, options); in copyFileRecursive()
584 retVal = copySymlink(src, dst, &srcStat, options); in copyFileRecursive()
587 retVal = copyRegular(src, dst, &srcStat, options); in copyFileRecursive()
601 int copyFile(const char* src, const char* dst, unsigned int options) in copyFile() argument
603 return copyFileRecursive(src, dst, true, options); in copyFile()