Lines Matching refs:cmd
63 static status_t pushBackContents(const std::string& path, std::vector<std::string>& cmd) { in pushBackContents() argument
74 cmd.push_back(StringPrintf("%s/%s", path.c_str(), ent->d_name)); in pushBackContents()
87 std::vector<std::string> cmd; in execRm() local
88 cmd.push_back(kRmPath); in execRm()
89 cmd.push_back("-f"); /* force: remove without confirmation, no error if it doesn't exist */ in execRm()
90 cmd.push_back("-R"); /* recursive: remove directory contents */ in execRm()
91 if (pushBackContents(path, cmd) != OK) { in execRm()
96 pid_t pid = ForkExecvpAsync(cmd); in execRm()
125 std::vector<std::string> cmd; in execCp() local
126 cmd.push_back(kCpPath); in execCp()
127 cmd.push_back("-p"); /* preserve timestamps, ownership, and permissions */ in execCp()
128 cmd.push_back("-R"); /* recurse into subdirectories (DEST must be a directory) */ in execCp()
129 cmd.push_back("-P"); /* Do not follow symlinks [default] */ in execCp()
130 cmd.push_back("-d"); /* don't dereference symlinks */ in execCp()
131 if (pushBackContents(fromPath, cmd) != OK) { in execCp()
135 cmd.push_back(toPath.c_str()); in execCp()
137 pid_t pid = ForkExecvpAsync(cmd); in execCp()