Lines Matching refs:dstFd
116 static int copyFileContents(const char* dst, int dstFd, const char* src, int srcFd) in copyFileContents() argument
133 writeCount = write(dstFd, buf, readCount); in copyFileContents()
212 int srcFd, dstFd, statResult, copyResult; in copyRegular() local
251 dstFd = open(dst, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644); in copyRegular()
253 if (dstFd < 0) { in copyRegular()
281 dstFd = open(dst, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644); in copyRegular()
284 if (dstFd < 0) { in copyRegular()
291 copyResult = copyFileContents(dst, dstFd, src, srcFd); in copyRegular()
294 (void) close(dstFd); in copyRegular()
317 dstFd = open(dstRsrcName, O_TRUNC | O_WRONLY, 0); in copyRegular()
319 if (srcFd >= 0 && dstFd >= 0) { in copyRegular()
320 copyResult = copyFileContents(dstRsrcName, dstFd, in copyRegular()
323 (void) close(dstFd); in copyRegular()