Home
last modified time | relevance | path

Searched refs:pwd (Results 1 – 5 of 5) sorted by relevance

/bionic/tests/
Dgrp_pwd_test.cpp59 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd() argument
61 ASSERT_TRUE(pwd != nullptr); in check_passwd()
63 EXPECT_STREQ(username, pwd->pw_name); in check_passwd()
65 EXPECT_EQ(uid, pwd->pw_uid); in check_passwd()
66 EXPECT_EQ(uid, pwd->pw_gid); in check_passwd()
67 EXPECT_EQ(nullptr, pwd->pw_passwd); in check_passwd()
69 EXPECT_EQ(nullptr, pwd->pw_gecos); in check_passwd()
73 EXPECT_STREQ("/data", pwd->pw_dir); in check_passwd()
75 EXPECT_STREQ("/", pwd->pw_dir); in check_passwd()
81 EXPECT_STREQ("/bin/sh", pwd->pw_shell); in check_passwd()
[all …]
Dftw_test.cpp142 passwd* pwd = getpwnam("shell"); in TEST() local
143 ASSERT_EQ(0, setuid(pwd->pw_uid)); in TEST()
/bionic/libc/bionic/
Dgrp_pwd.cpp562 static int getpasswd_r(bool by_name, const char* name, uid_t uid, struct passwd* pwd, char* buf, in getpasswd_r() argument
575 *pwd = *retval; in getpasswd_r()
576 *result = pwd; in getpasswd_r()
582 int getpwnam_r(const char* name, passwd* pwd, char* buf, size_t byte_count, passwd** result) { in getpwnam_r() argument
583 return getpasswd_r(true, name, -1, pwd, buf, byte_count, result); in getpwnam_r()
586 int getpwuid_r(uid_t uid, passwd* pwd, char* buf, size_t byte_count, passwd** result) { in getpwuid_r() argument
587 return getpasswd_r(false, nullptr, uid, pwd, buf, byte_count, result); in getpwuid_r()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c422 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/
Dstatus.md117 * all 6 <grp.h>/<pwd.h> (get|set|end)(gr|pw)ent functions