Lines Matching full:passwd
50 // okay for all the <grp.h> functions to share state, and all the <passwd.h>
51 // functions to share state, but <grp.h> functions can't clobber <passwd.h>
61 passwd passwd_;
84 passwd* dst, char* buf, size_t byte_count,
85 passwd** result) {
94 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above.
133 int getpwnam_r(const char* name, passwd* pwd,
134 char* buf, size_t byte_count, passwd** result) {
138 int getpwuid_r(uid_t uid, passwd* pwd,
139 char* buf, size_t byte_count, passwd** result) {
143 static passwd* android_iinfo_to_passwd(passwd_state_t* state,
149 passwd* pw = &state->passwd_;
169 static passwd* android_id_to_passwd(passwd_state_t* state, unsigned id) {
178 static passwd* android_name_to_passwd(passwd_state_t* state, const char* name) {
330 static passwd* oem_id_to_passwd(uid_t uid, passwd_state_t* state) {
340 passwd* pw = &state->passwd_;
369 // returns a passwd structure (sets errno to ENOENT on failure).
370 static passwd* app_id_to_passwd(uid_t uid, passwd_state_t* state) {
387 passwd* pw = &state->passwd_;
413 passwd* getpwuid(uid_t uid) { // NOLINT: implementing bad function.
419 passwd* pw = android_id_to_passwd(state, uid);
431 passwd* getpwnam(const char* login) { // NOLINT: implementing bad function.
437 passwd* pw = android_name_to_passwd(state, login);
460 passwd *pw = getpwuid(getuid()); // NOLINT: implementing bad function in terms of bad function.