Home
last modified time | relevance | path

Searched refs:group_name (Results 1 – 4 of 4) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dfiles.cpp173 const std::string& group_name) { in EnsureDirectoryExists() argument
185 EnsureDirectoryExists(parent_dir, mode, group_name); in EnsureDirectoryExists()
197 if (group_name != "") { in EnsureDirectoryExists()
198 CF_EXPECT(ChangeGroup(directory_path, group_name)); in EnsureDirectoryExists()
205 const std::string& group_name) { in ChangeGroup() argument
206 auto groupId = GroupIdFromName(group_name); in ChangeGroup()
209 return CF_ERR("Failed to get group id: ") << group_name; in ChangeGroup()
214 << path << ", " << group_name << ", " << strerror(errno)); in ChangeGroup()
Dusers.cpp58 gid_t GroupIdFromName(const std::string& group_name) { in GroupIdFromName() argument
64 result = getgrnam_r(group_name.c_str(), &grp, buffer.data(), buffer.size(), in GroupIdFromName()
79 LOG(ERROR) << "Unable to get group id for group " << group_name << ": " in GroupIdFromName()
Dfiles.h45 const std::string& group_name = "");
47 const std::string& group_name);
Dusers.h26 gid_t GroupIdFromName(const std::string& group_name);