Searched refs:dstFd (Results 1 – 1 of 1) sorted by relevance
/build/libs/host/ |
D | CopyFile.c | 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() 316 dstFd = open(dstRsrcName, O_TRUNC | O_WRONLY, 0); in copyRegular() [all …]
|