Lines Matching refs:cmd
59 static bool pushBackContents(const std::string& path, std::vector<std::string>& cmd, in pushBackContents() argument
62 cmd.emplace_back(path); in pushBackContents()
75 found |= pushBackContents(subdir, cmd, searchLevels - 1); 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, 2)) { in execRm()
97 return ForkExecvp(cmd); in execRm()
100 pid_t pid = ForkExecvpAsync(cmd); in execRm()
138 std::vector<std::string> cmd; in execCp() local
139 cmd.push_back(kCpPath); in execCp()
140 cmd.push_back("-p"); /* preserve timestamps, ownership, and permissions */ in execCp()
141 cmd.push_back("-R"); /* recurse into subdirectories (DEST must be a directory) */ in execCp()
142 cmd.push_back("-P"); /* Do not follow symlinks [default] */ in execCp()
143 cmd.push_back("-d"); /* don't dereference symlinks */ in execCp()
144 if (!pushBackContents(fromPath, cmd, 1)) { in execCp()
148 cmd.push_back(toPath.c_str()); in execCp()
151 return ForkExecvp(cmd); in execCp()
154 pid_t pid = ForkExecvpAsync(cmd); in execCp()