Home | History | Annotate | Download | only in host

Lines Matching refs:dstFd

116 static int copyFileContents(const char* dst, int dstFd, const char* src, int srcFd)
133 writeCount = write(dstFd, buf, readCount);
212 int srcFd, dstFd, statResult, copyResult;
251 dstFd = open(dst, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644);
253 if (dstFd < 0) {
281 dstFd = open(dst, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644);
284 if (dstFd < 0) {
291 copyResult = copyFileContents(dst, dstFd, src, srcFd);
294 (void) close(dstFd);
316 dstFd = open(dstRsrcName, O_TRUNC | O_WRONLY, 0);
318 if (srcFd >= 0 && dstFd >= 0) {
319 copyResult = copyFileContents(dstRsrcName, dstFd,
322 (void) close(dstFd);