Lines Matching refs:srcFd
116 static int copyFileContents(const char* dst, int dstFd, const char* src, int srcFd) in copyFileContents() argument
125 readCount = read(srcFd, buf, sizeof(buf)); in copyFileContents()
212 int srcFd, dstFd, statResult, copyResult; in copyRegular() local
243 srcFd = open(src, O_RDONLY | O_BINARY, 0); in copyRegular()
244 if (srcFd < 0) { in copyRegular()
258 (void) close(srcFd); in copyRegular()
275 (void) close(srcFd); in copyRegular()
287 (void) close(srcFd); in copyRegular()
291 copyResult = copyFileContents(dst, dstFd, src, srcFd); in copyRegular()
293 (void) close(srcFd); in copyRegular()
316 srcFd = open(srcRsrcName, O_RDONLY); in copyRegular()
319 if (srcFd >= 0 && dstFd >= 0) { in copyRegular()
321 srcRsrcName, srcFd); in copyRegular()
322 (void) close(srcFd); in copyRegular()