Lines Matching refs:pw
20 int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct pass… in __getpw_a() argument
36 while (!(rv = __getpwent_a(f, pw, buf, size, res)) && *res) { in __getpw_a()
107 pw->pw_name = *buf; in __getpw_a()
108 pw->pw_passwd = pw->pw_name + passwdbuf[PWNAMELEN]; in __getpw_a()
109 pw->pw_gecos = pw->pw_passwd + passwdbuf[PWPASSWDLEN]; in __getpw_a()
110 pw->pw_dir = pw->pw_gecos + passwdbuf[PWGECOSLEN]; in __getpw_a()
111 pw->pw_shell = pw->pw_dir + passwdbuf[PWDIRLEN]; in __getpw_a()
112 pw->pw_uid = passwdbuf[PWUID]; in __getpw_a()
113 pw->pw_gid = passwdbuf[PWGID]; in __getpw_a()
119 if (pw->pw_passwd[-1] || pw->pw_gecos[-1] || pw->pw_dir[-1] in __getpw_a()
120 || pw->pw_shell[passwdbuf[PWSHELLLEN]-1]) { in __getpw_a()
125 if (name && strcmp(name, pw->pw_name) in __getpw_a()
126 || !name && uid != pw->pw_uid) { in __getpw_a()
132 *res = pw; in __getpw_a()