Home
last modified time | relevance | path

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

/bionic/tests/
Dgrp_pwd_file_test.cpp42 ASSERT_TRUE(file->FindByName(name, &name_passwd_state)) << name; in FindAndCheckPasswdEntry()
68 ASSERT_TRUE(file->FindByName(name, &name_group_state)) << name; in FindAndCheckGroupEntry()
102 EXPECT_FALSE(passwd_file.FindByName("not_name", nullptr)); in TEST()
122 EXPECT_FALSE(group_file.FindByName("not_name", nullptr)); in TEST()
160 EXPECT_FALSE(passwd_file.FindByName("not_name", nullptr)); in TEST()
196 EXPECT_FALSE(group_file.FindByName("not_name", nullptr)); in TEST()
216 EXPECT_FALSE(passwd_file.FindByName("name", nullptr)); in TEST()
238 EXPECT_FALSE(group_file.FindByName("name", nullptr)); in TEST()
/bionic/libc/bionic/
Dgrp_pwd_file.h45 bool FindByName(const char* name, Line* line);
76 bool FindByName(const char* name, passwd_state_t* passwd_state);
92 bool FindByName(const char* name, group_state_t* group_state);
Dgrp_pwd_file.cpp302 bool MmapFile::FindByName(const char* name, Line* line) { in FindByName() function in MmapFile
330 bool PasswdFile::FindByName(const char* name, passwd_state_t* passwd_state) { in FindByName() function in PasswdFile
333 return mmap_file_.FindByName(name, &passwd_line) && passwd_line.ToPasswdState(passwd_state); in FindByName()
346 bool GroupFile::FindByName(const char* name, group_state_t* group_state) { in FindByName() function in GroupFile
349 return mmap_file_.FindByName(name, &group_line) && group_line.ToGroupState(group_state); in FindByName()
Dgrp_pwd.cpp544 if (passwd_file.FindByName(login, state)) { in getpwnam_internal()
703 if (group_file.FindByName(name, state)) { in getgrnam_internal()