Home | History | Annotate | Download | only in tools

Lines Matching refs:tools

48 namespace impl = tools;
56 has_program(const tools::fs::path& program)
61 found = tools::fs::is_executable(program);
68 const std::vector< std::string > dirs = tools::text::split(
69 tools::env::get("PATH"), ":");
72 const tools::fs::path& p = tools::fs::path(*iter) / program;
73 if (tools::fs::is_executable(p))
85 const std::vector< std::string > v = tools::text::split(arches, " ");
89 if ((*iter) == tools::config::get("atf_arch"))
103 const std::vector< std::string > v = tools::text::split(variables, " ");
117 const std::vector< std::string > v = tools::text::split(progs, " ");
120 const tools::fs::path file(*iter);
124 if (!tools::fs::exists(file))
134 const std::vector< std::string > v = tools::text::split(machines, " ");
138 if ((*iter) == tools::config::get("atf_machine"))
152 const int64_t needed = tools::text::to_bytes(raw_memory);
163 return "Not enough memory; needed " + tools::text::to_string(needed) +
164 ", available " + tools::text::to_string(available);
173 const std::vector< std::string > v = tools::text::split(progs, " ");
176 if (!has_program(tools::fs::path(*iter)))
187 if (!tools::user::is_root())
192 if (tools::user::is_root()) {
201 (void)tools::user::get_user_ids(unprivileged_user);
263 if (tools::user::is_root()) {
267 return tools::user::get_user_ids((*iter).second);