Lines Matching refs:passwd

61 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type,  in check_passwd()
90 passwd* pwd = getpwuid(uid); in check_getpwuid()
99 passwd* pwd = getpwnam(username); in check_getpwnam()
107 passwd pwd_storage; in check_getpwuid_r()
112 passwd* pwd = nullptr; in check_getpwuid_r()
122 passwd pwd_storage; in check_getpwnam_r()
127 passwd* pwd = nullptr; in check_getpwnam_r()
147 passwd* passwd = nullptr; in expect_no_passwd_id() local
148 passwd = getpwuid(uid); in expect_no_passwd_id()
149 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_id()
152 struct passwd passwd_storage; in expect_no_passwd_id()
154 EXPECT_EQ(ENOENT, getpwuid_r(uid, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_id()
155 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_id()
161 passwd* passwd = nullptr; in expect_no_passwd_name() local
162 passwd = getpwnam(username); in expect_no_passwd_name()
163 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_name()
166 struct passwd passwd_storage; in expect_no_passwd_name()
168 EXPECT_EQ(ENOENT, getpwnam_r(username, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_name()
169 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_name()
305 passwd pwd_storage; in TEST()
307 passwd* pwd; in TEST()
318 passwd pwd_storage; in TEST()
320 passwd* pwd; in TEST()
331 passwd pwd_storage[2]; in TEST()
333 passwd* pwd[3]; in TEST()
352 passwd pwd_storage[2]; in TEST()
354 passwd* pwd[3]; in TEST()
376 passwd pwd_storage; in TEST()
377 passwd* pwd; in TEST()
480 passwd* pwd; in TEST()