Lines Matching defs:pw
64 struct passwd *pw;
81 pw = getpwuid(uid);
82 if (pw == NULL) {
85 printuser(pw, 1);
89 while ((pw = getpwent()) != NULL)
90 printuser(pw, 0);
93 pw = getpwnam(argv[1]);
94 if (pw == NULL) {
97 printuser(pw, 1);
105 printuser(const struct passwd *pw, int printfail)
111 pos = pw->pw_uid * (off_t)sizeof(struct betinfo);
114 warnx("Bad uid %d", (int)pw->pw_uid);
125 printf("%s has never played canfield.\n", pw->pw_name);
130 printf("* Winnings for %-8s*\n", pw->pw_name);
132 printf("* Losses for %-10s*\n", pw->pw_name);