Home | History | Annotate | Download | only in libhost

Lines Matching refs:stat

18 #include <sys/stat.h>
31 # define lstat stat
58 static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstStat)
68 static bool isHiresMtime(const struct stat* pSrcStat)
84 static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat)
89 /* with MSVCRT.DLL, stat always sets st_ino to 0, and there is no simple way to */
160 static int setPermissions(const char* dst, const struct stat* pSrcStat, unsigned int options)
203 * regular file, we fail. However, we use stat() rather than lstat(),
209 static int copyRegular(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options)
211 struct stat dstStat;
216 statResult = stat(dst, &dstStat);
223 fprintf(stderr, "acp: unable to stat destination '%s'\n", dst);
303 struct stat rsrcStat;
313 if (stat(srcRsrcName, &rsrcStat) == 0 && rsrcStat.st_size > 0) {
355 extern int copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options)
362 static int copySymlink(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options)
364 struct stat dstStat;
442 int copyDirectory(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int options)
445 struct stat dstStat;
451 statResult = stat(dst, &dstStat);
457 fprintf(stderr, "acp: unable to stat destination '%s'\n", dst);
546 struct stat srcStat;
552 * Stat the source file. If it doesn't exist, fail.
557 statResult = stat(src, &srcStat);
564 fprintf(stderr, "acp: unable to stat '%s': %s\n",