Home
last modified time | relevance | path

Searched refs:passwd (Results 1 – 9 of 9) sorted by relevance

/bionic/tests/headers/posix/
Dpwd_h.c34 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/
Dpwd.h68 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/libc/bionic/
Dgrp_pwd.cpp64 return &__get_bionic_tls().passwd; in get_passwd_tls_buffer()
81 passwd* dst, char* buf, size_t byte_count, in do_getpw_r()
82 passwd** result) { in do_getpw_r()
91 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above. in do_getpw_r()
130 int getpwnam_r(const char* name, passwd* pwd, in getpwnam_r()
131 char* buf, size_t byte_count, passwd** result) { in getpwnam_r()
135 int getpwuid_r(uid_t uid, passwd* pwd, in getpwuid_r()
136 char* buf, size_t byte_count, passwd** result) { in getpwuid_r()
140 static passwd* android_iinfo_to_passwd(passwd_state_t* state, in android_iinfo_to_passwd()
146 passwd* pw = &state->passwd_; in android_iinfo_to_passwd()
[all …]
/bionic/libc/private/
Dgrp_pwd.h45 passwd passwd_;
Dbionic_tls.h129 passwd_state_t passwd; member
/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()
86 passwd* pwd = getpwuid(uid); in check_getpwuid()
95 passwd* pwd = getpwnam(username); in check_getpwnam()
103 passwd pwd_storage; in check_getpwuid_r()
108 passwd* pwd = nullptr; in check_getpwuid_r()
118 passwd pwd_storage; in check_getpwnam_r()
123 passwd* pwd = nullptr; in check_getpwnam_r()
277 passwd* pwd; in TEST()
Dgrp_pwd_file_test.cpp44 passwd& name_passwd = name_passwd_state.passwd_; in FindAndCheckPasswdEntry()
56 passwd& id_passwd = id_passwd_state.passwd_; in FindAndCheckPasswdEntry()
Dftw_test.cpp142 passwd* pwd = getpwnam("shell"); in TEST()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c422 struct passwd *pwd; in globtilde()