Searched refs:passwd (Results 1 – 9 of 9) sorted by relevance
/bionic/tests/headers/posix/ |
D | pwd_h.c | 34 TYPE(struct passwd); in pwd_h() 35 STRUCT_MEMBER(struct passwd, char*, pw_name); in pwd_h() 36 STRUCT_MEMBER(struct passwd, uid_t, pw_uid); in pwd_h() 37 STRUCT_MEMBER(struct passwd, gid_t, pw_gid); in pwd_h() 38 STRUCT_MEMBER(struct passwd, char*, pw_dir); in pwd_h() 39 STRUCT_MEMBER(struct passwd, char*, pw_shell); in pwd_h() 46 FUNCTION(getpwent, struct passwd* (*f)(void)); in pwd_h() 47 FUNCTION(getpwnam, struct passwd* (*f)(const char*)); in pwd_h() 48 FUNCTION(getpwnam_r, int (*f)(const char*, struct passwd*, char*, size_t, struct passwd**)); in pwd_h() 49 FUNCTION(getpwuid, struct passwd* (*f)(uid_t)); in pwd_h() [all …]
|
/bionic/libc/include/ |
D | pwd.h | 68 struct passwd { struct 83 struct passwd* getpwnam(const char* __name); argument 84 struct passwd* getpwuid(uid_t __uid); 87 struct passwd* getpwent(void) __INTRODUCED_IN(26); 92 int getpwnam_r(const char* __name, struct passwd* __pwd, char* __buf, size_t __n, struct passwd** _… 93 int getpwuid_r(uid_t __uid, struct passwd* __pwd, char* __buf, size_t __n, struct passwd** __result…
|
/bionic/tests/ |
D | grp_pwd_test.cpp | 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() [all …]
|
D | grp_pwd_file_test.cpp | 44 passwd& name_passwd = name_passwd_state.passwd_; in FindAndCheckPasswdEntry() 56 passwd& id_passwd = id_passwd_state.passwd_; in FindAndCheckPasswdEntry()
|
D | ftw_test.cpp | 142 passwd* pwd = getpwnam("shell"); in TEST()
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 98 auto result = &__get_bionic_tls().passwd; in get_passwd_tls_buffer() 103 static passwd* android_iinfo_to_passwd(passwd_state_t* state, in android_iinfo_to_passwd() 109 passwd* pw = &state->passwd_; in android_iinfo_to_passwd() 436 static passwd* oem_id_to_passwd(uid_t uid, passwd_state_t* state) { in oem_id_to_passwd() 451 passwd* pw = &state->passwd_; in oem_id_to_passwd() 482 static passwd* app_id_to_passwd(uid_t uid, passwd_state_t* state) { in app_id_to_passwd() 499 passwd* pw = &state->passwd_; in app_id_to_passwd() 520 passwd* getpwuid_internal(uid_t uid, passwd_state_t* state) { in getpwuid_internal() 526 passwd* pw = oem_id_to_passwd(uid, state); in getpwuid_internal() 533 passwd* getpwuid(uid_t uid) { // NOLINT: implementing bad function. in getpwuid() [all …]
|
/bionic/libc/private/ |
D | grp_pwd.h | 45 passwd passwd_;
|
D | bionic_tls.h | 129 passwd_state_t passwd; member
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 422 struct passwd *pwd; in globtilde()
|