Lines Matching refs:pw
237 struct passwd *pw = getpwnam (ut_user); in print_entry() local
238 if (pw == nullptr) in print_entry()
243 char *const comma = strchr (pw->pw_gecos, ','); in print_entry()
249 result = create_fullname (pw->pw_gecos, pw->pw_name); in print_entry()
312 struct passwd *pw; in print_long_entry() local
314 pw = getpwnam (name); in print_long_entry()
320 if (pw == nullptr) in print_long_entry()
328 char *const comma = strchr (pw->pw_gecos, ','); in print_long_entry()
334 result = create_fullname (pw->pw_gecos, pw->pw_name); in print_long_entry()
344 printf ("%-29s", pw->pw_dir); in print_long_entry()
346 printf (" %s", pw->pw_shell); in print_long_entry()
356 xmalloc (strlen (pw->pw_dir) + strlen (baseproject) + 1); in print_long_entry()
357 stpcpy (stpcpy (project, pw->pw_dir), baseproject); in print_long_entry()
380 xmalloc (strlen (pw->pw_dir) + strlen (baseplan) + 1); in print_long_entry()
381 stpcpy (stpcpy (plan, pw->pw_dir), baseplan); in print_long_entry()