• Home
  • Raw
  • Download

Lines Matching refs:statResult

211     int srcFd, dstFd, statResult, copyResult;  in copyRegular()  local
215 statResult = stat(dst, &dstStat); in copyRegular()
216 if (statResult == 0 && !S_ISREG(dstStat.st_mode)) { in copyRegular()
221 } else if (statResult != 0 && errno != ENOENT) { in copyRegular()
226 if (statResult == 0) { in copyRegular()
356 int statResult, nameLen; in copySymlink() local
362 statResult = lstat(dst, &dstStat); in copySymlink()
363 if (statResult == 0 && !S_ISREG(dstStat.st_mode) in copySymlink()
373 if (statResult == 0) { in copySymlink()
398 if (statResult == 0) { in copySymlink()
437 int cc, statResult; in copyDirectory() local
441 statResult = stat(dst, &dstStat); in copyDirectory()
442 if (statResult == 0 && !S_ISDIR(dstStat.st_mode)) { in copyDirectory()
446 } else if (statResult != 0 && errno != ENOENT) { in copyDirectory()
451 if (statResult == 0) { in copyDirectory()
538 int statResult, statErrno; in copyFileRecursive() local
544 statResult = lstat(src, &srcStat); in copyFileRecursive()
546 statResult = stat(src, &srcStat); in copyFileRecursive()
560 if (isCmdLine && statResult == 0) { in copyFileRecursive()
564 statResult = -1; in copyFileRecursive()
574 if (isCmdLine && statResult < 0 && statErrno == ENOENT && (options & COPY_TRY_EXE)) { in copyFileRecursive()
580 statResult = lstat(srcExe, &srcStat); in copyFileRecursive()
582 statResult = stat(srcExe, &srcStat); in copyFileRecursive()
584 if (statResult == 0 && !S_ISREG(srcStat.st_mode)) in copyFileRecursive()
585 statResult = -1; /* fail, use original statErrno below */ in copyFileRecursive()
587 if (statResult == 0) { in copyFileRecursive()
600 if (statResult < 0) { in copyFileRecursive()