Lines Matching defs:npwds
182 static size_t npwds;
209 if (npwds == pwdsz) {
215 pwds[npwds].pw_name = xstrdup(pwd->pw_name);
216 pwds[npwds].pw_passwd = xstrdup(pwd->pw_passwd);
217 pwds[npwds].pw_uid = pwd->pw_uid;
218 pwds[npwds].pw_gid = pwd->pw_gid;
219 pwds[npwds].pw_change = pwd->pw_change;
220 pwds[npwds].pw_class = xstrdup(pwd->pw_class);
221 pwds[npwds].pw_gecos = xstrdup(pwd->pw_gecos);
222 pwds[npwds].pw_dir = xstrdup(pwd->pw_dir);
223 pwds[npwds].pw_shell = xstrdup(pwd->pw_shell);
224 pwds[npwds].pw_expire = pwd->pw_expire;
225 pwds[npwds].pw_selected = 0;
226 npwds++;
238 for (i = 0, pwd = pwds; i < npwds; ++i, ++pwd) {
245 (i < npwds - 1 && pwd->pw_uid == pwd[1].pw_uid)) {
287 mergesort(pwds, npwds, sizeof *pwds, pwd_cmp_byname);
289 mergesort(pwds, npwds, sizeof *pwds, pwd_cmp_byuid);
334 for (i = 0, pwd = pwds; i < npwds; ++i, ++pwd)