Searched refs:pwd (Results 1 – 2 of 2) sorted by relevance
/bionic/tests/ |
D | stubs_test.cpp | 36 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type) { in check_passwd() argument 37 ASSERT_TRUE(pwd != NULL); in check_passwd() 38 ASSERT_STREQ(username, pwd->pw_name); in check_passwd() 39 ASSERT_EQ(uid, pwd->pw_uid); in check_passwd() 40 ASSERT_EQ(uid, pwd->pw_gid); in check_passwd() 41 ASSERT_EQ(NULL, pwd->pw_passwd); in check_passwd() 43 ASSERT_EQ(NULL, pwd->pw_gecos); in check_passwd() 47 ASSERT_STREQ("/", pwd->pw_dir); in check_passwd() 49 ASSERT_STREQ("/data", pwd->pw_dir); in check_passwd() 51 ASSERT_STREQ("/system/bin/sh", pwd->pw_shell); in check_passwd() [all …]
|
/bionic/libc/bionic/ |
D | stubs.cpp | 133 int getpwnam_r(const char* name, passwd* pwd, in getpwnam_r() argument 135 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result); in getpwnam_r() 138 int getpwuid_r(uid_t uid, passwd* pwd, in getpwuid_r() argument 140 return do_getpw_r(0, NULL, uid, pwd, buf, byte_count, result); in getpwuid_r()
|