Lines Matching defs:pwent
407 * void adddisp(pwent)
408 * struct passwd *pwent
411 * description referenced by 'pwent' to the list if information
418 * pwent Structure that contains all of the login information
427 adddisp(struct passwd *pwent)
440 if ((compare = strcmp(current->loginID, pwent->pw_name)) >= 0) {
450 new->loginID = strdup(pwent->pw_name);
451 if (pwent->pw_comment && pwent->pw_comment[0] != '\0') {
452 new->freefield = strdup(pwent->pw_comment);
454 new->freefield = strdup(pwent->pw_gecos);
456 if (!pwent->pw_shell || !(*pwent->pw_shell)) {
459 new->shell = strdup(pwent->pw_shell);
461 new->iwd = strdup(pwent->pw_dir);
462 new->userID = pwent->pw_uid;
463 new->groupID = pwent->pw_gid;
479 if (current->userID > pwent->pw_uid) {
494 * int isuidindisp(pwent)
495 * struct passwd *pwent
498 * the (struct passwd) referenced by "pwent" is already in the
507 * pwent Structure that contains the user-ID we're to
515 isuidindisp(struct passwd *pwent)
527 for (dp = displayhead->nextuid; dp && (dp->userID < pwent->pw_uid);
536 return (dp && (dp->userID == pwent->pw_uid));
776 * int hasnopasswd(pwent)
777 * struct passwd *pwent
787 * pwent Login to examine.
795 hasnopasswd(struct passwd *pwent)
809 if (psp = getspnam(pwent->pw_name)) {
1255 struct passwd *pwent; /* /etc/passwd entry */
1643 while (pwent = local_getpwent()) {
1650 if (pwent->pw_uid == plookpwd->pw_uid) {
1670 adddisp(pwent);
1695 while (pwent = local_getpwent()) {
1703 adddisp(pwent);
1712 if (isasystemlogin(pwent)) {
1713 adddisp(pwent);
1723 if (isauserlogin(pwent)) {
1724 adddisp(pwent);
1734 if (hasnopasswd(pwent)) {
1735 adddisp(pwent);
1748 if (strcmp(pwent->pw_name,
1751 adddisp(pwent);
1769 if (pwent->pw_gid == pgrp->groupID) {
1770 adddisp(pwent);
1774 if (!done && isamember(pwent->pw_name)) {
1775 adddisp(pwent);