Lines Matching refs:pwd
39 #include <pwd.h>
204 struct passwd *pwd, pwdm;
207 if (getpwnam_r(v, &pwdm, buf, sizeof (buf), &pwd) == 0 && pwd != NULL)
208 return (pwd->pw_uid);
279 struct passwd *pwd, pwdm;
282 if (getpwuid_r(uid, &pwdm, buf, sizeof (buf), &pwd) != 0 || pwd == NULL)
291 (void) _enum_profs(pwd->pw_name, ggp_callback, NULL, res);
355 struct passwd pw, *pwd;
380 if (getpwuid_r(uuid, &pw, buf, sizeof (buf), &pwd) != 0 || pwd == NULL)
383 exec = getexecuser(pwd->pw_name, KV_COMMAND, path, GET_ONE);
387 exec = getexecuser(pwd->pw_name, KV_COMMAND, path, GET_ONE);