Lines Matching refs:pwd
54 struct passwd *pwd = getpwent (); in init_test_items() local
55 if (pwd == NULL) in init_test_items()
58 target->pw_name = xstrdup (pwd->pw_name); in init_test_items()
59 target->pw_passwd = xstrdup (pwd->pw_passwd); in init_test_items()
60 target->pw_uid = pwd->pw_uid; in init_test_items()
61 target->pw_gid = pwd->pw_gid; in init_test_items()
62 target->pw_gecos = xstrdup (pwd->pw_gecos); in init_test_items()
63 target->pw_dir = xstrdup (pwd->pw_dir); in init_test_items()
64 target->pw_shell = xstrdup (pwd->pw_shell); in init_test_items()
116 struct passwd pwd; in test_one() local
122 pwd = (struct passwd) {}; in test_one()
123 ret = getpwnam_r (item->pw_name, &pwd, buffer, buffer_size, &result); in test_one()
156 pwd = (struct passwd) {}; in test_one()
157 ret = getpwuid_r (item->pw_uid, &pwd, buffer, buffer_size, &result); in test_one()