Lines Matching refs:item
49 static int list_match(char *list, struct login_info *item,
51 static int user_match(char *tok, struct login_info *item);
52 static int from_match(char *tok, struct login_info *item);
59 struct login_info item;
73 item.user = user;
74 item.from = from;
115 match = (list_match(froms, &item, from_match)
116 && list_match(users, &item, user_match));
125 /* list_match - match an item against a list of tokens with exceptions */
129 struct login_info *item,
148 if ((match = (*match_fn) (tok, item)) != 0) /* YES */
156 if (tok == 0 || list_match(NULL, item, match_fn) == NO)
193 static int user_match(char *tok, struct login_info *item)
195 char *string = item->user->pw_name;
211 return (user_match(tok, item) && from_match(at + 1, &fake_item));
217 if (item->user->pw_gid == group->gr_gid)
228 static int from_match(char *tok, struct login_info *item)
230 char *string = item->from;