22 #include <sbuild/sbuild-environment.h>
23 #include <sbuild/sbuild-error.h>
24 #include <sbuild/sbuild-regex.h>
25 #include <sbuild/sbuild-types.h>
31 #include <sys/types.h>
102 bool lsb_mode =
true);
134 std::string
const& separator);
150 template <
typename S>
158 typename S::size_type last_pos =
159 value.find_first_not_of(separator, 0);
161 typename S::size_type pos = value.find_first_of(separator, last_pos);
163 while (pos !=S::npos || last_pos != S::npos)
166 ret.push_back(value.substr(last_pos, pos - last_pos));
168 last_pos = value.find_first_not_of(separator, pos);
169 pos = value.find_first_of(separator, last_pos);
186 std::vector<std::string>
188 std::string
const& separator);
204 template <
typename S>
212 typename S::size_type last_pos = 0;
214 typename S::size_type pos = value.find_first_of(separator, last_pos);
216 while (pos !=S::npos || last_pos != S::npos)
219 if (pos == std::string::npos)
221 ret.push_back(value.substr(last_pos, pos));
224 ret.push_back(value.substr(last_pos, pos - last_pos));
227 last_pos = pos + separator.length();
228 pos = value.find_first_of(separator, last_pos);
245 std::vector<std::string>
247 std::string
const& separator);
287 std::string
const& path,
288 std::string
const& prefix);
322 exec (std::string
const& file,
324 environment
const& env);
409 if (!this->
file.empty())
413 std::ostringstream str;
603 (
static_cast<int>(lhs) | static_cast<int>(rhs));
617 (lhs |
static_cast<int>(rhs));
631 (
static_cast<int>(lhs) | rhs);
645 (
static_cast<int>(lhs) & static_cast<int>(rhs));
659 (lhs &
static_cast<int>(rhs));
673 (
static_cast<int>(lhs) & rhs);
708 return (static_cast<stat::mode_bits>(
status.st_mode) & mask) == mask;
735 passwd (
const char *name);
742 passwd (std::string
const& name);
812 group (
const char *name);
819 group (std::string
const& name);