Lines Matching refs:drcFullPath
386 CHAR *drcFullPath = NULL;
430 drcFullPath = strdup(dstFileName);
431 if (drcFullPath == NULL) {
436 ret = stat(drcFullPath, &statBuf);
450 ret = VfsNormalizePath(drcFullPath, srcFileName, &dstFilePath);
456 free(drcFullPath);
457 drcFullPath = dstFilePath;
462 if (strcmp(srcFullPath, drcFullPath) == 0) {
463 PRINTK("cp error: '%s' and '%s' are the same file\n", srcFullPath, drcFullPath);
475 dstFd = open(drcFullPath, O_CREAT | O_WRONLY | O_TRUNC, srcMode);
477 PRINTK("cp error: can't create %s. %s.\n", drcFullPath, strerror(errno));
485 PRINTK("cp %s %s failed. %s.\n", srcFullPath, drcFullPath, strerror(errno));
490 PRINTK("cp %s %s failed. %s.\n", srcFullPath, drcFullPath, strerror(errno));
498 free(drcFullPath);
511 free(drcFullPath);
816 CHAR *drcFullPath = NULL;
844 ret = VfsNormalizePath(shellWorkingDirectory, dst, &drcFullPath);
853 ret = stat(drcFullPath, &statBuf);
857 PRINTK("cp error: %s, %s.\n", drcFullPath, strerror(errno));
862 PRINTK("cp error: %s is not a directory.\n", drcFullPath);
881 ret = OsWildcardExtractDirectory(srcFullPath, drcFullPath, CP_FILE);
883 ret = OsShellCmdDoCp(srcFullPath, drcFullPath);
885 free(drcFullPath);
890 free(drcFullPath);