Home
last modified time | relevance | path

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

/bionic/tests/
Dgrp_pwd_test.cpp57 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd() argument
59 ASSERT_TRUE(pwd != nullptr); in check_passwd()
61 EXPECT_STREQ(username, pwd->pw_name); in check_passwd()
63 EXPECT_EQ(uid, pwd->pw_uid); in check_passwd()
64 EXPECT_EQ(uid, pwd->pw_gid); in check_passwd()
65 EXPECT_EQ(nullptr, pwd->pw_passwd); in check_passwd()
67 EXPECT_EQ(nullptr, pwd->pw_gecos); in check_passwd()
71 EXPECT_STREQ("/data", pwd->pw_dir); in check_passwd()
73 EXPECT_STREQ("/", pwd->pw_dir); in check_passwd()
77 EXPECT_STREQ("/vendor/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/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/libc/bionic/
Dgrp_pwd.cpp130 int getpwnam_r(const char* name, passwd* pwd, in getpwnam_r() argument
132 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result); in getpwnam_r()
135 int getpwuid_r(uid_t uid, passwd* pwd, in getpwuid_r() argument
137 return do_getpw_r(0, nullptr, uid, pwd, buf, byte_count, result); in getpwuid_r()
/bionic/docs/
Dstatus.md94 * all 6 <grp.h>/<pwd.h> (get|set|end)(gr|pw)ent functions