Searched refs:pwd (Results 1 – 5 of 5) sorted by relevance
/bionic/tests/ |
D | grp_pwd_test.cpp | 61 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd() argument 63 ASSERT_TRUE(pwd != nullptr); in check_passwd() 65 EXPECT_STREQ(username, pwd->pw_name); in check_passwd() 67 EXPECT_EQ(uid, pwd->pw_uid); in check_passwd() 68 EXPECT_EQ(uid, pwd->pw_gid); in check_passwd() 69 EXPECT_EQ(nullptr, pwd->pw_passwd); in check_passwd() 71 EXPECT_EQ(nullptr, pwd->pw_gecos); in check_passwd() 75 EXPECT_STREQ("/data", pwd->pw_dir); in check_passwd() 77 EXPECT_STREQ("/", pwd->pw_dir); in check_passwd() 83 EXPECT_STREQ("/bin/sh", pwd->pw_shell); in check_passwd() [all …]
|
D | ftw_test.cpp | 144 passwd* pwd = getpwnam("shell"); in TEST() local 145 ASSERT_EQ(0, setuid(pwd->pw_uid)); in TEST()
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 583 static int getpasswd_r(bool by_name, const char* name, uid_t uid, struct passwd* pwd, char* buf, in getpasswd_r() argument 596 *pwd = *retval; in getpasswd_r() 597 *result = pwd; in getpasswd_r() 603 int getpwnam_r(const char* name, passwd* pwd, char* buf, size_t byte_count, passwd** result) { in getpwnam_r() argument 604 return getpasswd_r(true, name, -1, pwd, buf, byte_count, result); in getpwnam_r() 607 int getpwuid_r(uid_t uid, passwd* pwd, char* buf, size_t byte_count, passwd** result) { in getpwuid_r() argument 608 return getpasswd_r(false, nullptr, uid, pwd, buf, byte_count, result); in getpwuid_r()
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 422 struct passwd *pwd; in globtilde() local 459 (pwd = getpwnam(h)) != NULL) || in globtilde() 460 (pwd = getpwuid(getuid())) != NULL) in globtilde() 461 h = pwd->pw_dir; in globtilde() 472 if ((pwd = getpwnam((char *)wbuf)) == NULL) in globtilde() 475 h = pwd->pw_dir; in globtilde()
|
/bionic/docs/ |
D | status.md | 174 * all 6 <grp.h>/<pwd.h> (get|set|end)(gr|pw)ent functions
|