Lines Matching defs:pw
94 #define isauserlogin(pw) (pw->pw_uid > MAXSYSTEMLOGIN)
95 #define isasystemlogin(pw) (pw->pw_uid <= MAXSYSTEMLOGIN)
1095 struct passwd pw;
1106 fill_localpw(struct localpw *lpw, struct passwd *pw) {
1112 lpw->pw.pw_name = strdup(pw->pw_name);
1113 lpw->pw.pw_passwd = strdup(pw->pw_passwd);
1114 lpw->pw.pw_uid = pw->pw_uid;
1115 lpw->pw.pw_gid = pw->pw_gid;
1116 lpw->pw.pw_age = strdup(pw->pw_age);
1117 lpw->pw.pw_comment = strdup(pw->pw_comment);
1118 lpw->pw.pw_gecos = strdup(pw->pw_gecos);
1119 lpw->pw.pw_dir = strdup(pw->pw_dir);
1120 lpw->pw.pw_shell = strdup(pw->pw_shell);
1131 struct passwd *pw;
1141 if ((pw = getpwnam(req_next->loginname)) != NULL) {
1145 cur = fill_localpw(next, pw);
1154 while ((pw = getpwent()) != NULL) {
1158 cur = fill_localpw(next, pw);
1184 return (&(pwptr->pw));
1248 struct passwd *plookpwd; /* Ptr to searcher pw (-d) */