• Home
  • Raw
  • Download

Lines Matching refs:pSrcStat

58 static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstStat)  in isSourceNewer()  argument
60 return (pSrcStat->st_mtime > pDstStat->st_mtime) || in isSourceNewer()
61 (pSrcStat->st_size != pDstStat->st_size); in isSourceNewer()
68 static bool isHiresMtime(const struct stat* pSrcStat) in isHiresMtime() argument
73 return pSrcStat->st_mtimespec.tv_nsec > 0; in isHiresMtime()
75 return pSrcStat->st_mtim.tv_nsec > 0; in isHiresMtime()
84 static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat) in isSameFile() argument
87 (void)pSrcStat; in isSameFile()
94 return (pSrcStat->st_ino == pDstStat->st_ino); in isSameFile()
160 static int setPermissions(const char* dst, const struct stat* pSrcStat, unsigned int options) in setPermissions() argument
169 ut.actime = pSrcStat->st_atime; in setPermissions()
170 ut.modtime = pSrcStat->st_mtime; in setPermissions()
171 if (isHiresMtime(pSrcStat)) in setPermissions()
183 if (chmod(dst, pSrcStat->st_mode & ~(S_IFMT)) != 0) { in setPermissions()
185 dst, pSrcStat->st_mode & ~(S_IFMT), strerror(errno))); in setPermissions()
191 if (chown(dst, pSrcStat->st_uid, pSrcStat->st_gid) != 0) { in setPermissions()
193 dst, pSrcStat->st_uid, pSrcStat->st_gid, strerror(errno))); in setPermissions()
209 static int copyRegular(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int … in copyRegular() argument
228 if (isSameFile(pSrcStat, &dstStat)) { in copyRegular()
234 if (!isSourceNewer(pSrcStat, &dstStat)) { in copyRegular()
338 setPermissions(dst, pSrcStat, options); in copyRegular()
355 extern int copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int …
362 static int copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int … in copySymlink() argument
384 if (isSameFile(pSrcStat, &dstStat)) { in copySymlink()
390 if (!isSourceNewer(pSrcStat, &dstStat)) { in copySymlink()
428 if (lchown(dst, pSrcStat->st_uid, pSrcStat->st_gid) != 0) in copySymlink()
442 int copyDirectory(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int optio… in copyDirectory() argument
462 if (isSameFile(pSrcStat, &dstStat)) { in copyDirectory()
529 setPermissions(dst, pSrcStat, options); in copyDirectory()