Lines Matching defs:pwent
512 * void adddisp(pwent)
513 * struct passwd *pwent
516 * description referenced by 'pwent' to the list if information
523 * pwent Points to the (struct passwd) structure that
534 adddisp(struct passwd *pwent)
549 if ((compare = strcmp(current->loginID, pwent->pw_name)) >= 0)
565 strcpy(allocstr((unsigned int)strlen(pwent->pw_name)+1),
566 pwent->pw_name);
567 if (pwent->pw_comment && pwent->pw_comment[0] != '\0')
570 (unsigned int)strlen(pwent->pw_comment)+1),
571 pwent->pw_comment);
575 (unsigned int)strlen(pwent->pw_gecos)+1),
576 pwent->pw_gecos);
652 struct passwd *pwent; /* Ptr to an /etc/passwd entry */
888 while (pwent = getpwent()) {
905 if (strcmp(pwent->pw_name,
908 if (isauserlogin(pwent->pw_uid))
909 adddisp(pwent);
928 if (isauserlogin(pwent->pw_uid)) {
933 if (pwent->pw_gid == pgrp->groupID) {
934 adddisp(pwent);
937 if (!done && isamember(pwent->pw_name)) {
938 adddisp(pwent);
951 adddisp(pwent);