Lines Matching refs:passwd
59 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd()
88 passwd* pwd = getpwuid(uid); in check_getpwuid()
97 passwd* pwd = getpwnam(username); in check_getpwnam()
105 passwd pwd_storage; in check_getpwuid_r()
110 passwd* pwd = nullptr; in check_getpwuid_r()
120 passwd pwd_storage; in check_getpwnam_r()
125 passwd* pwd = nullptr; in check_getpwnam_r()
145 passwd* passwd = nullptr; in expect_no_passwd_id() local
146 passwd = getpwuid(uid); in expect_no_passwd_id()
147 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_id()
150 struct passwd passwd_storage; in expect_no_passwd_id()
152 EXPECT_EQ(ENOENT, getpwuid_r(uid, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_id()
153 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_id()
159 passwd* passwd = nullptr; in expect_no_passwd_name() local
160 passwd = getpwnam(username); in expect_no_passwd_name()
161 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_name()
164 struct passwd passwd_storage; in expect_no_passwd_name()
166 EXPECT_EQ(ENOENT, getpwnam_r(username, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_name()
167 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_name()
303 passwd pwd_storage; in TEST()
305 passwd* pwd; in TEST()
316 passwd pwd_storage; in TEST()
318 passwd* pwd; in TEST()
329 passwd pwd_storage[2]; in TEST()
331 passwd* pwd[3]; in TEST()
350 passwd pwd_storage[2]; in TEST()
352 passwd* pwd[3]; in TEST()
374 passwd pwd_storage; in TEST()
375 passwd* pwd; in TEST()
450 passwd* pwd; in TEST()